Exemplo n.º 1
0
 def tearDown(self):
     try:
         shutil.rmtree(FLAGS.volumes_dir)
     except OSError:
         pass
     notifier_api._reset_drivers()
     super(VolumeTestCase, self).tearDown()
Exemplo n.º 2
0
 def setUp(self):
     super(VolumeTypeEncryptionTest, self).setUp()
     self.flags(connection_type="fake", host="fake", notification_driver=[test_notifier.__name__])
     self.api_path = "/v2/fake/os-volume-types/1/encryption"
     """to reset notifier drivers left over from other api/contrib tests"""
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
Exemplo n.º 3
0
 def tearDown(self):
     try:
         shutil.rmtree(FLAGS.volumes_dir)
     except OSError:
         pass
     notifier_api._reset_drivers()
     super(VolumeTestCase, self).tearDown()
Exemplo n.º 4
0
 def setUp(self):
     super(VolumeTypesManageApiTest, self).setUp()
     self.flags(host='fake', notification_driver=[test_notifier.__name__])
     self.controller = types_manage.VolumeTypesManageController()
     """to reset notifier drivers left over from other api/contrib tests"""
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
     self.addCleanup(notifier_api._reset_drivers)
Exemplo n.º 5
0
 def setUp(self):
     super(VolumeTypeEncryptionTest, self).setUp()
     self.flags(host='fake', notification_driver=[test_notifier.__name__])
     self.api_path = '/v2/fake/os-volume-types/1/encryption'
     """to reset notifier drivers left over from other api/contrib tests"""
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
     self.addCleanup(notifier_api._reset_drivers)
Exemplo n.º 6
0
 def setUp(self):
     super(QoSSpecManageApiTest, self).setUp()
     self.flags(host='fake', notification_driver=[test_notifier.__name__])
     self.controller = qos_specs_manage.QoSSpecsController()
     #reset notifier drivers left over from other api/contrib tests
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
     self.addCleanup(notifier_api._reset_drivers)
Exemplo n.º 7
0
 def setUp(self):
     super(QoSSpecManageApiTest, self).setUp()
     self.flags(host='fake',
                notification_driver=[test_notifier.__name__])
     self.controller = qos_specs_manage.QoSSpecsController()
     #reset notifier drivers left over from other api/contrib tests
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
Exemplo n.º 8
0
 def setUp(self):
     super(VolumeTypesManageApiTest, self).setUp()
     self.flags(host='fake',
                notification_driver=[test_notifier.__name__])
     self.controller = types_manage.VolumeTypesManageController()
     """to reset notifier drivers left over from other api/contrib tests"""
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
 def setUp(self):
     super(VolumeTypeEncryptionTest, self).setUp()
     self.flags(host='fake',
                notification_driver=[test_notifier.__name__])
     self.api_path = '/v2/fake/os-volume-types/1/encryption'
     """to reset notifier drivers left over from other api/contrib tests"""
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
     self.addCleanup(notifier_api._reset_drivers)
Exemplo n.º 10
0
 def setUp(self):
     super(VolumeTypesExtraSpecsTest, self).setUp()
     self.flags(host='fake',
                notification_driver=[test_notifier.__name__])
     self.stubs.Set(cinder.db, 'volume_type_get', volume_type_get)
     self.api_path = '/v2/fake/os-volume-types/1/extra_specs'
     self.controller = types_extra_specs.VolumeTypeExtraSpecsController()
     """to reset notifier drivers left over from other api/contrib tests"""
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
Exemplo n.º 11
0
 def setUp(self):
     super(VolumeTypesExtraSpecsTest, self).setUp()
     self.flags(host='fake', notification_driver=[test_notifier.__name__])
     self.stubs.Set(cinder.db, 'volume_type_get', volume_type_get)
     self.api_path = '/v2/fake/os-volume-types/1/extra_specs'
     self.controller = types_extra_specs.VolumeTypeExtraSpecsController()
     """to reset notifier drivers left over from other api/contrib tests"""
     notifier_api._reset_drivers()
     test_notifier.NOTIFICATIONS = []
     self.addCleanup(notifier_api._reset_drivers)
Exemplo n.º 12
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(QoSSpecManageApiTest, self).tearDown()
Exemplo n.º 13
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(UsageInfoTestCase, self).tearDown()
Exemplo n.º 14
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(VolumeTypeEncryptionTest, self).tearDown()
Exemplo n.º 15
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(QoSSpecManageApiTest, self).tearDown()
 def tearDown(self):
     notifier_api._reset_drivers()
     super(VolumeTypesExtraSpecsTest, self).tearDown()
Exemplo n.º 17
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(VolumeTypesManageApiTest, self).tearDown()
Exemplo n.º 18
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(UsageInfoTestCase, self).tearDown()
Exemplo n.º 19
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(VolumeTypesManageApiTest, self).tearDown()
Exemplo n.º 20
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(VolumeTypesExtraSpecsTest, self).tearDown()
Exemplo n.º 21
0
 def tearDown(self):
     notifier_api._reset_drivers()
     super(VolumeTypeEncryptionTest, self).tearDown()