fixed e2e test failing on main branch as config get is allowed by operator users - #351
Conversation
📝 WalkthroughWalkthroughThe E2E operator-user permission test now allows ChangesOperator permissions
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/e2e/valkeycluster_test.go`:
- Line 587: Update the comment describing the command sequence near CONFIG GET
maxmemory to state that commands with arguments are also tested, matching the
actual sequence and removing the inaccurate “without arguments” wording.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 8d335249-7d39-4653-865a-5beec9e924e6
📒 Files selected for processing (1)
test/e2e/valkeycluster_test.go
|
Signed-off-by: Sandeep Kunusoth <sandeepkunsoth000@gmail.com>
ab7cf85 to
74e46b8
Compare
…rator users (#351) ### Summary #341 addes +config|get to operator ACL. Fixes the failing e2e test on main https://github.com/valkey-io/valkey-operator/actions/runs/30701407296/job/91372936404 #245 added e2e test that asserts these commands return NOPERM for operator user ### Changes - update e2e test to add Config GET to allowed list and removed it from disallowed check. ### Testing tested on local kind cluster by running multiple times. ### Checklist Before submitting the PR make sure the following are checked: - [X] This Pull Request is related to one issue. - [X] Commit message explains what changed and why - [X] Tests are added or updated. - [ ] Documentation files are updated. - [X] I have run pre-commit locally (`pre-commit run --all-files` or hooks on commit) Signed-off-by: Sandeep Kunusoth <sandeepkunsoth000@gmail.com>
Summary
#341 addes +config|get to operator ACL. Fixes the failing e2e test on main https://github.com/valkey-io/valkey-operator/actions/runs/30701407296/job/91372936404
#245 added e2e test that asserts these commands return NOPERM for operator user
Changes
Testing
tested on local kind cluster by running multiple times.
Checklist
Before submitting the PR make sure the following are checked:
pre-commit run --all-filesor hooks on commit)