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

[1LP][RFR] Update test_vm_genealogy_detected via summary on vcenter #10096

Merged
merged 1 commit into from
May 7, 2020

Conversation

spusateri
Copy link
Contributor

Purpose or Intent

PRT Run

@dajoRH dajoRH added the lint-ok label May 5, 2020
@spusateri spusateri changed the title Update test_vm_genealogy_detected via summary on vcenter [WIPTEST] Update test_vm_genealogy_detected via summary on vcenter May 5, 2020
@spusateri spusateri changed the title [WIPTEST] Update test_vm_genealogy_detected via summary on vcenter [RFR] Update test_vm_genealogy_detected via summary on vcenter May 5, 2020
@dajoRH dajoRH removed the WIP-testing label May 5, 2020
@mshriver mshriver self-assigned this May 6, 2020
@@ -68,7 +68,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!")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, this whole try/except block may get removed with other test automation work, because there does not appear to be any path for a NameError during the call to genealogy.ancestors.

Good to clean this up to a direct pytest.fail call for now.

@mshriver
Copy link
Member

mshriver commented May 6, 2020

@spusateri the merge commit needs to be squashed out, please use git rebase to pull in changes from master.

@jawatts jawatts self-assigned this May 6, 2020
@jawatts jawatts changed the title [RFR] Update test_vm_genealogy_detected via summary on vcenter [1LP][RFR] Update test_vm_genealogy_detected via summary on vcenter May 6, 2020
test cleanup

simplify test failure call

Update test_vm_genealogy_detected via summary on vcenter

test cleanup

clean up

Update test_vm_genealogy_detected via summary on vcenter

test cleanup

simplify test failure call

Update test_vm_genealogy_detected via summary on vcenter

test cleanup
@jawatts jawatts merged commit e4d0a35 into ManageIQ:master May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants