From d4d7fd893caa4c03ea373886f90e8488f902adab Mon Sep 17 00:00:00 2001 From: Chris Hoffman <99742+chrishoffman@users.noreply.github.com> Date: Thu, 14 Apr 2022 22:53:27 +0000 Subject: [PATCH] backport of commit 1113317b4c58511c5d3a7428089c853c4290c17f --- vault/identity_store_groups_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vault/identity_store_groups_test.go b/vault/identity_store_groups_test.go index ba8673a37975..8e1d38038a1d 100644 --- a/vault/identity_store_groups_test.go +++ b/vault/identity_store_groups_test.go @@ -783,7 +783,7 @@ func TestIdentityStore_GroupsCreateUpdateDuplicatePolicy(t *testing.T) { // Create a group with the above created 2 entities as its members groupData := map[string]interface{}{ - "policies": "testpolicy1,testpolicy2", + "policies": []string{"testpolicy1", "testpolicy2"}, "metadata": []string{"testkey1=testvalue1", "testkey2=testvalue2"}, } @@ -841,7 +841,7 @@ func TestIdentityStore_GroupsCreateUpdateDuplicatePolicy(t *testing.T) { // Update by setting ID in the param groupData["id"] = groupID - groupData["policies"] = "updatedpolicy1,updatedpolicy2,updatedpolicy2" + groupData["policies"] = []string{"updatedpolicy1", "updatedpolicy2", "updatedpolicy2"} resp, err = is.HandleRequest(ctx, groupReq) if err != nil || (resp != nil && resp.IsError()) { t.Fatalf("bad: resp: %#v, err: %v", resp, err)