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

Conversation

andy-maier
Copy link
Member

For details, see the commit message.

@andy-maier andy-maier self-assigned this Jun 26, 2022
@andy-maier andy-maier added this to the 1.2.0 milestone Jun 26, 2022
@andy-maier andy-maier linked an issue Jun 26, 2022 that may be closed by this pull request
@andy-maier andy-maier force-pushed the andy/run-end2end-in-test branch from 1b971f5 to 4623c6a Compare June 26, 2022 12:56
Details:

* Added a new target 'end2end_mocked' to the Makefile that runs the end2end
  tests against mock environments defined with a new HMC inventory file
  (mocked_inventory.yaml) and a new HMC vault file (mocked_vault.yaml).

* Added the new make target to the GitHub Actions test workflow.

* Added new mock files that define a mocked HMC for thee tests:
  * mocked_z14_classic.yaml - for an HMC managing a z14 in classic mode
  * mocked_z14_dpm.yaml - for an HMC managing a z14 in DPM mode

* Enabled testing with mock support in the existing end2end testcases:
  * test_zhmc_partition.py
  * test_zhmc_user.py

* Increased the minimum version of zhmcclient to 1.3.1, in order to pick
  up the fix for the filepath AttributeError.

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/run-end2end-in-test branch from 4623c6a to 8f0126b Compare June 26, 2022 13:06
@coveralls
Copy link

Coverage Status

Coverage remained the same at 33.201% when pulling 8f0126b on andy/run-end2end-in-test into b0e4b9d on master.

@andy-maier
Copy link
Member Author

The content of this PR has been merged as part of PR #537. I verified that this PR has not changed since it was used in PR #537, so this PR here can simply be closed.

@andy-maier andy-maier closed this Jun 28, 2022
@andy-maier andy-maier deleted the andy/run-end2end-in-test branch June 28, 2022 07:06
@andy-maier andy-maier restored the andy/run-end2end-in-test branch June 28, 2022 07:18
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.

Merge function and end2end testcases into a single set
3 participants