def test_clear_datastore_filter_results(appliance):
    """ Test for clearing filter results for datastores."""
    dc = DatastoreCollection(appliance)
    view = navigate_to(dc, 'All')
    view.sidebar.datastores.tree.click_path('All Datastores', 'Global Filters',
                                            'Store Type / VMFS')
    view.entities.search.remove_search_filters()
    assert view.entities.title.text == 'All Datastores', 'Clear filter results failed'
def test_datastore_noquads(request, set_datastore_quad, appliance):
    """
        This test checks that Host Quadrant when switched off from Mysetting page under
        Visual Tab under "Show Datastores Quadrants" option works properly.
    """
    dc = DatastoreCollection(appliance)
    view = navigate_to(dc, 'All')
    view.toolbar.view_selector.select('Grid View')
    # Here data property will return an empty dict when the Quadrants option is deactivated.
    assert not view.entities.get_first_entity().data
def test_clear_datastore_filter_results(appliance):
    """ Test for clearing filter results for datastores.

    Polarion:
        assignee: gtalreja
        casecomponent: WebUI
        caseimportance: low
        initialEstimate: 1/12h
    """
    dc = DatastoreCollection(appliance)
    view = navigate_to(dc, 'All')
    view.sidebar.datastores.tree.click_path('All Datastores', 'Global Filters',
                                            'Store Type / VMFS')
    view.entities.search.remove_search_filters()
    assert view.entities.title.text == 'All Datastores', 'Clear filter results failed'
Esempio n. 4
0
def test_datastore_noquads(request, set_datastore_quad, appliance):
    """
        This test checks that Host Quadrant when switched off from Mysetting page under
        Visual Tab under "Show Datastores Quadrants" option works properly.

    Polarion:
        assignee: pvala
        casecomponent: Configuration
        caseimportance: medium
        initialEstimate: 1/10h
        tags: settings
    """
    dc = DatastoreCollection(appliance)
    view = navigate_to(dc, 'All')
    view.toolbar.view_selector.select('Grid View')
    assert 'topRight' not in view.entities.get_first_entity().data.get('quad', {})
def test_set_default_datastore_filter(request, appliance):
    """ Test for setting default filter for datastores."""

    # I guess this test has to be redesigned
    # Add cleanup finalizer
    dc = DatastoreCollection(appliance)

    def unset_default_datastore_filter():
        navigate_to(dc, 'All')
        list_acc.select('Filters', 'ALL', by_title=False)
        sel.click(datastore.default_datastore_filter_btn)
    request.addfinalizer(unset_default_datastore_filter)

    navigate_to(dc, 'All')
    list_acc.select('Filters', 'Store Type / NFS', by_title=False)
    sel.click(datastore.default_datastore_filter_btn)
    appliance.server.logout()
    appliance.server.login_admin()
    navigate_to(dc, 'All')
    assert list_acc.is_selected('Filters', 'Store Type / NFS (Default)', by_title=False),\
        'Store Type / NFS not set as default'
def test_datastore_noquads(request, set_datastore_quad, appliance):
    dc = DatastoreCollection(appliance)
    navigate_to(dc, 'All')
    assert visual.check_image_exists, "Image View Failed!"