Unittest node_info is added with a version_id
This is a follow-up on I422473e888e5e49abb3e598fc2cf2f330620bdcd. TL;DR: unittest the version_id is indeed set when a node is added thru node_info.add_node(). Change-Id: I674a01bba221cea9251dbe13269be205262d65c7
This commit is contained in:
parent
72361d386a
commit
d5266f7c0b
@ -65,6 +65,9 @@ class TestNodeCache(test_base.NodeTest):
|
||||
expected = {(node.uuid, node.started_at), (uuid2, None)}
|
||||
self.assertEqual(expected, res)
|
||||
|
||||
res = db.model_query(db.Node).get(self.uuid)
|
||||
self.assertIsNotNone(res.version_id)
|
||||
|
||||
res = (db.model_query(db.Attribute.name,
|
||||
db.Attribute.value, db.Attribute.node_uuid).
|
||||
order_by(db.Attribute.name, db.Attribute.value).all())
|
||||
|
Loading…
x
Reference in New Issue
Block a user