initialEstimate: 1/8h
        tags: service
    """
    item_name = fauxfactory.gen_alphanumeric(15, start="cat_item_")
    catalog_item = appliance.collections.catalog_items.create(
        appliance.collections.catalog_items.GENERIC, name=item_name,
        description="my catalog", display_in=True, catalog=catalog,
        dialog=dialog)
    service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog, catalog_item.name)
    service_catalogs.order()


@pytest.mark.meta(automates=[1611527])
@pytest.mark.tier(2)
@pytest.mark.customer_scenario
@pytest.mark.parametrize("import_data", [DatastoreImport("bz_1611527.zip", "bz_1611527", None)],
                         ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1611527.yml"], ids=["load-button"])
def test_dynamic_submit_cancel_button_service(request, appliance, generic_service, import_dialog,
                                  import_datastore, import_data):
    """
    Bugzilla:
        1611527

    Polarion:
        assignee: nansari
        casecomponent: Services
        initialEstimate: 1/6h
        startsin: 5.10
        testSteps:
            1. Import Datastore and dialog
        1540273

    Polarion:
        assignee: apagac
        casecomponent: Infra
        caseimportance: medium
        initialEstimate: 1/3h
    """
    pass


@pytest.mark.meta(automates=[1571000])
@pytest.mark.tier(3)
@pytest.mark.customer_scenario
@pytest.mark.parametrize(
    "import_data", [DatastoreImport("bz_1571000.zip", "bz_1571000", None)],
    ids=["domain"])
@pytest.mark.parametrize("file_name", ["bz_1571000.yml"], ids=["dialog"])
def test_automate_methods_from_dynamic_dialog_should_run_as_per_designed(
        request, appliance, import_datastore, import_data, import_dialog,
        catalog, soft_assert):
    """
    Bugzilla:
        1571000

    Polarion:
        assignee: nansari
        casecomponent: Services
        testtype: functional
        initialEstimate: 1/16h
        startsin: 5.9
Ejemplo n.º 3
0
        dialog=catalog_item.dialog,
        provisioning_entry_point=prov_entry_point)
    view = navigate_to(catalog_bundle, "Edit")
    assert view.basic_info.provisioning_entry_point.value == (
        "/Service/Provisioning/StateMachines/"
        "ServiceProvision_Template/"
        "CatalogItemInitialization")
    view.cancel_button.click()


@pytest.mark.tier(2)
@pytest.mark.meta(automates=[BZ(1705021)])
@pytest.mark.customer_scenario
@pytest.mark.parametrize(
    "import_data",
    [DatastoreImport("bz_1705021.zip", "bz_1705021", None)],
    ids=["sample_domain"],
)
# Parametrizing for import_dialog fixture
@pytest.mark.parametrize(
    "file_name",
    ["bz_1705021.yml"],
    ids=["sample_dialog"],
)
def test_refresh_dynamic_field(appliance, import_datastore, import_data,
                               catalog_item_with_imported_dialog):
    """Tests refresh dynamic field when field name has 'password' in label.
    Metadata:
        test_flag: provision

    Bugzilla:
        name="test_playbooks_automate",
        url=cfme_data.ansible_links.playbook_repositories.embedded_ansible,
        description=fauxfactory.gen_alpha())
    view = navigate_to(repository, "Details")
    wait_for(lambda: repository.status == "successful",
             timeout=60,
             fail_func=view.toolbar.refresh.click)
    yield repository
    repository.delete_if_exists()


@pytest.mark.tier(2)
@pytest.mark.meta(automates=[1678132, 1678135])
@pytest.mark.ignore_stream("5.10")
@pytest.mark.parametrize(("import_data", "instance"), ([
    DatastoreImport("bz_1678135.zip",
                    "Ansible_State_Machine_for_Ansible_stats3", None),
    "CatalogItemInitialization_jira23"
], [
    DatastoreImport("bz_1678135.zip",
                    "Ansible_State_Machine_for_Ansible_stats3", None),
    "CatalogItemInitialization_jira24"
]),
                         ids=["method_to_playbook", "playbook_to_playbook"])
def test_variable_pass(request, appliance, setup_ansible_repository,
                       import_datastore, import_data, instance, dialog,
                       catalog):
    """
    Bugzilla:
        1678132
        1678135
Ejemplo n.º 5
0
            1. Create a dialog with timepicker
            2. Select specific dates and time, Save
            3. Edit the dialog
        expectedResults:
            1.
            2.
            3. Able to set specific dates and time in timepicker
    """
    pass


@pytest.mark.customer_scenario
@pytest.mark.meta(automates=[1706693])
@pytest.mark.tier(2)
@pytest.mark.parametrize(
    "import_data", [DatastoreImport("bz_1706693.zip", "bz_1706693", None)],
    ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1706693.yaml"],
                         ids=["refresh_dialog"])
def test_dynamic_field_on_refresh_button(
        appliance, import_datastore, import_data, file_name,
        generic_catalog_item_with_imported_dialog):
    """
    Bugzilla:
        1706693

    Polarion:
        assignee: nansari
        startsin: 5.10
        casecomponent: Services
        initialEstimate: 1/16h
Ejemplo n.º 6
0
            4. The UI should confirm that you want to exit without saving your dialog
    """
    # As dialog created with rest sometime force nav required.
    view = navigate_to(dialog, "Edit", force=True)
    view.description.fill(fauxfactory.gen_alpha())
    view.cancel_button.click(handle_alert=True)
    view = navigate_to(dialog, "Edit")
    assert view.description.read() == dialog.description
    view.cancel_button.click(handle_alert=False)


@pytest.mark.customer_scenario
@pytest.mark.meta(automates=[1706693])
@pytest.mark.tier(2)
@pytest.mark.parametrize(
    "import_data", [DatastoreImport("bz_1706693.zip", "bz_1706693", None)],
    ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1706693.yaml"],
                         ids=["refresh_dialog"])
def test_dynamic_field_on_refresh_button(
        appliance, import_datastore, import_data, file_name,
        generic_catalog_item_with_imported_dialog):
    """
    Bugzilla:
        1706693

    Polarion:
        assignee: nansari
        startsin: 5.10
        casecomponent: Services
        initialEstimate: 1/16h
    view = navigate_to(repository, "Details")
    wait_for(
        lambda: repository.status == "successful",
        timeout=60,
        fail_func=view.toolbar.refresh.click
    )
    yield
    repository.delete_if_exists()


@pytest.mark.tier(2)
@pytest.mark.meta(automates=[1678132, 1678135])
@pytest.mark.ignore_stream("5.10")
@pytest.mark.parametrize(
    ("import_data", "instance"),
    ([DatastoreImport("bz_1678135.zip", "Ansible_State_Machine_for_Ansible_stats3",
                      None), "CatalogItemInitialization_jira23"],
     [DatastoreImport("bz_1678135.zip", "Ansible_State_Machine_for_Ansible_stats3",
                      None), "CatalogItemInitialization_jira24"]),
    ids=["method_to_playbook", "playbook_to_playbook"]
)
def test_variable_pass(request, appliance, setup_ansible_repository, import_datastore, import_data,
                       instance, dialog, catalog):
    """
    Bugzilla:
        1678132
        1678135

    Polarion:
        assignee: ghubale
        initialEstimate: 1/8h
        caseposneg: positive
Ejemplo n.º 8
0
from cfme import test_requirements
from cfme.automate.dialog_import_export import DialogImportExport
from cfme.fixtures.automate import DatastoreImport
from cfme.utils.appliance.implementations.ui import navigate_to
from cfme.utils.blockers import BZ
from cfme.utils.conf import cfme_data
from cfme.utils.ftp import FTPClientWrapper
from cfme.utils.log_validator import LogValidator
from cfme.utils.update import update

pytestmark = [test_requirements.automate, pytest.mark.tier(3)]


@pytest.mark.parametrize(
    "import_data",
    [DatastoreImport("bz_1715396.zip", "bz_1715396", None)],
    ids=["sample_domain"],
)
def test_domain_import_file(import_datastore, import_data):
    """This test case Verifies that a domain can be imported from file.

    Polarion:
        assignee: dgaikwad
        initialEstimate: 1/6h
        caseimportance: medium
        startsin: 5.7
        casecomponent: Automate
        tags: automate
        testSteps:
            1. Navigate to Automation > Automate > Import/Export
            2. Upload zip datastore file
Ejemplo n.º 9
0
    view = navigate_to(service, "All")
    view.toolbar.view_selector.select('List View')
    view.entities.paginator.set_items_per_page(1000)
    view.browser.refresh()
    assert wait_for(lambda: view.is_displayed, timeout=10)

    remove = appliance.ssh_client.run_rails_console(
        "999.times {Service.first.destroy}")
    assert remove.success


@pytest.mark.meta(automates=[1737559])
@pytest.mark.tier(2)
@pytest.mark.customer_scenario
@pytest.mark.parametrize(
    "import_data", [DatastoreImport("bz_1737559.zip", "bz_1737559", None)],
    ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1737559.yml"], ids=["load-button"])
def test_load_service_with_button(request, appliance, generic_service,
                                  import_dialog, import_datastore,
                                  import_data):
    """
    Bugzilla:
        1737559

    Polarion:
        assignee: nansari
        casecomponent: Services
        initialEstimate: 1/6h
        startsin: 5.10
        testSteps:
        dialog=catalog_item.dialog,
        provisioning_entry_point=prov_entry_point)
    view = navigate_to(catalog_bundle, "Edit")
    assert view.basic_info.provisioning_entry_point.value == (
        "/Service/Provisioning/StateMachines/"
        "ServiceProvision_Template/"
        "CatalogItemInitialization")
    view.cancel_button.click()


@pytest.mark.tier(2)
@pytest.mark.meta(automates=[BZ(1705021)])
@pytest.mark.customer_scenario
@pytest.mark.parametrize(
    "import_data",
    [DatastoreImport("bz_1705021.zip", "bz_1705021", None)],
    ids=["sample_domain"],
)
# Parametrizing for import_dialog fixture
@pytest.mark.parametrize(
    "file_name",
    ["bz_1705021.yml"],
    ids=["sample_dialog"],
)
def test_refresh_dynamic_field(appliance, import_datastore, import_data,
                               catalog_item_with_imported_dialog):
    """Tests refresh dynamic field when field name has 'password' in label.
    Metadata:
        test_flag: provision

    Bugzilla:
Ejemplo n.º 11
0
    # import datastore file
    domain_info = "bz_1752875"
    instance.domain.update({"name": domain_info, "description": domain_info})
    domain = instance.appliance.collections.domains.instantiate(name=domain_info,
                                                                description=domain_info)
    domain.lock()
    yield domain
    domain.delete_if_exists()


@pytest.mark.tier(2)
@pytest.mark.ignore_stream("5.10")
@pytest.mark.meta(automates=[1752875])
@pytest.mark.parametrize(
    "import_data",
    [DatastoreImport("bz_1752875.zip", "bz_1752875", None)],
    ids=["domain"],
)
def test_existing_domain_child_override(appliance, custom_domain, import_data):
    """
    PR:
        https://github.com/ManageIQ/manageiq-ui-classic/pull/4912

    Bugzilla:
        1752875

    Polarion:
        assignee: dgaikwad
        initialEstimate: 1/8h
        caseposneg: positive
        casecomponent: Automate
            1. Create a dialog with timepicker
            2. Select specific dates and time, Save
            3. Edit the dialog
        expectedResults:
            1.
            2.
            3. Able to set specific dates and time in timepicker
    """
    pass


@pytest.mark.customer_scenario
@pytest.mark.meta(automates=[1706693])
@pytest.mark.tier(2)
@pytest.mark.parametrize(
    "import_data", [DatastoreImport("bz_1706693.zip", "bz_1706693", None)],
    ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1706693.yaml"],
                         ids=["refresh_dialog"])
def test_dynamic_field_on_refresh_button(request, appliance, import_datastore,
                                         import_data, import_dialog, file_name,
                                         catalog):
    """
    Bugzilla:
        1706693

    Polarion:
        assignee: nansari
        startsin: 5.10
        casecomponent: Services
        initialEstimate: 1/16h
Ejemplo n.º 13
0
        appliance.collections.catalog_items.GENERIC,
        name=item_name,
        description="my catalog",
        display_in=True,
        catalog=catalog,
        dialog=dialog)
    service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog,
                                       catalog_item.name)
    service_catalogs.order()


@pytest.mark.meta(automates=[1611527])
@pytest.mark.tier(2)
@pytest.mark.customer_scenario
@pytest.mark.parametrize(
    "import_data", [DatastoreImport("bz_1611527.zip", "bz_1611527", None)],
    ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1611527.yml"], ids=["load-button"])
def test_dynamic_submit_cancel_button_service(request, appliance,
                                              generic_service, import_dialog,
                                              import_datastore, import_data):
    """
    Bugzilla:
        1611527

    Polarion:
        assignee: nansari
        casecomponent: Services
        initialEstimate: 1/6h
        startsin: 5.10
        testSteps:
Ejemplo n.º 14
0
import pytest

from cfme import test_requirements
from cfme.fixtures.automate import DatastoreImport

pytestmark = [test_requirements.automate, pytest.mark.tier(3)]


@pytest.mark.parametrize(
    "import_data",
    [DatastoreImport("bz_1715396.zip", "BZ_1715396", None)],
    ids=["sample_domain"],
)
def test_domain_import_file(import_datastore, import_data):
    """This test case Verifies that a domain can be imported from file.

    Polarion:
        assignee: ghubale
        initialEstimate: 1/6h
        caseimportance: medium
        startsin: 5.7
        casecomponent: Automate
        tags: automate
        testSteps:
            1. Navigate to Automation > Automate > Import/Export
            2. Upload zip datastore file
            3. Select domain which like to import
        expectedResults:
            1.
            2.
            3. Import should work. Check imported or not.