Ejemplo n.º 1
0
def test_servicetemplateandimages_defaultfilters(appliance, request):
    filters = [['Services', 'Workloads', 'Templates & Images', 'Platform / Microsoft']]
    tree_path = ['All Templates & Images', 'Global Filters', 'Platform / Microsoft']
    appliance.user.my_settings.default_filters.update({'filters': [(k, True) for k in filters]})
    templates_images = workloads.TemplatesImages(appliance)
    view = navigate_to(templates_images, 'All')
    request.addfinalizer(lambda: appliance.user.my_settings.default_filters.update(
        {'filters': [(k, False) for k in filters]}))
    assert view.templates.tree.has_path(*tree_path), 'Default Filter settings Failed!'
Ejemplo n.º 2
0
def test_servicetemplateandimages_defaultfilters(appliance, request):
    """
    Polarion:
        assignee: pvala
        casecomponent: config
        caseimportance: medium
        initialEstimate: 1/6h
    """
    filters = [[
        'Services', 'Workloads', 'Templates & Images', 'Platform / Microsoft'
    ]]
    tree_path = [
        'All Templates & Images', 'Global Filters', 'Platform / Microsoft'
    ]
    appliance.user.my_settings.default_filters.update(
        {'filters': [(k, True) for k in filters]})
    templates_images = workloads.TemplatesImages(appliance)
    view = navigate_to(templates_images, 'All')
    request.addfinalizer(lambda: appliance.user.my_settings.default_filters.
                         update({'filters': [(k, False) for k in filters]}))
    assert view.templates.tree.has_path(
        *tree_path), 'Default Filter settings Failed!'