Swap id field in grants to ids since that's now standardized (#4250)
* Swap id field in grants to ids since that's now standardized * Fix some tests I missed * Update generated resource table
This commit is contained in:
1 parent
962f9bd638
commit
253d79116c
43 files changed
+392
-392
No files matched your search
@@ -120,11 +120,11 @@ func Test_TestRoleGrant(t *testing.T) {
|
||||
_, proj := TestScopes(t, repo)
|
||||
projRole := TestRole(t, conn, proj.PublicId)
|
||||
|
||||
grant := TestRoleGrant(t, conn, projRole.PublicId, "type=*;actions=*;id=*")
|
||||
grant := TestRoleGrant(t, conn, projRole.PublicId, "type=*;actions=*;ids=*")
|
||||
require.NotNil(grant)
|
||||
require.Equal(projRole.PublicId, grant.RoleId)
|
||||
require.Equal("type=*;actions=*;id=*", grant.RawGrant)
|
||||
require.Equal("id=*;type=*;actions=*", grant.CanonicalGrant)
|
||||
require.Equal("type=*;actions=*;ids=*", grant.RawGrant)
|
||||
require.Equal("ids=*;type=*;actions=*", grant.CanonicalGrant)
|
||||
}
|
||||
|
||||
func Test_TestUserRole(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user