[RFR] Automate test: test_reports_in_global_region#10246
[RFR] Automate test: test_reports_in_global_region#10246mshriver merged 3 commits intoManageIQ:masterfrom
Conversation
f73fab9 to
b9fbd83
Compare
b9fbd83 to
c7ed3a5
Compare
|
@tpapaioa can you review this? |
| remote_appliance, global_appliance = replicated_appliances_modscope | ||
| logger.info("Starting appliance replication configuration.") | ||
| second_remote_appliance.configure(region=89, key_address=remote_appliance.hostname) | ||
| second_remote_appliance.set_pglogical_replication(replication_type=":remote") |
There was a problem hiding this comment.
Instead of setting up some of the appliances in replicated_appliances_modscope and some of them here, I think it would make more sense to have all of the db configuration and replication configuration in one fixture. The fixtures in cfme/fixtures/multi_region.py could be used here; multi_region_cluster can pass an indirect parameter to temp_appliances_unconfig_modscope_rhevm to specify the total number of appliances, and setup_multi_region_cluster takes care of configuring all of them. There is also a setup_remote_provider fixture that could be copied or modified to set up providers on multiple remote appliances.
There was a problem hiding this comment.
This was awesome! Thanks for the suggestions @tpapaioa, let me know how it looks now.
4407bc4 to
cc45192
Compare
cc45192 to
5a0980f
Compare
|
Looks good. Just two small additional comments:
|
5a0980f to
9822db6
Compare
9822db6 to
14df6a1
Compare
|
I detected some fixture changes in commit 14df6a1 The local fixture
The local fixture
Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃 |
|
@tpapaioa updated. I can't believe I missed out on those things you suggested while writing the test 🤦 |
|
Looks good to me. |
Purpose or Intent
test_reports_in_global_region.rest_api_entityproperty toReport.cfme/tests/intelligence/reports/test_reports.py::reportfixture to take custom appliancecfme/fixtures/appliance.py::temp_appliance_preconfig_modscope_rhevmcfme/fixtures/cli.py::replicated_appliances_modscopePRT Run
{{ pytest: cfme/tests/intelligence/reports/test_reports.py::test_reports_in_global_region -svvv --long-running}}