Beispiel #1
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     Upstart.clean()
Beispiel #2
0
 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()
Beispiel #4
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     Upstart.clean()
     ServiceManager.clean()
     StorageRouterClient.clean()
Beispiel #5
0
 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()
Beispiel #7
0
    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()
Beispiel #8
0
    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)