-
Notifications
You must be signed in to change notification settings - Fork 885
test: Add unit test for rbac Authorize()
function
#853
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
ab61328
WIP: This is a massive WIP
Emyrk 03e4d0f
More info in the print
Emyrk 9981291
Fix all()
Emyrk 3ab32da
reduce the amount of memoery allocated
Emyrk e1d5893
Reuse a buffer
Emyrk 84a90f3
fix: use return size over size
Emyrk 1fac0d9
WIP: don't look at this
Emyrk 1e3aac0
WIP: 🍐 auth-> testdata, refactoring and restructuring
johnstcn e977e84
testdata -> authztest
johnstcn 00a7c3f
WIP: start work on SVO
johnstcn 1f04c01
reduce allocations for union sets
Emyrk fbf4db1
fix: Fix nil permissions as Strings()
Emyrk 4946897
chore: Make all permission variant levels
Emyrk 7e6cc66
First full draft of the authz authorize test
Emyrk a0017e5
Tally up failed tests
Emyrk 4b110b3
Change test pkg
Emyrk 65ef4e3
Use an interface for the object
Emyrk d294786
fix: make authztest.Objects return correct type
johnstcn c1f8945
refactor: rename consts {Read,Write,Modify,Delete}Action to Action$1
johnstcn 01f3d40
chore: Define object interface
Emyrk de7de6e
test: Unit test extra properties
Emyrk 4c86e44
Merge remote-tracking branch 'origin/stevenmasley/rbac' into stevenma…
Emyrk 30c6568
put back interface assertion
Emyrk a419a65
Fix some compile errors from merge
Emyrk bbd1c4c
test: Roles, sets, permissions, iterators
Emyrk def010f
Test string functions
Emyrk c4ee590
test: Unit test permission string
Emyrk 84e3ab9
Add A+ and A-
Emyrk c2eec18
Parallelize tests
Emyrk 5a2834a
fix code line in readme
Emyrk 913d141
Merge remote-tracking branch 'origin/main' into stevenmasley/rbac
Emyrk 2804b92
test: ParsePermissions from strings
Emyrk 5698938
use fmt over str builder for easier to read
Emyrk 75ed8ef
Linting
Emyrk b2db661
authz: README.md: update table formatting
johnstcn 26ef1e6
Make action CRUD
Emyrk 19aba30
LevelID -> OrganizationID
Emyrk ceee9cd
feat: authztest: categorize test failures by test name
johnstcn ee8bf04
fixup! feat: authztest: categorize test failures by test name
johnstcn 44c02a1
chore: add documentation for authz and authztest
johnstcn dfb9ad1
fixup! chore: add documentation for authz and authztest
johnstcn e482d2c
chore: more authz/authztest docs
johnstcn a4e038f
Remove underscore from test names
Emyrk 9918c16
zObject does not need exported fields
Emyrk 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
LevelID -> OrganizationID
- Loading branch information
commit 19aba30b35ffb18864a56b74bcf08e0fdfd608ee
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
All of our resource identifiers are UUIDs, can this be one too?
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 thought some
id
s from v1 are still strings. I would like uuid yes, I can change if this is trueThere 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.
This is true! All v1 IDs have been converted to UUIDs.