Skip to content

Commit

Permalink
Test: Fixed exception handling in end2end tests for password rules
Browse files Browse the repository at this point in the history
Details:

* When the HMC userid that runs the end2end tests is not permitted to change
  password rules, test case function test_zhmc_password_rule_absent_present()
  skips the test. However, the handling of that condition also did let any
  other HTTP error pass (without any comment). Fixed that by surfacing
  other HTTP errors.

Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Jul 8, 2024
1 parent 4aeeedd commit 1ffbdd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Availability: `AutomationHub`_, `Galaxy`_, `GitHub`_
* Test: Fixed that coverage was calculated only for the Ansible module
source files, but not for the utility files in module_utils. (issue #1020)

* Test: Fixed exception handling in end2end tests for password rules.

**Enhancements:**

* Test: Added tests for Ansible 10. The testing of Ansible 3 was dropped
Expand Down
1 change: 1 addition & 0 deletions tests/end2end/test_zhmc_password_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def test_zhmc_password_rule_absent_present(
# User is not permitted to create password rules
pytest.skip(f"HMC user '{hd.userid}' is not permitted to "
"create initial test password rule")
raise
else:
pwrule_props = None

Expand Down

0 comments on commit 1ffbdd3

Please sign in to comment.