Ejemplo n.º 1
0
def test_sdn_port_net_prov(provider, appliance):
    """ Test functionality of quadicon and detail network providers

    Metadata:
        test_flag: sdn

    Polarion:
        assignee: mmojzis
        casecomponent: WebUI
        initialEstimate: 1/4h
    """
    prov_collection = NetworkProviderCollection(appliance)

    for net_provider in prov_collection.all():
        for port in net_provider.ports.all():
            try:
                view = navigate_to(port, 'Details')
                prov_name = view.entities.relationships.get_text_of('Network Manager')
                assert prov_name == net_provider.name
            except (ManyEntitiesFound, ItemNotFound):  # BZ
                pass
            except NameError:  # does not contain this information in ui, BZ
                pass

    provider.delete_if_exists(cancel=False)
    provider.wait_for_delete()
def test_balances_detail(provider, appliance):
    """ Test of getting attribute from balancer object """
    collection = NetworkProviderCollection(appliance)
    providers = collection.all()
    for prov in providers:
        for balancer in prov.balancers.all():
            check = balancer.health_checks
            assert check is not None

    provider.delete_if_exists(cancel=False)
    provider.wait_for_delete()
def test_prov_balances_number(provider, appliance):
    """
    Test number of balancers on 1 provider
    Prerequisites:
        Only one refreshed cloud provider in cfme database
    """
    prov_collection = NetworkProviderCollection(appliance)
    providers = prov_collection.all()
    for prov in providers:
        view = navigate_to(prov, 'Details')
        balancers_number = view.entities.relationships.get_text_of('Load Balancers')
        sum_all = len(prov.balancers.all())
        assert int(balancers_number) == sum_all
Ejemplo n.º 4
0
def test_sdn_port_net_prov(provider, appliance):
    """ Test functionality of quadicon and detail network providers"""
    prov_collection = NetworkProviderCollection(appliance)

    for net_provider in prov_collection.all():
        for port in net_provider.ports.all():
            try:
                view = navigate_to(port, 'Details')
                prov_name = view.entities.relationships.get_text_of(
                    'Network Manager')
                assert prov_name == net_provider.name
            except (ManyEntitiesFound, ItemNotFound):  # BZ
                pass
            except NameError:  # does not contain this information in ui, BZ
                pass

    provider.delete_if_exists(cancel=False)
    provider.wait_for_delete()