Пример #1
0
    def setUp(self):
        super(SheepdogTestCase, self).setUp()
        self.driver = sheepdog.SheepdogDriver(
            configuration=conf.Configuration(None))

        db_driver = self.driver.configuration.db_driver
        self.db = importutils.import_module(db_driver)
        self.driver.db = self.db
        self.driver.do_setup(None)
Пример #2
0
 def setUp(self):
     super(SheepdogDriverTestCase, self).setUp()
     self._cfg = conf.Configuration(None)
     self._cfg.sheepdog_store_address = SHEEP_ADDR
     self._cfg.sheepdog_store_port = SHEEP_PORT
     self.driver = sheepdog.SheepdogDriver(configuration=self._cfg)
     db_driver = self.driver.configuration.db_driver
     self.db = importutils.import_module(db_driver)
     self.driver.db = self.db
     self.driver.do_setup(None)
     self.test_data = SheepdogDriverTestDataGenerator()
     self.client = self.driver.client
     self._vdiname = self.test_data.TEST_VOLUME.name
     self._vdisize = self.test_data.TEST_VOLUME.size