implement get/query scenario(s) and add unittest
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Tue, 17 Jan 2017 06:55:02 +0000 (14:55 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 18 Jan 2017 09:52:54 +0000 (17:52 +0800)
commit9e80a5de29affe79f8bbdc3658459e86fe5292cb
treedcd258d355fc121f503ab6a2708f4f14f966d76a
parent16d5fe234367a75a52dc33dae012df4f1098ae0b
implement get/query scenario(s) and add unittest

supported queries: scenario name/version/installer/project

JIRA: RELENG-163

Change-Id: I3f6ea6e3c81edff30569918e0789e8c1e693b9fc
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
testapi/opnfv_testapi/resources/scenario_handlers.py
testapi/opnfv_testapi/resources/scenario_models.py
testapi/opnfv_testapi/tests/unit/fake_pymongo.py
testapi/opnfv_testapi/tests/unit/scenario-c1.json [moved from testapi/opnfv_testapi/tests/unit/scenario-create.json with 99% similarity]
testapi/opnfv_testapi/tests/unit/scenario-c2.json [new file with mode: 0644]
testapi/opnfv_testapi/tests/unit/test_base.py
testapi/opnfv_testapi/tests/unit/test_scenario.py