decouple the mutual-dependence of config.py and server.py 69/37369/18
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 13 Jul 2017 12:09:10 +0000 (20:09 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 20 Jul 2017 07:18:08 +0000 (15:18 +0800)
commitc646dd47d0f75eb568ebadea4e9f64a8f9a14db3
tree3501b9cc078e9abc45a9ea042548084bc095e07c
parent20826c00015567244153ab2e7b39452600fd38c7
decouple the mutual-dependence of config.py and server.py

Currently server.py relies on CONF while starting the service, and
config.py's config_fie is set in server.py, which is wrongly bi-depended
this patch aims to let Config parse the sys.argv personally,
just as oslo.config do, so that decouple the mutual-dependency

Change-Id: I46887d122a98d478caebe9eeb7ab038941ce1f6b
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
utils/test/testapi/opnfv_testapi/cmd/server.py
utils/test/testapi/opnfv_testapi/common/config.py
utils/test/testapi/opnfv_testapi/resources/result_handlers.py
utils/test/testapi/opnfv_testapi/router/url_mappings.py
utils/test/testapi/opnfv_testapi/tests/unit/common/test_config.py
utils/test/testapi/opnfv_testapi/tests/unit/conftest.py [new file with mode: 0644]
utils/test/testapi/opnfv_testapi/tests/unit/resources/test_base.py
utils/test/testapi/opnfv_testapi/tests/unit/resources/test_result.py
utils/test/testapi/opnfv_testapi/tests/unit/resources/test_token.py
utils/test/testapi/opnfv_testapi/ui/auth/sign.py
utils/test/testapi/opnfv_testapi/ui/root.py