-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Tests: Add aclfile load and save tests #7765
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
Tests: Add aclfile load and save tests #7765
Conversation
oranagra
left a comment
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.
@yangbodong22011 may i ask what's the trigger to adding this test? i understand we're lacking coverage, but i assume there was some reason for adding it now.
while you're at it, maybe you can also add coverage for ACL SAVE and ACL LOAD
|
Yes, please also add |
I wanted to use aclfile, but found that it lacked tests, so I added tests. |
cf334ad to
7caeef4
Compare
tests/unit/acl.tcl
Outdated
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.
these assertions are not needed.. if the command errors, the test will fail anyway (throws an exception).
you need this only if you're expecting different success responses (e.g. a number of an array)
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.
Thanks, already updated.
7caeef4 to
97ac74d
Compare
improves test coverage (cherry picked from commit 0666267)
improves test coverage
improves test coverage (cherry picked from commit 0666267)
Add aclfile load tests.