def garden_not_permitted(): garden = Garden( name="notpermitted", connection_type="HTTP", namespaces=["notpermitted"] ).save() yield garden garden.delete()
def garden_permitted(): garden = Garden( name="somegarden", connection_type="LOCAL", namespaces=["somegarden"] ).save() yield garden garden.delete()
def child_garden(self, child_system_v1): garden = Garden(name="child_garden", connection_type="http", systems=[child_system_v1]).save() yield garden garden.delete()
def gardens(self): garden1 = Garden(name="garden1", connection_type="HTTP", status="RUNNING").save() garden2 = Garden(name="garden2", connection_type="HTTP", status="RUNNING").save() garden3 = Garden(name="garden2", connection_type="HTTP", status="STOPPED").save() yield [garden1, garden2, garden3] garden1.delete() garden2.delete() garden3.delete()
def garden(): garden = Garden(name="somegarden", connection_type="LOCAL").save() yield garden garden.delete()
def remote_garden(): garden = Garden(name="remotegarden", connection_type="HTTP").save() yield garden garden.delete()
def test_garden(role_assignment_for_garden_scope): garden = Garden(**role_assignment_for_garden_scope.domain.identifiers).save() yield garden garden.delete()
def garden_permitted(): garden = Garden(name="garden_permitted", connection_type="LOCAL").save() yield garden garden.delete()
def local_garden(self, mongo_conn): garden = Garden(name=self.garden_name, connection_type="LOCAL").save() yield garden garden.delete()