Beispiel #1
0
 def fin():
     """
     Remove test namespaces
     """
     for namespace in namespaces:
         ns = NameSpace(name=namespace)
         ns.delete(wait=True)
Beispiel #2
0
def init(request):
    """
    Create test namespaces
    """
    def fin():
        """
        Remove test namespaces
        """
        ns = NameSpace(name=config.NETWORK_NS)
        ns.delete(wait=True)

    request.addfinalizer(fin)

    ns = NameSpace(name=config.NETWORK_NS)
    ns.create(wait=True)
    ns.wait_for_status(status=types.ACTIVE)
    ns.work_on()
Beispiel #3
0
def init(request):
    """
    Create test namespaces
    """
    namespaces = (config.TEST_NS, config.TEST_NS_ALTERNATIVE)

    def fin():
        """
        Remove test namespaces
        """
        for namespace in namespaces:
            ns = NameSpace(name=namespace)
            ns.delete(wait=True)

    request.addfinalizer(fin)

    for namespace in namespaces:
        ns = NameSpace(name=namespace)
        ns.create(wait=True)
        ns.wait_for_status(status=types.ACTIVE)
Beispiel #4
0
 def fin():
     """
     Remove test namespaces
     """
     ns = NameSpace(name=config.NETWORK_NS)
     ns.delete(wait=True)