Example #1
0
 def destroy(self):
     with self.obj_as_admin():
         db.restore_destroy(self._context, self.id)
Example #2
0
 def test_restore_destroy(self):
     restore = db.restore_create(self.ctxt, self.fake_restore)
     db.restore_destroy(self.ctxt, restore['id'])
     self.assertRaises(exception.RestoreNotFound, db.restore_get,
                       self.ctxt, restore['id'])
Example #3
0
 def test_restore_destroy(self):
     restore = db.restore_create(self.ctxt, self.fake_restore)
     db.restore_destroy(self.ctxt, restore['id'])
     self.assertRaises(exception.RestoreNotFound, db.restore_get, self.ctxt,
                       restore['id'])
Example #4
0
 def destroy(self):
     with self.obj_as_admin():
         db.restore_destroy(self._context, self.id)