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

Commit

Permalink
Merge pull request #10099 from niyazRedhat/dialog-load
Browse files Browse the repository at this point in the history
[1LP][RFR] Automating service dialog load test
  • Loading branch information
jawatts authored May 8, 2020
2 parents 2c392d8 + d7e68b4 commit 9e725ac
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 34 deletions.
50 changes: 33 additions & 17 deletions cfme/tests/services/test_dynamicdd_dialogelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,23 +242,6 @@ def test_dynamic_dropdowns_should_show_value_only_once():
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_dd_multiselect_default_element_is_shouldnt_be_blank_when_loaded_by_another_element():
"""
Polarion:
assignee: nansari
casecomponent: Services
initialEstimate: 1/16h
testtype: functional
startsin: 5.9
tags: service
Bugzilla:
1645555
"""
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_ssui_dd_values_are_not_loaded_in_dropdown_unless_refresh_button_is_pressed():
Expand Down Expand Up @@ -516,3 +499,36 @@ def test_update_dynamic_field_on_refresh(appliance, import_datastore, import_dat
lambda: view.fields("dynamic_1").read() == 'reboot' and
view.fields("dynamic_2").read() == 'reboot', timeout=7
)


@pytest.mark.meta(automates=[1595776])
@pytest.mark.customer_scenario
@pytest.mark.parametrize("import_data", [DatastoreImport("bz_1595776.zip", "bz_1595776", None)],
ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1595776.yml"], ids=["sample_dialog"],)
def test_load_service_dialog(appliance, import_datastore,
generic_catalog_item_with_imported_dialog):
"""
Bugzilla:
1595776
Polarion:
assignee: nansari
startsin: 5.10
casecomponent: Services
initialEstimate: 1/16h
"""
auto_log = '/var/www/miq/vmdb/log/automation.log'
catalog_item, _, _ = generic_catalog_item_with_imported_dialog
service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog, catalog_item.name)

with LogValidator(auto_log, matched_patterns=["Service dialog load - Begin"]
).waiting(timeout=120):
view = navigate_to(service_catalogs, "Order")

with LogValidator(auto_log, failure_patterns=["Service dialog load - Begin"]
).waiting(timeout=120):
view.submit_button.click()
description = f'Provisioning Service [{catalog_item.name}] from [{catalog_item.name}]'
provision_request = appliance.collections.requests.instantiate(description)
provision_request.wait_for_request(method='ui')
17 changes: 0 additions & 17 deletions cfme/tests/services/test_service_catalog_dialog_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,23 +202,6 @@ def test_dialog_dropdown_ui_values_in_the_dropdown_should_be_visible_in_edit_mod
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_dialogs_should_only_run_once():
""" Dialogs should only run once
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
startsin: 5.9
initialEstimate: 1/4h
tags: service
Bugzilla:
1595776
"""
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_triggered_refresh_shouldnt_occurs_for_dialog_after_changing_type_to_static():
Expand Down

0 comments on commit 9e725ac

Please sign in to comment.