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

[1LP][RFR] Automate genealogy tests #10039

Merged
merged 7 commits into from
Jun 4, 2020

Conversation

spusateri
Copy link
Contributor

@spusateri spusateri commented Apr 7, 2020

PRT Run

{{ pytest: cfme/tests/cloud_infra_common/test_genealogy.py -k "test_genealogy_comparison" --use-provider vsphere65-nested }}

@spusateri spusateri force-pushed the automate_genealogy_tests branch from 6d74d2e to 35d7375 Compare May 28, 2020 12:57
@spusateri spusateri changed the title [WIP] Automate genealogy tests [RFR] Automate genealogy tests May 28, 2020
@dajoRH dajoRH removed the WIP label May 28, 2020
spusateri added 2 commits May 28, 2020 10:53
fixed fixture scope typo

Added InfraVm compare view and toolbar view

adding compare genealogy view

fix typo
@spusateri spusateri force-pushed the automate_genealogy_tests branch from 35d7375 to eff3342 Compare May 28, 2020 14:54
@dajoRH
Copy link
Contributor

dajoRH commented May 28, 2020

I detected some fixture changes in commit eff3342

The local fixture create_vm_with_clone is used in the following files:

  • cfme/tests/cloud_infra_common/test_genealogy.py
    • test_compare_button_enabled

Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃

@john-dupuy john-dupuy added the test-automation To be applied on PR's which are automating existing manual cases label Jun 1, 2020
Copy link
Contributor

@john-dupuy john-dupuy left a comment

Choose a reason for hiding this comment

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

Some small changes, looking good @spusateri!

@john-dupuy john-dupuy changed the title [RFR] Automate genealogy tests [WIPTEST] Automate genealogy tests Jun 1, 2020
@spusateri spusateri changed the title [WIPTEST] Automate genealogy tests [RFR] Automate genealogy tests Jun 3, 2020
Copy link
Contributor

@john-dupuy john-dupuy left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your work on this @spusateri

@john-dupuy john-dupuy changed the title [RFR] Automate genealogy tests [1LP][RFR] Automate genealogy tests Jun 3, 2020
@dajoRH dajoRH removed the WIP-testing label Jun 3, 2020
try:
compare_view = create_vm_with_clone[0].genealogy.compare(*create_vm_with_clone)
assert compare_view.is_displayed
except ToolbarOptionGreyedOrUnavailable:
Copy link
Member

Choose a reason for hiding this comment

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

🎉

@mshriver mshriver merged commit 65a27be into ManageIQ:master Jun 4, 2020
"""Fixture to provision a VM and clone it"""
first_name = fauxfactory.gen_alphanumeric()
last_name = fauxfactory.gen_alphanumeric()
email = "{first_name}.{last_name}@test.com"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you want to use f-sting here. Other thought fauxfactory.gen_email()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lint-ok test-automation To be applied on PR's which are automating existing manual cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants