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)
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)
def has_no_middleware_providers(): """Clear all middleware providers.""" BaseProvider.clear_providers_by_class(MiddlewareProvider, validate=True)
def delete_providers_after_test(): yield BaseProvider.clear_providers_by_class(InfraProvider)