Пример #1
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
Пример #2
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
Пример #3
0
 def setUp(self):
     """
     (Re)Sets the stores on every test
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
Пример #4
0
 def setUp(self):
     """
     (Re)Sets the stores on every test
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
Пример #5
0
 def setUp(self):
     """
     (Re)Sets the stores on every test
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     self.maxDiff = None
     StorageRouterClient.clean()
Пример #6
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.volatile = VolatileFactory.get_client()
     cls.persistent = PersistentFactory.get_client()
     cls.volatile.clean()
     cls.persistent.clean()
     StorageRouterClient.clean()
Пример #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.volatile = VolatileFactory.get_client()
     cls.persistent = PersistentFactory.get_client()
     cls.volatile.clean()
     cls.persistent.clean()
     StorageRouterClient.clean()
Пример #8
0
    def setUp(self):
        """
        (Re)Sets the stores on every test
        """
        # Cleaning storage
        self.volatile.clean()
        self.persistent.clean()
        StorageRouterClient.clean()

        self.debug = False
Пример #9
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     Upstart.clean()
     ServiceManager.clean()
     StorageRouterClient.clean()
Пример #10
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()
Пример #11
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     Upstart.clean()
     ServiceManager.clean()
     StorageRouterClient.clean()
Пример #12
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()
Пример #13
0
    def setUp(self):
        """
        (Re)Sets the stores on every test
        """
        # Cleaning storage
        self.volatile.clean()
        self.persistent.clean()
        StorageRouterClient.clean()

        self.debug = False
    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()
        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)
Пример #15
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()
        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)
Пример #16
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()
        StorageRouterClient.clean()

        fakesleep.monkey_patch()
        Configuration.set('/ovs/framework/arakoon_clusters|voldrv', 'voldrv')
        Configuration.set('/ovs/framework/hosts/1/ports', {'arakoon': [10000, 10100]})
        Configuration.set('/ovs/framework/rdma', False)