示例#1
0
 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()
示例#2
0
 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(TestOpenStackDriver, self).setUp()

        self.context = utils.dummy_context()
        self.nova_client = None
        self.cinder_client = None
        self.neutron_client = None
        self.keystone_client = None
示例#5
0
 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')
示例#6
0
 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
示例#7
0
 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()
示例#9
0
 def setUp(self):
     super(TestKeystoneClient, self).setUp()
     self.ctx = 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()
示例#11
0
 def setUp(self):
     super(TestGlanceClient, self).setUp()
     self.ctx = utils.dummy_context()
示例#12
0
 def setUp(self):
     super(TestCinderClient, self).setUp()
     self.ctx = utils.dummy_context()
     self.session = 'fake_session'
     self.project = 'fake_project'
示例#13
0
 def setUp(self):
     super(TestKingbirdLock, self).setUp()
     self.context = utils.dummy_context()
 def setUp(self):
     super(TestImageSyncManager, self).setUp()
     self.ctxt = utils.dummy_context()
示例#15
0
 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()
示例#17
0
 def setUp(self):
     super(TestNovaClient, self).setUp()
     self.ctx = utils.dummy_context()
     self.session = 'fake_session'
     self.project = 'fake_project'
     self.user = '******'
示例#18
0
 def setUp(self):
     super(TestQuotaManager, self).setUp()
     self.ctxt = utils.dummy_context()
示例#19
0
 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']
示例#20
0
    def setUp(self):
        super(DBAPIQuotaTest, self).setUp()

        self.setup_dummy_db()
        self.addCleanup(self.reset_dummy_db)
        self.ctx = utils.dummy_context()
示例#21
0
    def setUp(self):
        super(DBAPIQuotaTest, self).setUp()

        self.setup_dummy_db()
        self.addCleanup(self.reset_dummy_db)
        self.ctx = utils.dummy_context()
示例#22
0
 def setUp(self):
     super(TestCinderClient, self).setUp()
     self.ctx = utils.dummy_context()
     self.session = 'fake_session'
     self.project = 'fake_project'
示例#23
0
 def setUp(self):
     super(TestGlanceAdapter, self).setUp()
     self.ctx = utils.dummy_context()