Exemple #1
0
 def _create_test_storage_backend_with_lvm(self, **kwargs):
     kwargs['forisystemid'] = self.system['id']
     kwargs['backend'] = constants.SB_TYPE_LVM
     n = utils.get_test_storage_backend(**kwargs)
     self.dbapi.storage_backend_create(n)
     return n
Exemple #2
0
 def _create_test_storage_backend(self, **kwargs):
     kwargs['forisystemid'] = self.system['id']
     n = utils.get_test_storage_backend(**kwargs)
     self.dbapi.storage_backend_create(n)
     self.assertRaises(exception.InvalidParameterValue,
                       self.dbapi.storage_backend_create, n)