Issue 7284 - Automated test for creating local password policy with i…#7608
Open
mirielka wants to merge 1 commit into
Open
Issue 7284 - Automated test for creating local password policy with i…#7608mirielka wants to merge 1 commit into
mirielka wants to merge 1 commit into
Conversation
…ncorrect passwordInHistory value Description: Adding automated test for creating local password policy with incorrect passwordInHistory value Relates: 389ds#7284 Author: Lenka Doudova Assisted by: Cursor Reviewer: ???
fcdb837 to
3e9b86b
Compare
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The parametrized values for
passwordInHistoryall repeat the issue URL in multiplexfailmarks; consider defining a shared mark or constant for the bug reference to avoid duplication and make future updates easier. - The nested try/except/finally block in
test_create_local_pwp_with_passwordInHistoryis a bit complex; you could simplify cleanup by extracting it into a helper or fixture that consistently handles local policy and container deletion. - To improve readability of the parametrized test, consider adding
idstopytest.mark.parametrizeso each case is clearly labeled (e.g., 'valid-0', 'valid-24', 'invalid-negative', etc.).
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The parametrized values for `passwordInHistory` all repeat the issue URL in multiple `xfail` marks; consider defining a shared mark or constant for the bug reference to avoid duplication and make future updates easier.
- The nested try/except/finally block in `test_create_local_pwp_with_passwordInHistory` is a bit complex; you could simplify cleanup by extracting it into a helper or fixture that consistently handles local policy and container deletion.
- To improve readability of the parametrized test, consider adding `ids` to `pytest.mark.parametrize` so each case is clearly labeled (e.g., 'valid-0', 'valid-24', 'invalid-negative', etc.).Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…ncorrect passwordInHistory value
Description:
Adding automated test for creating local password policy with incorrect passwordInHistory value
Relates: #7284
Author: Lenka Doudova
Assisted by: Cursor
Reviewer: ???
Summary by Sourcery
Tests: