Example #1
0
 def setUp(self):
     """Establish a clean test environment"""
     self.stubs = stubout.StubOutForTesting()
     stubs.stub_out_registry_and_store_server(self.stubs)
     stubs.stub_out_filesystem_backend()
     conf = test_utils.TestConfigOpts(CONF)
     self.adm_context = rcontext.RequestContext(is_admin=True)
     self.context = rcontext.RequestContext(is_admin=False)
     db_api.configure_db(conf)
     self.destroy_fixtures()
     self.create_fixtures()
Example #2
0
 def setUp(self):
     """Establish a clean test environment"""
     self.stubs = stubout.StubOutForTesting()
     stubs.stub_out_registry_and_store_server(self.stubs)
     stubs.stub_out_filesystem_backend()
     conf = test_utils.TestConfigOpts(CONF)
     self.adm_context = rcontext.RequestContext(is_admin=True)
     self.context = rcontext.RequestContext(is_admin=False)
     db_api.configure_db(conf)
     self.destroy_fixtures()
     self.create_fixtures()
Example #3
0
 def __init__(self, conf):
     self.conf = conf
     self.conf.register_opts(self.opts)
     db_api.configure_db(conf)
Example #4
0
 def __init__(self, conf):
     self.conf = conf
     self.conf.register_opts(self.opts)
     db_api.configure_db(conf)
Example #5
0
 def __init__(self, conf):
     self.conf = conf
     db_api.configure_db(conf)
Example #6
0
 def __init__(self, conf):
     self.conf = conf
     db_api.configure_db(conf)