Esempio n. 1
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
 def tearDown(self):
     """
     Clean up the unittest
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
Esempio n. 3
0
 def setUp(self):
     """
     (Re)Sets the stores on every test
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
 def setUp(self):
     """
     (Re)Sets the stores on every test
     """
     self.volatile.clean()
     self.persistent.clean()
     StorageRouterClient.clean()
 def setUp(self):
     """
     (Re)Sets the stores on every test
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     self.maxDiff = None
     StorageRouterClient.clean()
Esempio n. 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()
 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()
    def setUp(self):
        """
        (Re)Sets the stores on every test
        """
        # Cleaning storage
        self.volatile.clean()
        self.persistent.clean()
        StorageRouterClient.clean()

        self.debug = False
Esempio n. 9
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     Upstart.clean()
     ServiceManager.clean()
     StorageRouterClient.clean()
Esempio n. 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()
Esempio n. 11
0
 def tearDown(self):
     """
     Clean up the unittest
     """
     # Cleaning storage
     self.volatile.clean()
     self.persistent.clean()
     Upstart.clean()
     ServiceManager.clean()
     StorageRouterClient.clean()
Esempio n. 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()
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)