-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances #9766
[1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances #9766
Conversation
9e01805
to
c9bf6db
Compare
2cc3d7a
to
40072c6
Compare
40072c6
to
106e59c
Compare
@dgaikwad please check the 5.10 failure
|
4378328
to
e5a1363
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.
Small change request/suggestions. Otherwise 🎉
cfme/tests/test_replication.py
Outdated
@@ -29,6 +31,16 @@ def create_vm(provider, vm_name): | |||
return vm | |||
|
|||
|
|||
def is_dicts_same(dict1, dict2): |
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.
grammar nitpick, I think it should be are_dicts_same
or dicts_compare
cfme/tests/test_replication.py
Outdated
@@ -329,7 +340,55 @@ def test_replication_global_region_dashboard(): | |||
1. | |||
2. Dashboard on the Global displays data from the Remote region | |||
""" | |||
pass | |||
remote_app, global_app = setup_replication | |||
remote_provider = provider_app_crud(RHEVMProvider, remote_app) |
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.
Any reason to choose RHEVMProvider
? How about simply InfraProvider
or something of that effect, which will be less tied to one type of provider.
a16bff0
to
760c4e2
Compare
760c4e2
to
6fa74d0
Compare
@kedark3 I have done the requested changes, please look once. |
cfme/tests/test_replication.py
Outdated
data_items = ('EVM: Recently Discovered Hosts', 'EVM: Recently Discovered VMs', | ||
'Top Storage Consumers') | ||
|
||
remote_app_data = global_app_data = {} |
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.
I think this is dangerous. Do you want both of these dicts to store same values?
Example:
>>> remote_app_data = global_app_data = {}
>>> remote_app_data['var1'] = 'val1'
>>> remote_app_data
{'var1': 'val1'}
>>> global_app_data
{'var1': 'val1'}
As you can see if you modify one dict, the other dict also looks the same.
If this is undesired, you may use,
remote_app_data, global_app_data = {},{}
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.
@kedark3 Thank you for review, will update PR accordingly
6fa74d0
to
48ece4a
Compare
48ece4a
to
8f55107
Compare
…ces (ManageIQ#9766) * New Test: Comparing dashboard of Remote and Global Appliances * changing wait_for call
Purpose or Intent
PRT Run
{{pytest: cfme/tests/test_replication.py::test_replication_global_region_dashboard --long-running -v}}