Example #1
0
def test_servicevmsandinstances_defaultfilters(appliance, request):
    filters = [['Services', 'Workloads', 'VMs & Instances', 'Platform / Openstack']]
    tree_path = ['All VMs & Instances', 'Global Filters', 'Platform / Openstack']
    appliance.user.my_settings.default_filters.update({'filters': [(k, True) for k in filters]})
    vms_instance = workloads.VmsInstances(appliance)
    view = navigate_to(vms_instance, 'All')
    request.addfinalizer(lambda: appliance.user.my_settings.default_filters.update(
        {'filters': [(k, False) for k in filters]}))
    assert view.vms.tree.has_path(*tree_path), 'Default Filter settings Failed!'
Example #2
0
def test_servicevmsandinstances_defaultfilters(appliance, request):
    """
    Polarion:
        assignee: pvala
        casecomponent: config
        caseimportance: medium
        initialEstimate: 1/6h
    """
    filters = [[
        'Services', 'Workloads', 'VMs & Instances', 'Platform / Openstack'
    ]]
    tree_path = [
        'All VMs & Instances', 'Global Filters', 'Platform / Openstack'
    ]
    appliance.user.my_settings.default_filters.update(
        {'filters': [(k, True) for k in filters]})
    vms_instance = workloads.VmsInstances(appliance)
    view = navigate_to(vms_instance, 'All')
    request.addfinalizer(lambda: appliance.user.my_settings.default_filters.
                         update({'filters': [(k, False) for k in filters]}))
    assert view.vms.tree.has_path(
        *tree_path), 'Default Filter settings Failed!'