Correct k8splugin endpoint configuration in KUD test 76/90876/3
authorKonrad Bańka <k.banka@samsung.com>
Thu, 4 Jul 2019 07:10:25 +0000 (09:10 +0200)
committerKonrad Bańka <k.banka@samsung.com>
Tue, 16 Jul 2019 12:05:25 +0000 (14:05 +0200)
Plugin.sh was misconfigured to connect at wrong port
of k8splugin service.

Issue-ID: MULTICLOUD-686

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I53e7e4d6fdb727adc755318012ee262dbec811ef

kud/tests/plugin.sh

index af74af5..59daa1c 100755 (executable)
@@ -17,7 +17,7 @@ source _common.sh
 source _common_test.sh
 source _functions.sh
 
-base_url="http://localhost:8081"
+base_url="http://localhost:9015"
 #Will resolve to file $KUBE_CONFIG_DIR/kud
 cloud_region_id="kud"
 namespace="testns"
@@ -34,10 +34,10 @@ function _build_generic_sim {
         return
     fi
     BUILD_ARGS="--no-cache"
-    if [ $HTTP_PROXY ]; then
+    if [ ${HTTP_PROXY:-} ]; then
         BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}"
     fi
-    if [ $HTTPS_PROXY ]; then
+    if [ ${HTTPS_PROXY:-} ]; then
         BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}"
     fi