diff --git a/catalog/resource_grant_test.go b/catalog/resource_grant_test.go index c1b48ddd22..a51d0b8737 100644 --- a/catalog/resource_grant_test.go +++ b/catalog/resource_grant_test.go @@ -586,7 +586,7 @@ func TestResourceGrantPermissionsList_Diff_ExternallyAddedPriv(t *testing.T) { assert.Len(t, diff, 1) assert.Len(t, diff[0].Add, 0) assert.Len(t, diff[0].Remove, 1) - assert.Equal(t, catalog.Privilege("b"), diff[0].Remove[0]) + assert.Equal(t, catalog.Privilege("B"), diff[0].Remove[0]) } func TestResourceGrantPermissionsList_Diff_LocalRemoteDiff(t *testing.T) { @@ -612,8 +612,8 @@ func TestResourceGrantPermissionsList_Diff_LocalRemoteDiff(t *testing.T) { assert.Len(t, diff, 1) assert.Len(t, diff[0].Add, 1) assert.Len(t, diff[0].Remove, 1) - assert.Equal(t, catalog.Privilege("a"), diff[0].Add[0]) - assert.Equal(t, catalog.Privilege("c"), diff[0].Remove[0]) + assert.Equal(t, catalog.Privilege("A"), diff[0].Add[0]) + assert.Equal(t, catalog.Privilege("C"), diff[0].Remove[0]) } func TestResourceGrantShareGrantCreate(t *testing.T) { diff --git a/catalog/resource_grants_test.go b/catalog/resource_grants_test.go index cb3c5ed8fc..88b002018e 100644 --- a/catalog/resource_grants_test.go +++ b/catalog/resource_grants_test.go @@ -389,7 +389,7 @@ func TestPermissionsList_Diff_ExternallyAddedPrincipal(t *testing.T) { assert.Len(t, diff[0].Add, 0) assert.Len(t, diff[0].Remove, 1) assert.Equal(t, "b", diff[0].Principal) - assert.Equal(t, catalog.Privilege("a"), diff[0].Remove[0]) + assert.Equal(t, catalog.Privilege("A"), diff[0].Remove[0]) assert.Equal(t, "c", diff[1].Principal) } @@ -415,7 +415,7 @@ func TestPermissionsList_Diff_ExternallyAddedPriv(t *testing.T) { assert.Len(t, diff, 1) assert.Len(t, diff[0].Add, 0) assert.Len(t, diff[0].Remove, 1) - assert.Equal(t, catalog.Privilege("b"), diff[0].Remove[0]) + assert.Equal(t, catalog.Privilege("B"), diff[0].Remove[0]) } func TestPermissionsList_Diff_CaseSensitivePrincipal(t *testing.T) { @@ -462,8 +462,8 @@ func TestPermissionsList_Diff_LocalRemoteDiff(t *testing.T) { assert.Len(t, diff, 1) assert.Len(t, diff[0].Add, 1) assert.Len(t, diff[0].Remove, 1) - assert.Equal(t, catalog.Privilege("a"), diff[0].Add[0]) - assert.Equal(t, catalog.Privilege("c"), diff[0].Remove[0]) + assert.Equal(t, catalog.Privilege("A"), diff[0].Add[0]) + assert.Equal(t, catalog.Privilege("C"), diff[0].Remove[0]) } func TestShareGrantCreate(t *testing.T) {