def setUp(self): messaging.setup("fake://", optional=True) self.addCleanup(messaging.cleanup) self.context = utils.dummy_context() # self.stubs = stubout.StubOutForTesting() self.rpcapi = rpc_client.EngineClient() super(EngineRpcAPITestCase, self).setUp()
def setUp(self): super(TestOpenStackDriver, self).setUp() self.context = utils.dummy_context() self.nova_client = None self.cinder_client = None self.neutron_client = None self.keystone_client = None
def setUp(self): super(TestEngineService, self).setUp() self.tenant_id = 'fake_admin' self.thm = scheduler.ThreadGroupManager() self.context = utils.dummy_context(user='******', tenant=self.tenant_id) self.service_obj = service.EngineService('kingbird', 'kingbird-engine')
def setUp(self): super(TestEngineService, self).setUp() self.tenant_id = 'fake_admin' self.thm = scheduler.ThreadGroupManager() self.context = utils.dummy_context(user='******', tenant=self.tenant_id) self.service_obj = service.EngineService('kingbird', 'kingbird-engine') self.payload = {} self.user_id = FAKE_USER self.job_id = FAKE_JOB
def setUp(self): super(TestQuotaManager, self).setUp() self.ctxt = utils.dummy_context()
def setUp(self): super(ServiceRegistryTest, self).setUp() self.setup_dummy_db() self.addCleanup(self.reset_dummy_db) self.ctxt = utils.dummy_context()
def setUp(self): super(TestKeystoneClient, self).setUp() self.ctx = utils.dummy_context()
def setUp(self): super(TestGlanceClient, self).setUp() self.ctx = utils.dummy_context()
def setUp(self): super(TestCinderClient, self).setUp() self.ctx = utils.dummy_context() self.session = 'fake_session' self.project = 'fake_project'
def setUp(self): super(TestKingbirdLock, self).setUp() self.context = utils.dummy_context()
def setUp(self): super(TestImageSyncManager, self).setUp() self.ctxt = utils.dummy_context()
def setUp(self): super(TestNeutronClient, self).setUp() self.ctx = utils.dummy_context() self.session = 'fake_session' self.project = 'fake_project' self.disabled_quota = ['floating_ips', 'volumes']
def setUp(self): super(TestResourceManager, self).setUp() self.ctx = utils.dummy_context()
def setUp(self): super(TestNovaClient, self).setUp() self.ctx = utils.dummy_context() self.session = 'fake_session' self.project = 'fake_project' self.user = '******'
def setUp(self): super(DBAPIQuotaTest, self).setUp() self.setup_dummy_db() self.addCleanup(self.reset_dummy_db) self.ctx = utils.dummy_context()
def setUp(self): super(TestGlanceAdapter, self).setUp() self.ctx = utils.dummy_context()