Skip to content
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

Added running end2end tests against mocked environments #535

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ Availability: `AutomationHub`_, `Galaxy`_, `GitHub`_
* Increased the minimum version of zhmcclient to 1.3.1, in order to pick
up fixes. (part of issue #396)


=======
* Added a new module 'zhmc_password_rule' that supports creating/updating,
deleting, and gathering facts of a password rule on the HMC. (issue #363)

* Added a new module 'zhmc_password_rule_list' that supports listing the names
of password rules on the HMC. (issue #363)


**Cleanup:**

**Known issues:**
Expand Down
4 changes: 4 additions & 0 deletions minimum-constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ ansible==2.9.0.0
requests==2.22.0; python_version <= '3.9'
requests==2.25.0; python_version >= '3.10'


zhmcclient==1.3.1
=======
# TODO: Enable once zhmcclient 1.4.0 has been released
# zhmcclient==1.4.0


# Indirect dependencies for installation (must be consistent with requirements.txt)

cryptography==3.3; python_version == '2.7'
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ ansible>=2.9.0.0
requests>=2.22.0; python_version <= '3.9'
requests>=2.25.0; python_version >= '3.10'


# git+https://github.com/zhmcclient/python-zhmcclient@master#egg=zhmcclient
zhmcclient>=1.3.1
=======
# TODO: Enable once zhmcclient 1.4.0 has been released
git+https://github.com/zhmcclient/python-zhmcclient@master#egg=zhmcclient
# zhmcclient>=1.4.0



# Indirect dependencies are not specified in this file, unless needed to solve versioning issues:

# cryptography 3.1 has deprecated Python 3.5 support and issues a deprecation
Expand Down
6 changes: 6 additions & 0 deletions tests/end2end/mocked_z14_classic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ hmc_definition:
- properties:
element-id: passwordrule1
name: Password rule 1

- properties:
element-id: Basic
name: Basic
=======
type: "user-defined"
description: "Password rule 1"
expiration: 186
Expand All @@ -213,6 +218,7 @@ hmc_definition:
character-rules: []
replication-overwrite-possible: true


tasks:
- properties:
# class: created automatically
Expand Down
6 changes: 6 additions & 0 deletions tests/end2end/mocked_z14_dpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ hmc_definition:
- properties:
element-id: passwordrule1
name: Password rule 1

- properties:
element-id: Basic
name: Basic
=======
type: "user-defined"
description: "Password rule 1"
expiration: 186
Expand All @@ -213,6 +218,7 @@ hmc_definition:
character-rules: []
replication-overwrite-possible: true


tasks:
- properties:
# class: created automatically
Expand Down