예제 #1
0
def has_no_infra_providers():
    """ Clears all infrastructure providers from an appliance

    This is a destructive fixture. It will clear all infrastructure managements systems from
    the current appliance.
    """
    BaseProvider.clear_providers_by_class(InfraProvider, validate=True)
예제 #2
0
def has_no_containers_providers():
    """ Clears all containers providers from an appliance

    This is a destructive fixture. It will clear all container managements systems from
    the current appliance.
    """
    BaseProvider.clear_providers_by_class(ContainersProvider, validate=True)
예제 #3
0
def has_no_middleware_providers():
    """Clear all middleware providers."""
    BaseProvider.clear_providers_by_class(MiddlewareProvider, validate=True)
예제 #4
0
def delete_providers_after_test():
    yield
    BaseProvider.clear_providers_by_class(InfraProvider)