Add unit tests for List and get in API. 85/31485/1
authorakhilbatra898 <akhil.batra@research.iiit.ac.in>
Sat, 18 Mar 2017 08:46:26 +0000 (14:16 +0530)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 23 Mar 2017 07:30:11 +0000 (07:30 +0000)
commit7d69a1eae658fae6c7437e0a8316312cb625acb5
treeb84b51d4160459f0ed1b2fd9da403f6ddcd12372
parent05ef2c4f46a9dc7a704a290eb15817c80a52c2e6
Add unit tests for List and get in API.

 - refactor controllers
 - remove abspath and other irrelvant data in response
 - move fixtures
 - refactor decorators

JIRA: QTIP-226

Change-Id: I5fac5b1bc998da198098992e7ddb47ba49685f31
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
(cherry picked from commit bef693f40ad87170b7233b9fef62f2fd8abfc8d8)
qtip/api/__main__.py
qtip/api/controllers/common.py
qtip/api/controllers/metric.py
qtip/api/controllers/plan.py
qtip/api/controllers/qpi.py
qtip/api/swagger/swagger.yaml
tests/unit/api/conftest.py [new file with mode: 0644]
tests/unit/api/metric_controller_test.py [new file with mode: 0644]
tests/unit/api/plan_controller_test.py [new file with mode: 0644]
tests/unit/api/qpi_controller_test.py [new file with mode: 0644]