X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=testsuites%2Fstability%2Fsrc%2Fmain%2Fresources%2Fsimulatorsetup%2Fsetup_components.sh;fp=testsuites%2Fstability%2Fsrc%2Fmain%2Fresources%2Fsimulatorsetup%2Fsetup_components.sh;h=5323fc579aebb522b8493979e677bec4c682bb92;hb=31e9bd9dd79da923e521ab51d627e7622a548062;hp=8ea123d9258a85df9889ada3548d5b9567164d3d;hpb=4de0870f3bb8d9faaa01508d9a08e76cb6c74714;p=policy%2Fpap.git diff --git a/testsuites/stability/src/main/resources/simulatorsetup/setup_components.sh b/testsuites/stability/src/main/resources/simulatorsetup/setup_components.sh index 8ea123d9..5323fc57 100644 --- a/testsuites/stability/src/main/resources/simulatorsetup/setup_components.sh +++ b/testsuites/stability/src/main/resources/simulatorsetup/setup_components.sh @@ -21,6 +21,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo ${DIR} +# get the PAP_HOST from the command line +read -p 'PAP_HOST : ' PAP_HOST + +# setting hostname to environment variable +echo "export API_HOST=`hostname -I | awk '{print $1}'`" >> ~/.bashrc +echo "export PAP_HOST=$PAP_HOST" >> ~/.bashrc +source ~/.bashrc + # the temp directory used, within $DIR # omit the -p parameter to create a temporal directory in the default location WORK_DIR=`mktemp -d -p "$DIR"`