diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-09-05 17:14:16 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-09-05 17:14:16 +0800 |
commit | 1441436c2d25a2ff3e34dd3acccde4fc4d60de10 (patch) | |
tree | 8de92de35472549e8bc89e345d86966b87bb2176 | |
parent | 9c9d5f688b7043eb2422b85ec239b2c9aee9ebff (diff) |
bugfix: TestAPI start failed due to config.ini not found
not specifying abspath, so that the config.ini is installed under
/usr/local/etc/opnfv_testapi/config.ini
Change-Id: If9f4d1ab2d6a67a4aa5b5d481f46e9eddb4a2cbb
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
-rwxr-xr-x | utils/test/testapi/docker/prepare-env.sh | 2 | ||||
-rw-r--r-- | utils/test/testapi/setup.cfg | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/test/testapi/docker/prepare-env.sh b/utils/test/testapi/docker/prepare-env.sh index b14bc2448..92a0c9fd7 100755 --- a/utils/test/testapi/docker/prepare-env.sh +++ b/utils/test/testapi/docker/prepare-env.sh @@ -10,5 +10,5 @@ if [ "$base_url" != "" ]; then sudo crudini --set --existing $FILE api url $base_url/api/v1 sudo crudini --set --existing $FILE ui url $base_url sudo echo "{\"testapiApiUrl\": \"$base_url/api/v1\"}" > \ - /usr/local/lib/python2.7/dist-packages/opnfv_testapi/static/testapi-ui/config.json + /usr/local/share/opnfv_testapi/testapi-ui/config.json fi diff --git a/utils/test/testapi/setup.cfg b/utils/test/testapi/setup.cfg index 030e05acc..d9aa6762e 100644 --- a/utils/test/testapi/setup.cfg +++ b/utils/test/testapi/setup.cfg @@ -25,7 +25,7 @@ packages = opnfv_testapi data_files = - etc/opnfv_testapi = etc/config.ini + /etc/opnfv_testapi = etc/config.ini /usr/local/share/opnfv_testapi = 3rd_party/static/* [entry_points] |