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 #10096 from spusateri/fix_genealogy_automation
Browse files Browse the repository at this point in the history
[1LP][RFR] Update test_vm_genealogy_detected via summary on vcenter
  • Loading branch information
jawatts committed May 7, 2020
2 parents 9ded1ae + a523e16 commit e4d0a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cfme/infrastructure/virtual_machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ def tree(self):
def ancestors(self):
"""Returns list of ancestors of the represented object."""
view = self.navigate()
path = find_path(view.tree, '(Selected)')
path = find_path(view.tree, self.obj.name)
if not path:
raise ValueError("Something wrong happened, path not found!")
processed_path = []
Expand Down
3 changes: 1 addition & 2 deletions cfme/tests/cloud_infra_common/test_genealogy.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def test_vm_genealogy_detected(
caseimportance: medium
initialEstimate: 1/4h
"""

if from_edit:
create_vm.open_edit()
view = navigate_to(create_vm, 'Edit')
Expand All @@ -68,7 +67,7 @@ def test_vm_genealogy_detected(
vm_crud_ancestors = create_vm.genealogy.ancestors
except NameError:
logger.exception("The parent template not detected!")
raise pytest.fail("The parent template not detected!")
pytest.fail("The parent template not detected!")
assert small_template.name in vm_crud_ancestors, \
f"{small_template.name} is not in {create_vm.name}'s ancestors"

Expand Down

0 comments on commit e4d0a35

Please sign in to comment.