Esempio n. 1
0
 def test_operation_log_update(self):
     operation_log = db.operation_log_create(self.ctxt,
                                             self.fake_operation_log)
     db.operation_log_update(self.ctxt, operation_log['id'],
                             {'status': 'finished'})
     operation_log = db.operation_log_get(self.ctxt, operation_log['id'])
     self.assertEqual('finished', operation_log['status'])
Esempio n. 2
0
 def test_operation_log_update(self):
     operation_log = db.operation_log_create(self.ctxt,
                                             self.fake_operation_log)
     db.operation_log_update(self.ctxt, operation_log['id'],
                             {'state': 'finished'})
     operation_log = db.operation_log_get(self.ctxt, operation_log['id'])
     self.assertEqual('finished', operation_log['state'])
Esempio n. 3
0
 def test_operation_log_get(self):
     operation_log = db.operation_log_create(self.ctxt,
                                             self.fake_operation_log)
     self._assertEqualObjects(
         operation_log, db.operation_log_get(self.ctxt,
                                             operation_log['id']))
Esempio n. 4
0
 def test_operation_log_get(self):
     operation_log = db.operation_log_create(self.ctxt,
                                             self.fake_operation_log)
     self._assertEqualObjects(operation_log, db.operation_log_get(
         self.ctxt, operation_log['id']))