mirror of https://github.com/hashicorp/consul
more tests
parent
72308dd9f2
commit
bf5d1ec2ec
|
@ -339,11 +339,17 @@ func TestJWTProviderConfigEntry_ACLs(t *testing.T) {
|
||||||
canWrite: false,
|
canWrite: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "jwt-provider: service write",
|
name: "jwt-provider: any service write",
|
||||||
authorizer: newTestAuthz(t, `service "" { policy = "write" }`),
|
authorizer: newTestAuthz(t, `service "" { policy = "write" }`),
|
||||||
canRead: true,
|
canRead: true,
|
||||||
canWrite: false,
|
canWrite: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "jwt-provider: specific service write",
|
||||||
|
authorizer: newTestAuthz(t, `service "web" { policy = "write" }`),
|
||||||
|
canRead: true,
|
||||||
|
canWrite: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "jwt-provider: mesh read",
|
name: "jwt-provider: mesh read",
|
||||||
authorizer: newTestAuthz(t, `mesh = "read"`),
|
authorizer: newTestAuthz(t, `mesh = "read"`),
|
||||||
|
|
Loading…
Reference in New Issue