def setUp(self): super(TenantTestCase, self).setUp() self.useFixture(database.Database()) self.load_backends() self.load_fixtures(default_fixtures) self.tenant_controller = resource_controllers.Tenant() self.assignment_tenant_controller = ( assignment_controllers.TenantAssignment()) self.assignment_role_controller = ( assignment_controllers.RoleAssignmentV2())
def add_routes(self, mapper): # Tenant Operations tenant_controller = controllers.Tenant() mapper.connect('/tenants', controller=tenant_controller, action='get_all_projects', conditions=dict(method=['GET'])) mapper.connect('/tenants/{tenant_id}', controller=tenant_controller, action='get_project', conditions=dict(method=['GET']))
def setUp(self): super(TenantTestCaseNoDefaultDomain, self).setUp() self.useFixture(database.Database()) self.load_backends() self.tenant_controller = controllers.Tenant()