Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkvuong committed Jun 7, 2024
1 parent 1ce6f55 commit c1ce230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions catalog/resource_grant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions catalog/resource_grants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c1ce230

Please sign in to comment.