def test_services_properties_rel(provider, rel):
    sel.force_navigate('containers_services')
    ui_services = [r.name.text for r in list_tbl_services.rows()]

    for name in ui_services:
        obj = Service(name, provider)
        assert getattr(obj.summary.properties, rel).text_value
def test_services_properties_rel(provider, rel):
    """ Properties table fields tests - Containers Services' summary page
    This test verifies the fields of the Properties table in Containers Services'
    details menu
    Steps:
    Containers -- > Containers Services
    Loop through each Service object in the table and check validity of
    the fields in the Properties table
    """
    navigate_to(Service, 'All')
    ui_services = [r.name.text for r in list_tbl_services.rows()]

    for name in ui_services:
        obj = Service(name, provider)
        assert getattr(obj.summary.properties, rel).text_value
def test_containers_default_services():
    """This test ensures that default container services are existing after provider setup

    Steps:
        * Go to Compute -> Container services.

    Expected result:
        ALL DefaultServices above should exist (appear in the table).
    """
    navigate_to(Service, 'All')
    sel.wait_until(lambda *args: not sel.is_displayed_text('No Records Found'),
                   'There is no container services at all. ((!) No Records Found)'
                   'Maybe the provider didn\'t load?', timeout=120.0)
    names = [r[2].text for r in list_tbl.rows()]
    not_in_list = [serv for serv in DefaultServices if serv not in names]
    if not_in_list:
        pytest.fail('The following services not found: {}'.format(not_in_list))