Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8983 from john-dupuy/skip-unclustered-hosts
Browse files Browse the repository at this point in the history
[RFR] Skip the cluster test if the host is unclustered
  • Loading branch information
mshriver authored Jun 24, 2019
2 parents ae0d258 + 833c26e commit 0e09480
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cfme/tests/cloud_infra_common/test_relationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def get_obj(relationship, appliance, **kwargs):
provider = kwargs.get("provider")
view = navigate_to(host, "Details")
cluster_name = view.entities.summary("Relationships").get_text_of("Cluster")
if cluster_name == "None":
pytest.skip("Host {} is not a clustered host".format(host.name))
obj = cluster_col.instantiate(name=cluster_name, provider=provider)
elif relationship in ["Datastores", "VMs", "Templates"]:
obj = kwargs.get("host")
Expand Down

0 comments on commit 0e09480

Please sign in to comment.