Merge "Unittest node_info is added with a version_id"

This commit is contained in:
Zuul 2017-10-24 16:20:45 +00:00 committed by Gerrit Code Review
commit 04e646c642

View File

@ -65,6 +65,9 @@ class TestNodeCache(test_base.NodeTest):
expected = {(node.uuid, node.started_at), (uuid2, None)} expected = {(node.uuid, node.started_at), (uuid2, None)}
self.assertEqual(expected, res) 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, res = (db.model_query(db.Attribute.name,
db.Attribute.value, db.Attribute.node_uuid). db.Attribute.value, db.Attribute.node_uuid).
order_by(db.Attribute.name, db.Attribute.value).all()) order_by(db.Attribute.name, db.Attribute.value).all())