-
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
test(grants): tests for group associations #5443
base: llb-normalized-grants
Are you sure you want to change the base?
test(grants): tests for group associations #5443
Conversation
9d2f5c3
to
6bdc21d
Compare
6bdc21d
to
34114df
Compare
repo := iam.TestRepo(t, conn, wrap) | ||
kmsCache := kms.TestKms(t, conn, wrap) | ||
|
||
grant := "ids=*;type=*;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.
For the grant, if we're testing against the groups
resource, we should set set the grant to look like ids=*;type=group;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.
I also think we should have multiple grants and multiple roles so we can have multiple grantTuples and assert it's what we expect
res: perms.Resource{ | ||
ScopeId: directGrantProj1a.PublicId, | ||
Id: "cs_abcd1234", | ||
Type: resource.Credential, |
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.
Do we hae dedicated tests for Groups
resource
34114df
to
79b9462
Compare
No description provided.