From 1441436c2d25a2ff3e34dd3acccde4fc4d60de10 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Tue, 5 Sep 2017 17:14:16 +0800 Subject: 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 --- utils/test/testapi/docker/prepare-env.sh | 2 +- 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] -- cgit 1.2.3-korg