Fixes test_update_node by testing updated node.
Fixes a broken test - test_update_node - by testing the updated node. Fixes bug #1180143 *ironic/tests/db/test_nodes.py Change-Id: I402851c58c4f61c600f15960a851f41356240dca
This commit is contained in:
parent
dd4521a3cc
commit
aa19428b88
@ -73,7 +73,6 @@ class DbNodeTestCase(base.DbTestCase):
|
||||
self.dbapi.destroy_node, n['id'])
|
||||
|
||||
def test_update_node(self):
|
||||
# FIXME
|
||||
n = utils.get_test_node()
|
||||
self.dbapi.create_node(n)
|
||||
|
||||
@ -81,5 +80,5 @@ class DbNodeTestCase(base.DbTestCase):
|
||||
new_state = 'TESTSTATE'
|
||||
self.assertNotEqual(old_state, new_state)
|
||||
|
||||
#res = self.dbapi.update_node(n['id'], {'task_state': new_state})
|
||||
#self.assertEqual(new_state, n['task_state'])
|
||||
res = self.dbapi.update_node(n['id'], {'task_state': new_state})
|
||||
self.assertEqual(new_state, res['task_state'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user