-
Notifications
You must be signed in to change notification settings - Fork 291
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(groups): add grants tests for groups API #5403
Open
bosorawis
wants to merge
60
commits into
llb-normalized-grants-tests-only
Choose a base branch
from
bosorawis-prototype-grant-test
base: llb-normalized-grants-tests-only
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
592ce1d
first test with all the required setup
bosorawis 9320e4a
v1 of test
bosorawis 41d9d7c
add primitive func and more test
bosorawis 50d45b7
refactor read tests into a single top level
bosorawis d7b3b9b
move token generation to a function
bosorawis d02eb95
add test for creates
bosorawis 4850480
add delete tests
bosorawis 184bd0c
add update test
bosorawis 60cb494
only check for version and update_time
bosorawis abc747e
move setup resource into testcase to support grants with specific ID
bosorawis 3e2a3ef
add member tests
bosorawis f44ac44
add group-member test example with multiple actions
bosorawis a3d8e62
remove duplicate group membership tests
bosorawis 962f326
ran make gen
bosorawis f7d1d20
fix missing parentID bug
bosorawis 6a34f9f
fix typo
bosorawis 245872b
fix test names and add test cases
bosorawis 8bec6ac
switch from google/uuid to hashicorp/go-uuid
bosorawis f2913a3
add comment to groupmember tests
bosorawis 72c1684
small comment change
bosorawis 8eae79f
pull shared test utility code from PR #5418
bosorawis cef6f77
refactor role grants out of authtoken package
bosorawis 1054b0c
unexport utility function
bosorawis aaff0de
Remove dead code
bosorawis ec257f0
lint and make gen
bosorawis 55c27bc
fix role cration logic
bosorawis 564e523
fix password TestAccountFunc implementation
bosorawis d83a9fd
implement TestAccountFunc for LDAP
bosorawis 5bd9671
implement TestAccountFunc for OIDC
bosorawis dde6d2a
implement TestUserFunc for managed groups
bosorawis 877c6b9
use managed groups in grants test
bosorawis 75a244c
undo removal of authtoken.TestAuthTokenWithRoles for future refactor
bosorawis 792f788
switch from list to map based test case for create tests
bosorawis 6517fc0
undo merge mistakes
bosorawis 2bd59de
fix merge mistakes
bosorawis 3df265b
lint
bosorawis 7de8fdc
add setup examples
bosorawis b62ffa2
add output fields tests for getgroup
bosorawis 3947e34
reimplement with reflect
bosorawis 9e76227
add test for CreateGroup
bosorawis 8f0a4bc
add all single resource action tests
bosorawis a5acfec
add list test
bosorawis 76ff88f
rename function argument
bosorawis f78f035
move AssertOutputFields to handlers package
bosorawis 1abdc55
fix lint
bosorawis fd05e52
make gen
bosorawis e8f907c
use proto.Message instead of custom interface
bosorawis fb922ae
switch to hashicorp/go-uuid
bosorawis 666d044
fix typo
bosorawis 3024650
fix error message
bosorawis 34437f9
id= to ids=
bosorawis a10a4d7
make generating test accounts more randomized
bosorawis 0a8c054
Trigger CI checks
bosorawis 3770310
refactor auth/iam grants test setup
bosorawis bb6e262
move a test to _test package
bosorawis ce78b68
lint
bosorawis dcb616e
minor comment fix
bosorawis f38167d
use Id instead of ID
bosorawis 06ed75e
make user/account setup in iam returns account instead of just accoun…
bosorawis cfddcdc
missed one change
bosorawis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Had to move this to a test package to avoid circular import between
iam
andauth
(iam
now importsauth
)