diff options
author | 2016-05-25 09:49:50 +0000 | |
---|---|---|
committer | 2016-05-25 09:49:50 +0000 | |
commit | 02825c3c21fc5c46d4952c1410f96e3836b50b61 (patch) | |
tree | fda42a07197a9f2100029b46b3456754a2e6adea /result_collection_api/tests/unit | |
parent | 12ef6fc908872a2c8f52b53d3f2527d98365fd91 (diff) | |
parent | 73cab1a67e1c62a192eab1286679231a3e22d52d (diff) |
Merge "Add pod role in pod description in the API"
Diffstat (limited to 'result_collection_api/tests/unit')
-rw-r--r-- | result_collection_api/tests/unit/test_pod.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/result_collection_api/tests/unit/test_pod.py b/result_collection_api/tests/unit/test_pod.py index 07f55db..b6adc25 100644 --- a/result_collection_api/tests/unit/test_pod.py +++ b/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) |