-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Passed template name as string instead of function #9614
Conversation
@sshveta So if I am understanding this right, the issue you're trying to solve here is a pytest issue (pytest-dev/pytest#349). I am partial towards a solution (e.g. for https://github.com/ManageIQ/integration_tests/blob/master/cfme/tests/v2v/test_v2v_migrations.py#L311) that would look something like: @pytest.mark.parametrize(
"mapping_data_multiple_vm_obj_single_datastore",
[
["nfs", "nfs", [lambda provider: _get_template(provider, 'win7_template')]],
["nfs", "nfs", [lambda provider: _get_template(provider, 'win10_template')]],
["nfs", "nfs", [lambda provider: _get_template(provider, 'win2016_template')]],
["nfs", "nfs", [lambda provider: _get_template(provider, 'rhel69_template')]],
["nfs", "nfs", [lambda provider: _get_template(provider, 'win2012_template')]],
["nfs", "nfs", [lambda provider: _get_template(provider, 'ubuntu16_template')]],
],
indirect=True,
) This way you can still get the template name through |
b774d17
to
a55ccf3
Compare
2f0ab41
to
a693b66
Compare
c25cf74
to
874d784
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice use of the enum
class! Some minor questions and suggestion, please take a look.
a8f5ff3
to
c6dd476
Compare
I detected some fixture changes in commit c6dd476 Show fixturesThe global fixture
The global fixture
The global fixture
The global fixture
The global fixture
The global fixture
Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking solid to me, thanks for your patience @sshveta! Let's wait on some PRT results and be sure we want the resulting test case ID's before all the polarion churn.
{{ pytest: cfme/tests/v2v/test_v2v_migrations_single_vcenter.py --use-provider rhv43 --use-provider vsphere67-ims --provider-limit 2 -vvvv --long-running -k test_migration_long_name }}
Made changes to pass template name as string instead of function to fix test failure