-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add grants tests for alias #5550
base: bosorawis-prototype-grant-test
Are you sure you want to change the base?
Conversation
userFunc: iam.TestUserGroupGrantsFunc(t, conn, kmsCache, globals.GlobalPrefix, password.TestAccountFunc(t, conn), []iam.TestRoleGrantsRequest{ | ||
{ | ||
RoleScopeID: globals.GlobalPrefix, | ||
Grants: []string{"id=*;type=alias;actions=*"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a test case that scopes down id
, type
, and actions
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just added some test cases for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! assertOutputFields
is now available in the handlers
package so feel free to rebase and switch to use the shared version instead
add test coverage for testing grants with alias resource. This tests all actions with aliases and different grant scopes
ad0dabf
to
d7cebeb
Compare
add test coverage for testing grants with alias resource. This tests all actions with aliases and different grant scopes