edit check result and make sure the query result correct
In the line 116 of file test_agents.py, the function is query agent by hypervisor, but query result check cannot make sure all members of query result is right. So add result check, make sure all the query members is right.
Change-Id: Ifdb97e6dd4b4aeb707f366fe869bb22e707b13b8
diff --git a/tempest/api/compute/admin/test_agents.py b/tempest/api/compute/admin/test_agents.py
index 4cc5fdd..f54fb22 100644
--- a/tempest/api/compute/admin/test_agents.py
+++ b/tempest/api/compute/admin/test_agents.py
@@ -119,3 +119,5 @@
self.assertIn(agent_id_xen, map(lambda x: x['agent_id'], agents))
self.assertNotIn(body['agent_id'], map(lambda x: x['agent_id'],
agents))
+ for agent in agents:
+ self.assertEqual(agent_xen['hypervisor'], agent['hypervisor'])