def tearDown(self): """ Clean up the unittest """ # Cleaning storage self.volatile.clean() self.persistent.clean() Upstart.clean()
def setUp(self): """ (Re)Sets the stores on every test """ # Cleaning storage self.volatile.clean() self.persistent.clean() Upstart.clean() StorageRouterClient.clean()
def tearDown(self): """ Clean up the unittest """ # Cleaning storage self.volatile.clean() self.persistent.clean() Upstart.clean() ServiceManager.clean() StorageRouterClient.clean()
def setUp(self): """ (Re)Sets the stores on every test """ # Cleaning storage self.volatile.clean() self.persistent.clean() Upstart.clean() ServiceManager.clean() StorageRouterClient.clean()
def setUpClass(cls): """ Sets up the unittest, mocking a certain set of 3rd party libraries and extensions. This makes sure the unittests can be executed without those libraries installed """ cls.persistent = PersistentFactory.get_client() cls.persistent.clean() cls.volatile = VolatileFactory.get_client() cls.volatile.clean() Upstart.clean() ServiceManager.clean() StorageRouterClient.clean()
def setUpClass(cls): """ Sets up the unittest, mocking a certain set of 3rd party libraries and extensions. This makes sure the unittests can be executed without those libraries installed """ cls.persistent = PersistentFactory.get_client() cls.persistent.clean() cls.volatile = VolatileFactory.get_client() cls.volatile.clean() Upstart.clean() StorageRouterClient.clean() fakesleep.monkey_patch() Configuration.set('/ovs/framework/storagedriver|mds_tlogs', 100) Configuration.set('/ovs/framework/storagedriver|mds_maxload', 75) Configuration.set('/ovs/framework/storagedriver|mds_safety', 2)