コード例 #1
0
def garden_not_permitted():
    garden = Garden(
        name="notpermitted", connection_type="HTTP", namespaces=["notpermitted"]
    ).save()

    yield garden
    garden.delete()
コード例 #2
0
def garden_permitted():
    garden = Garden(
        name="somegarden", connection_type="LOCAL", namespaces=["somegarden"]
    ).save()

    yield garden
    garden.delete()
コード例 #3
0
    def child_garden(self, child_system_v1):
        garden = Garden(name="child_garden",
                        connection_type="http",
                        systems=[child_system_v1]).save()

        yield garden

        garden.delete()
コード例 #4
0
ファイル: user_test.py プロジェクト: beer-garden/beer-garden
    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()
コード例 #5
0
def garden():
    garden = Garden(name="somegarden", connection_type="LOCAL").save()

    yield garden
    garden.delete()
コード例 #6
0
def remote_garden():
    garden = Garden(name="remotegarden", connection_type="HTTP").save()

    yield garden
    garden.delete()
コード例 #7
0
def test_garden(role_assignment_for_garden_scope):
    garden = Garden(**role_assignment_for_garden_scope.domain.identifiers).save()

    yield garden
    garden.delete()
コード例 #8
0
def garden_permitted():
    garden = Garden(name="garden_permitted", connection_type="LOCAL").save()

    yield garden
    garden.delete()
コード例 #9
0
    def local_garden(self, mongo_conn):
        garden = Garden(name=self.garden_name, connection_type="LOCAL").save()

        yield garden

        garden.delete()