summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/resources/models.py
AgeCommit message (Collapse)AuthorFilesLines
2017-08-25update versions under scenarioSerenaFeng1-2/+2
1. post, add one or more new versions 2. update, replace existed version as a totality 3. delete, delete one or more versions by name 4. in post&update, if schema is not consistent with ScenarioVersion model, BadRequest will be raised(only extra keys will be detected currently) 5. in post, if project already exist, return Conflict with already exist message 6. in update, if a version appears more than once, also return Conflict with already exist message 7. add update with conflict unittest for projects Change-Id: I0d2c8a5567f3abce7b0313a64e18303af02cc002 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-21update projects in scenarioSerenaFeng1-0/+23
1. post, add one or more new projects 2. update, replace existed projects wholly 3. delete, delete one or more projects by name 4. in post&update, if schema is not consistent with ScenarioProject model, BadRequest will be raised(only extra keys will be detected currently) 5. in post, if project already exist, return Conflict with already exist message Change-Id: Iead585f787a4acc61abce6c9d38a036739b498d6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-05-10correct the import impl of TestAPISerenaFeng1-2/+1
Change-Id: Ia721ff61e02b1819c32d228f5f8910364c139c8a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-02Problem with rally_sanity resultsSerenaFeng1-98/+116
after refactor, details in rally_sanity became 'unicode', which contains built-in 'format' method, which is not processed correctly error message: File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/resources/models.py", line 36, in _format for h in dicts[k]] KeyError: u"u'details'" JIRA: FUNCTEST-723 Change-Id: If35e55f542fbbae8bd1a534938b7279b7a634880 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-26correct swagger model of TestAPISerenaFeng1-0/+1
Change-Id: I101283cb118416823a4d1c77b3de6d7882135f1e Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-23bugfix: access results failed of Test APISerenaFeng1-4/+3
File "/Users/fengxiaowei/opnfv/releng/utils/test/testapi/venv/lib/python2.7/site-packages/opnfv_testapi/resources/models.py", line 47, in format_http return self._format([]) File "/Users/fengxiaowei/opnfv/releng/utils/test/testapi/venv/lib/python2.7/site-packages/opnfv_testapi/resources/models.py", line 37, in _format hs.append(h.format()) AttributeError: 'dict' object has no attribute 'format' JIRA: FUNCTEST-676 Change-Id: I9d8d8a31e5580be51fb690628a03d452742f12d4 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-20simplify model process of TestAPISerenaFeng1-31/+58
JIRA: FUNCTEST-671 Change-Id: I8a398f04f2d12c880ec0803aa56c2645dc673523 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-10-18rename result_collection_api to testapiSerenaFeng1-0/+71
Change-Id: Iec4e3db23cd44f30831e17c127eda74e9d9b5d14 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>