decouple the mutual-dependence of config.py and server.py
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)
commit8ec6f1e7d682a56c122f930febb28da1575b8ff8
tree5881548d80d23caf66bab8e6ea810cd1884dbc54
parentcf402a2a6888ade5c57165dc978a59d2330307a7
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>
testapi/opnfv_testapi/cmd/server.py
testapi/opnfv_testapi/common/config.py
testapi/opnfv_testapi/resources/result_handlers.py
testapi/opnfv_testapi/router/url_mappings.py
testapi/opnfv_testapi/tests/unit/common/test_config.py
testapi/opnfv_testapi/tests/unit/conftest.py [new file with mode: 0644]
testapi/opnfv_testapi/tests/unit/resources/test_base.py
testapi/opnfv_testapi/tests/unit/resources/test_result.py
testapi/opnfv_testapi/tests/unit/resources/test_token.py
testapi/opnfv_testapi/ui/auth/sign.py
testapi/opnfv_testapi/ui/root.py