This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
[1LP][RFR] Update distributed appliance test to use create_vm fixture #9875
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.
This PR updates the distributed appliance test test_distributed_vm_power_control to use the create_vm fixture. This requires using the parametrized provider fixture, instead of the unparametrized virtualcenter fixture that was used in this module previously. I've changed all of the other tests in the module to use it too, for consistency, even though they do not need it for VM creation.
I've also removed the get_ssh_client method, which is no longer used.
There was an issue with ssh clients getting connection refused errors in PRT testing, when configuring the appliance. This commit also includes a one line change to appliance.configure, to re-connect after the audit rule / network interface related command that triggers the connection closure.
{{ pytest: --long-running cfme/tests/distributed/test_appliance_replication.py -vv }}