summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/tests/unit
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-05-24 17:05:44 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2016-05-24 17:06:01 +0200
commit67d142c60b4f6bc5eca821a38ae79be0719053ff (patch)
tree39730728e14e50ab2ff28666e94ab1820a8b81b1 /utils/test/result_collection_api/tests/unit
parent10af8e5e9f27b72ec0d0fdf5939147ee15aec36c (diff)
Add pod role in pod description in the API
JIRA: FUNCTEST-259 Change-Id: Id0c232f61244a185c7ab238d6493ef5487a9efbf Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'utils/test/result_collection_api/tests/unit')
-rw-r--r--utils/test/result_collection_api/tests/unit/test_pod.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/test/result_collection_api/tests/unit/test_pod.py b/utils/test/result_collection_api/tests/unit/test_pod.py
index 07f55db8d..b6adc25ec 100644
--- a/utils/test/result_collection_api/tests/unit/test_pod.py
+++ b/utils/test/result_collection_api/tests/unit/test_pod.py
@@ -9,8 +9,8 @@ from common.constants import HTTP_OK, HTTP_BAD_REQUEST, \
class TestPodBase(TestBase):
def setUp(self):
super(TestPodBase, self).setUp()
- self.req_d = PodCreateRequest('zte-1', 'fuel', 'zte pod 1')
- self.req_e = PodCreateRequest('zte-2', 'apex', 'zte pod 2')
+ self.req_d = PodCreateRequest('zte-1', 'virtual', 'zte pod 1','ci-pod')
+ self.req_e = PodCreateRequest('zte-2', 'metal', 'zte pod 2')
self.get_res = Pod
self.list_res = Pods
self.basePath = '/pods'
@@ -21,6 +21,7 @@ class TestPodBase(TestBase):
self.assertEqual(pod.name, req.name)
self.assertEqual(pod.mode, req.mode)
self.assertEqual(pod.details, req.details)
+ self.assertEqual(pod.role, req.role)
self.assertIsNotNone(pod.creation_date)
self.assertIsNotNone(pod._id)