Exemplo n.º 1
0
 def test_restore_update(self):
     restore = db.restore_create(self.ctxt, self.fake_restore)
     db.restore_update(self.ctxt, restore['id'], {'status': 'INIT'})
     restore = db.restore_get(self.ctxt, restore['id'])
     self.assertEqual('INIT', restore['status'])
Exemplo n.º 2
0
 def test_restore_update(self):
     restore = db.restore_create(self.ctxt, self.fake_restore)
     db.restore_update(self.ctxt, restore['id'],
                       {'status': 'INIT'})
     restore = db.restore_get(self.ctxt, restore['id'])
     self.assertEqual('INIT', restore['status'])
Exemplo n.º 3
0
 def test_restore_get(self):
     restore = db.restore_create(self.ctxt, self.fake_restore)
     self._assertEqualObjects(restore,
                              db.restore_get(self.ctxt, restore['id']))
Exemplo n.º 4
0
 def test_restore_get(self):
     restore = db.restore_create(self.ctxt,
                                 self.fake_restore)
     self._assertEqualObjects(restore, db.restore_get(self.ctxt,
                                                      restore['id']))