예제 #1
0
 def instance(self, request, test_org, test_space):
     instance = ServiceInstance.api_create_with_plan_name(
         org_guid=test_org.guid,
         space_guid=test_space.guid,
         service_label=ServiceLabels.KAFKA,
         service_plan_name=ServicePlan.SHARED)
     request.addfinalizer(
         lambda: fixtures.delete_or_not_found(instance.cleanup))
     return instance
예제 #2
0
 def space(cls, request, test_org):
     cls.test_org = test_org
     cls.step("Create test space")
     cls.test_space = Space.api_create(cls.test_org)
     request.addfinalizer(
         lambda: fixtures.delete_or_not_found(cls.test_space.api_delete))
예제 #3
0
 def fin():
     fixtures.delete_or_not_found(self.test_user.api_delete_from_space,
                                  space_guid=self.test_space.guid)
예제 #4
0
 def fin():
     fixtures.delete_or_not_found(test_binding.cleanup)
예제 #5
0
 def fin():
     fixtures.delete_or_not_found(instance.cleanup)
예제 #6
0
 def fin():
     fixtures.delete_or_not_found(instance.api_delete)
 def fin():
     fixtures.delete_or_not_found(
         self.test_user.api_delete_from_organization,
         org_guid=self.test_org.guid)