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

[1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances #9766

Merged

Conversation

dgaikwad
Copy link
Contributor

@dgaikwad dgaikwad commented Dec 13, 2019

Purpose or Intent

  • Verifying the dashboard of remote appliance and global appliance after adding the vm in the provider.
  • Provided one more xpath for dashboard UI(widget table)
  • Added one function to compare two dictionaries

PRT Run

{{pytest: cfme/tests/test_replication.py::test_replication_global_region_dashboard --long-running -v}}

@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch 6 times, most recently from 9e01805 to c9bf6db Compare December 17, 2019 09:10
@dgaikwad dgaikwad changed the title [WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances [RFR] New Test: Verifying dashboard of Remote and Global Appliances Dec 17, 2019
@dgaikwad dgaikwad changed the title [RFR] New Test: Verifying dashboard of Remote and Global Appliances [WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances Dec 18, 2019
@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch 3 times, most recently from 2cc3d7a to 40072c6 Compare December 18, 2019 11:28
@dajoRH dajoRH changed the title [WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances [WIP] New Test: Verifying dashboard of Remote and Global Appliances Dec 18, 2019
@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch from 40072c6 to 106e59c Compare December 18, 2019 12:38
@dgaikwad dgaikwad changed the title [WIP] New Test: Verifying dashboard of Remote and Global Appliances [RFR] New Test: Verifying dashboard of Remote and Global Appliances Dec 18, 2019
@dajoRH dajoRH removed the WIP label Dec 18, 2019
@john-dupuy
Copy link
Contributor

@dgaikwad please check the 5.10 failure

            )
E           wait_for.TimedOutError: Could not do 'Waiting for data item of EVM: Recently Discovered VMs table.' at /cfme/cfme_tests/cfme/tests/test_replication.py:400 in time

cfme/tests/test_replication.py:402: TimedOutError
TimedOutError
b"Could not do 'Waiting for data item of EVM: Recently Discovered VMs table.' at /cfme/cfme_tests/cfme/tests/test_replication.py:400 in time"```

@john-dupuy john-dupuy changed the title [RFR] New Test: Verifying dashboard of Remote and Global Appliances [WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances Dec 18, 2019
@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch 2 times, most recently from 4378328 to e5a1363 Compare December 19, 2019 12:07
@dgaikwad dgaikwad changed the title [WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances [RFR] New Test: Verifying dashboard of Remote and Global Appliances Dec 24, 2019
@digitronik digitronik requested a review from kedark3 March 24, 2020 05:38
@digitronik digitronik self-assigned this Mar 24, 2020
Copy link
Contributor

@kedark3 kedark3 left a 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 🎉

@@ -29,6 +31,16 @@ def create_vm(provider, vm_name):
return vm


def is_dicts_same(dict1, dict2):
Copy link
Contributor

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

@@ -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)
Copy link
Contributor

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.

@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch from a16bff0 to 760c4e2 Compare March 30, 2020 07:48
@dgaikwad dgaikwad changed the title [1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances [1LP][WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances Mar 30, 2020
@dgaikwad dgaikwad requested a review from kedark3 March 30, 2020 08:24
@dgaikwad dgaikwad changed the title [1LP][WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances [1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances Mar 30, 2020
@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch from 760c4e2 to 6fa74d0 Compare March 30, 2020 08:29
@dgaikwad dgaikwad changed the title [1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances [1LP][WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances Mar 30, 2020
@dgaikwad dgaikwad changed the title [1LP][WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances [1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances Mar 30, 2020
@dgaikwad
Copy link
Contributor Author

@kedark3 I have done the requested changes, please look once.

data_items = ('EVM: Recently Discovered Hosts', 'EVM: Recently Discovered VMs',
'Top Storage Consumers')

remote_app_data = global_app_data = {}
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 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 = {},{}

Copy link
Contributor Author

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

@dgaikwad dgaikwad changed the title [1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances [1LP][WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances Mar 30, 2020
@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch from 6fa74d0 to 48ece4a Compare March 30, 2020 13:34
@dgaikwad dgaikwad force-pushed the test_replication_global_region_dashboard branch from 48ece4a to 8f55107 Compare March 30, 2020 14:12
@dgaikwad dgaikwad changed the title [1LP][WIPTEST] New Test: Verifying dashboard of Remote and Global Appliances [1LP][RFR] New Test: Verifying dashboard of Remote and Global Appliances Mar 30, 2020
@digitronik digitronik merged commit 2046490 into ManageIQ:master Mar 31, 2020
ganeshhubale pushed a commit to ganeshhubale/integration_tests that referenced this pull request Jul 21, 2020
…ces (ManageIQ#9766)

* New Test: Comparing dashboard of Remote and Global Appliances

* changing wait_for call
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.

6 participants