Skip to content

Conversation

@yangbodong22011
Copy link
Contributor

Add aclfile load tests.

Copy link
Member

@oranagra oranagra left a 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

@ShooterIT
Copy link
Member

Yes, please also add ACL SAVE and ACL LOAD tests. @yangbodong22011 One case we need cover is that the loaded ACL file has the user that current client is using, please see #7202

@yangbodong22011
Copy link
Contributor Author

@yangbodong22011 may i ask what's the trigger to adding this test?

I wanted to use aclfile, but found that it lacked tests, so I added tests.
@ShooterIT @oranagra OK, I will add ACL SAVE and ALC LOAD test.

@yangbodong22011 yangbodong22011 force-pushed the feature-add-aclfile-test branch 2 times, most recently from cf334ad to 7caeef4 Compare September 9, 2020 13:36
Copy link
Member

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, already updated.

@yangbodong22011 yangbodong22011 force-pushed the feature-add-aclfile-test branch from 7caeef4 to 97ac74d Compare September 9, 2020 14:06
@oranagra oranagra changed the title Tests: Add aclfile load tests Tests: Add aclfile load and save tests Sep 9, 2020
@oranagra oranagra merged commit 0666267 into redis:unstable Sep 9, 2020
oranagra pushed a commit that referenced this pull request Sep 10, 2020
improves test coverage

(cherry picked from commit 0666267)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
jschmieg pushed a commit to memKeyDB/memKeyDB that referenced this pull request Nov 6, 2020
improves test coverage

(cherry picked from commit 0666267)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants