Merge "Unittest node_info is added with a version_id"
This commit is contained in:
commit
04e646c642
@ -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…
Reference in New Issue
Block a user