aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-collectors-restconf
diff options
context:
space:
mode:
authorsharath.reddy <bs.reddy@huawei.com>2019-12-05 14:31:52 +0800
committersharath.reddy <bs.reddy@huawei.com>2019-12-05 14:45:32 +0800
commit580e2bb5218f9d314002f8407f1089b3acf3a5e5 (patch)
treeba4570bb299a8278d3eace9ca80be832bf3c05c5 /plans/dcaegen2-collectors-restconf
parent49bb0d3059539a10fbf4b3a7345b71a814187f49 (diff)
Enhancing the CSIT scripts of RestConfCollector
Issue-ID: DCAEGEN2-1971 Signed-off-by: sharath.reddy <bs.reddy@huawei.com> Change-Id: I8d0106c01b5a1ffe14c5b7a1ad04b75bbc1f0704 Signed-off-by: sharath.reddy <bs.reddy@huawei.com>
Diffstat (limited to 'plans/dcaegen2-collectors-restconf')
-rwxr-xr-xplans/dcaegen2-collectors-restconf/testsuites/setup.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/plans/dcaegen2-collectors-restconf/testsuites/setup.sh b/plans/dcaegen2-collectors-restconf/testsuites/setup.sh
index c1b4f342..2b018172 100755
--- a/plans/dcaegen2-collectors-restconf/testsuites/setup.sh
+++ b/plans/dcaegen2-collectors-restconf/testsuites/setup.sh
@@ -2,14 +2,18 @@
#get current host IP addres
HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
-
+CONTAINER_NAME=rcc
RCC_IMAGE=nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:latest
echo RCC_IMAGE=${RCC_IMAGE}
+#get JAVA version
+echo java -version
+java -version
+
# Start DCAE Restconf Collector
-docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P --name rcc -e DMAAPHOST=${HOST_IP} ${RCC_IMAGE}
+docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P --name ${CONTAINER_NAME} -e DMAAPHOST=${HOST_IP} ${RCC_IMAGE}
-RCC_IP=`get-instance-ip.sh rcc`
+RCC_IP=`get-instance-ip.sh ${CONTAINER_NAME}`
export RCC_IP=${RCC_IP}
export HOST_IP=${HOST_IP}
@@ -19,3 +23,6 @@ pip install jsonschema uuid
# Wait container ready
sleep 5
+#get the docker log
+echo DOCKER LOG ${CONTAINER_NAME}
+docker logs ${CONTAINER_NAME} \ No newline at end of file