diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-06-04 16:58:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-04 16:58:33 +0000 |
commit | f61173ebe98f1c746f7cb7eef439d56590a4b78e (patch) | |
tree | be9963bd4ddaa9d7668f3a03e912860c14f53784 /utils/test/result_collection_api/opnfv_testapi/tests | |
parent | a1034f88ad3bb6a89d25283ae05ff003af90866f (diff) | |
parent | 67ce8e57e4400f6734a999b40ccd8c3f6a489094 (diff) |
Merge "support 'GET /dashboard/v1/projects' REST api in testAPI"
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/tests')
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/tests/unit/test_dashboard_project.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/tests/unit/test_dashboard_project.py b/utils/test/result_collection_api/opnfv_testapi/tests/unit/test_dashboard_project.py new file mode 100644 index 000000000..f9d2015be --- /dev/null +++ b/utils/test/result_collection_api/opnfv_testapi/tests/unit/test_dashboard_project.py @@ -0,0 +1,20 @@ +import json + +from opnfv_testapi.common.constants import HTTP_OK +from test_base import TestBase + + +class TestDashboardProjectBase(TestBase): + def setUp(self): + super(TestDashboardProjectBase, self).setUp() + self.basePath = '/dashboard/v1/projects' + self.list_res = None + self.projects = ['bottlenecks', 'doctor', 'functest', + 'promise', 'qtip', 'vsperf', 'yardstick'] + + +class TestDashboardProjectGet(TestDashboardProjectBase): + def test_list(self): + code, body = self.get() + self.assertEqual(code, HTTP_OK) + self.assertItemsEqual(self.projects, json.loads(body)) |