more tests

pull/17893/head
Ronald Ekambi 2023-06-27 11:19:58 -04:00
parent 72308dd9f2
commit bf5d1ec2ec
1 changed files with 7 additions and 1 deletions

View File

@ -339,11 +339,17 @@ func TestJWTProviderConfigEntry_ACLs(t *testing.T) {
canWrite: false,
},
{
name: "jwt-provider: service write",
name: "jwt-provider: any service write",
authorizer: newTestAuthz(t, `service "" { policy = "write" }`),
canRead: true,
canWrite: false,
},
{
name: "jwt-provider: specific service write",
authorizer: newTestAuthz(t, `service "web" { policy = "write" }`),
canRead: true,
canWrite: false,
},
{
name: "jwt-provider: mesh read",
authorizer: newTestAuthz(t, `mesh = "read"`),