From 1a9e22dd8f656dca9ead5e4fb3414f2f07488f48 Mon Sep 17 00:00:00 2001 From: Ed Cranford Date: Thu, 27 Sep 2012 16:12:26 -0500 Subject: [PATCH] Make sure that not only are the instance fields present, but non-null, especially server_id and status. --- tests/integration/tests/api/mgmt/hosts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/tests/api/mgmt/hosts.py b/tests/integration/tests/api/mgmt/hosts.py index 2ebcd069..fcf3082e 100644 --- a/tests/integration/tests/api/mgmt/hosts.py +++ b/tests/integration/tests/api/mgmt/hosts.py @@ -142,3 +142,5 @@ class HostsAfterInstanceCreation(object): check.equal(sorted(['id', 'name', 'status', 'server_id', 'tenant_id']), sorted(instance.keys())) + for key in instance.keys(): + check.is_not_none(instance[key])