-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] updating TC to fix failure #10005
Conversation
a3e338c
to
93eb206
Compare
e257727
to
249f916
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.
@mnadeem92 : Instead of making this change see if you can use the existing method
https://github.com/ManageIQ/integration_tests/blob/93eb206095c137646397b84e6f2a614fa72a7bf1/cfme/tests/v2v/test_v2v_cancel_migrations.py#L51
def cancel_migration_plan () is a fixture in the same test file and it can wait for the plan .
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.
Good, just some suggestion for better readability
249f916
to
cab4d42
Compare
@sshveta I would prefer to press cancel button in between when some disk gets already migrated, the fixture cancel_migration_plan () press cancel button as soon as plan went to in-progress state by checking the presence of spinner and at this point we are not sure if actual disk migration gets started as it first allocate conversion host and then power-off the VM, run pre-migration playbook etc, However this PR actually check the migration timing from the GUI and press cancel button after a specific time period of disk migration. I think this is a good ad-on to provide the control on performing operation based on migration elapsed timing. |
@mnadeem92 : In_progress is a method to track progress of plans , I don't think we should change it for each test . If test can be handled by fixtures then that should be first approach . You can modify cancel_migration_plan fixture as per your need . It is using
which you can modify can wait for whatever time you need. |
@sshveta Indeed the In_progress fixture should track the process of the plan, However IMO the fixture should gave below option as the In progress is a time taking process which might take 25+ Minutes
Now, lets talk about the all cancel Test cases is not wait till actual migration started, it cancel the migration even before that which is not the recommended way to perform the cancel operation, As per engineering team the migration should gets cancel after at-least disk migration gets started. So, here is my plan to do changes.
Please let me know if required, we can have a quick call to discuss the same. |
@sshveta okay to move this one to 1LP? |
@mnadeem92 , please add a comment stating that the recommended way to test the migration cancel operation is to cancel the migration after disk migration starts. This would apply to all the tests in the test_v2v_cancel_migrations.py module. |
cab4d42
to
dd9a70c
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.
Looks good Nadeem , I think we can remove parameters now .
@@ -137,10 +137,8 @@ def _get_plan_status_and_cancel(): | |||
@pytest.mark.parametrize( | |||
"source_type, dest_type, template_type", | |||
[["nfs", "nfs", Templates.RHEL7_MINIMAL]]) |
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.
We don't need parametrization now . Infra mapping is coming from the fixture .
dd9a70c
to
f06d26f
Compare
Signed-off-by: mnadeem92 <[email protected]>
f06d26f
to
185d54f
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.
Waiting on travis, I restarted it
Signed-off-by: mnadeem92 [email protected]
{{ pytest: cfme/tests/v2v/test_v2v_cancel_migrations.py -k "test_cancel_migration_attachments" --use-provider={osp13-ims,rhv-ims} --use-provider vsphere67-ims --provider-limit 2 -v }}
PRT: Should not block this PR due to fail in 5.10 as the failure is not associated with this PR, we have high priority for 5.11 as build is going to deliver shortly.
5.11: Passed
5.10: Failed due to fixture issue (cfme/fixtures/skip_not_implemented.py:9: ) need to address in a separate PR
Travis is failing due to : #10029