From bf5d1ec2ec68fd7428027244a094baeee49d4396 Mon Sep 17 00:00:00 2001 From: Ronald Ekambi Date: Tue, 27 Jun 2023 11:19:58 -0400 Subject: [PATCH] more tests --- agent/structs/config_entry_jwt_provider_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/agent/structs/config_entry_jwt_provider_test.go b/agent/structs/config_entry_jwt_provider_test.go index f2664a53dc..48e965c795 100644 --- a/agent/structs/config_entry_jwt_provider_test.go +++ b/agent/structs/config_entry_jwt_provider_test.go @@ -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"`),