Skip to content
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

Open
wants to merge 4 commits into
base: bosorawis-prototype-grant-test
Choose a base branch
from

Conversation

elimt
Copy link
Member

@elimt elimt commented Feb 18, 2025

add test coverage for testing grants with alias resource. This tests all actions with aliases and different grant scopes

@elimt elimt added this to the 0.20.x milestone Feb 18, 2025
@elimt elimt requested a review from a team as a code owner February 18, 2025 17:15
userFunc: iam.TestUserGroupGrantsFunc(t, conn, kmsCache, globals.GlobalPrefix, password.TestAccountFunc(t, conn), []iam.TestRoleGrantsRequest{
{
RoleScopeID: globals.GlobalPrefix,
Grants: []string{"id=*;type=alias;actions=*"},
Copy link
Collaborator

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?

Copy link
Member Author

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

Copy link
Collaborator

@bosorawis bosorawis left a 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
@elimt elimt force-pushed the elimt-alias-grants-test branch from ad0dabf to d7cebeb Compare February 21, 2025 20:34
@elimt elimt requested a review from bosorawis February 21, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants