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
1 changed files with 3 additions and 0 deletions

View File

@ -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())