-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Fix product features for role used in v2v migration test #9902
Conversation
a1f0042
to
ca0d1b4
Compare
ca0d1b4
to
08dd9e1
Compare
f876789
to
d53569c
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.
@nachandr : we can parametrize this test for True/False flag .
Code is same for both part except for this flag .
What do you think ?
""" | ||
Test migration with role-based access control | ||
Test to verify that the Migration tab is available/unavailable in the UI with | ||
role-based access control | ||
|
||
Polarion: | ||
assignee: sshveta |
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.
Please change the assignee to yourself
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.
Done.
Also, parametrized the test on 'migration_feature_availability_for_role'.
504780c
to
d1822c8
Compare
I detected some fixture changes in commit d1822c8 The local 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.
Nice PR @nachandr 👍
LGTM; one suggestion and an optional comment.
@@ -322,6 +322,33 @@ def _cleanup(): | |||
pass | |||
|
|||
|
|||
@pytest.fixture | |||
def setup_user_for_v2v_migration(appliance, new_credential): |
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.
this is a good fixture 👍
@sshveta and @nachandr what you think to put this as a global fixture
https://github.com/ManageIQ/integration_tests/blob/master/cfme/fixtures/v2v_fixtures.py
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.
@nachandr : Please check if there is already a fixture available like this . If not we can make it a global fixture .
Sure it can be used in all rbac tests
|
||
|
||
@pytest.mark.parametrize('migration_feature_availability_for_role', ['disabled', 'enabled'], | ||
ids=['disabled', 'enabled'], |
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.
optional: These are default ids
as we are iterating over the same list ['disabled', 'enabled']
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.
Done
7006617
to
6d94382
Compare
Purpose or Intent
PRT Run
{{pytest: cfme/tests/v2v/test_v2v_migrations_ui.py -k test_rbac --use-template-cache --provider-limit 2 --use-provider rhv43 --use-provider vsphere65-nested -qsvv }}