Exemplo n.º 1
0
def test_provider_field_should_display_in_vm_details_page_in_ssui(
        appliance, provider, setup_provider, service_vm):
    """

    Bugzilla:
        1686076

    Polarion:
        assignee: nansari
        startsin: 5.10
        casecomponent: Services
        initialEstimate: 1/6h
        testSteps:
            1. Create a catalog item of vmware or RHEV.
            2. Navigate to order page of service
            3. Order Service
            4. Go to Service UI. Click on VM
        expectedResults:
            1.
            2.
            3.
            4. Vm details page should display which provider it belongs to
    """
    service, vm = service_vm

    with appliance.context.use(ViaSSUI):
        view = ssui_nav(service, "VMDetails")
        assert provider.name in view.provider_info.read()
        assert vm.name in view.vm_info.read()
Exemplo n.º 2
0
def test_dynamic_dropdown_refresh_load(
        appliance, import_datastore, import_data,
        generic_catalog_item_with_imported_dialog, context):
    """
    Bugzilla:
        1576873
    Polarion:
        assignee: nansari
        startsin: 5.10
        casecomponent: Services
        initialEstimate: 1/16h
    """
    catalog_item, _, ele_label = generic_catalog_item_with_imported_dialog

    service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog,
                                       catalog_item.name)

    with appliance.context.use(context):
        if context == ViaSSUI:
            view = ssui_nav(service_catalogs, "Details")
        else:
            view = navigate_to(service_catalogs, "Order")
        with LogValidator("/var/www/miq/vmdb/log/automation.log",
                          matched_patterns=['We are in B'],
                          failure_patterns=["We are in A"
                                            ]).waiting(timeout=120):
            view.fields(ele_label).dropdown.fill("b")
Exemplo n.º 3
0
def test_dynamic_dropdown_auto_refresh_load(
        appliance, import_datastore, import_data,
        generic_catalog_item_with_imported_dialog, context):
    """
    Bugzilla:
        1568342
    Polarion:
        assignee: nansari
        startsin: 5.11
        casecomponent: Services
        initialEstimate: 1/16h
    """
    catalog_item, _, ele_label = generic_catalog_item_with_imported_dialog

    service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog,
                                       catalog_item.name)

    with appliance.context.use(context):
        if context == ViaSSUI:
            view = ssui_nav(service_catalogs, "Details")
        else:
            view = navigate_to(service_catalogs, "Order")

        view.fields(ele_label).dropdown.fill("Contract B")
        wait_for(lambda: view.fields("location").dropdown.read() == 'Florida',
                 timeout=7)

        view.fields(ele_label).dropdown.fill("Contract A")
        wait_for(lambda: view.fields("location").dropdown.read() == 'Alaska',
                 timeout=7)
Exemplo n.º 4
0
def test_dynamic_dropdown_load_value_on_init(appliance, import_datastore, import_data,
                                             generic_catalog_item_with_imported_dialog, context):
    """
    Bugzilla:
        1322594
        1581996

    Polarion:
        assignee: nansari
        startsin: 5.10
        casecomponent: Services
        initialEstimate: 1/16h
    """
    catalog_item, _, _ = generic_catalog_item_with_imported_dialog

    service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog, catalog_item.name)
    with appliance.context.use(context):
        if context == ViaSSUI:
            view = ssui_nav(service_catalogs, "Details")
        else:
            view = navigate_to(service_catalogs, "Order")

        # Dynamic drop_downs should load the values on init
        wait_for(
            lambda: view.fields("dropdown_list_1").read() == 'fifty' and
            view.fields("dropdown_list_2_1_1").read() == '10', timeout=60
        )
Exemplo n.º 5
0
def test_list_supported_languages_on_ssui(appliance, soft_assert):
    """
    Bugzilla:
        1743734

    Polarion:
        assignee: nansari
        startsin: 5.11
        caseimportance: medium
        casecomponent: SelfServiceUI
        initialEstimate: 1/16h
        testSteps:
            1. Log into SSUI, see what languages are available
        expectedResults:
            1. Service UI should list the Supported languages:
    """
    with appliance.context.use(ViaSSUI):
        view = ssui_nav(appliance.server, "LoggedIn")

    for lang in ["Browser Default", "English", "Español", "Français", "日本語"]:
        # Its Dropdown with language options
        assert soft_assert(lang in view.settings.items[1])