aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-collectors-restconf/testsuites
diff options
context:
space:
mode:
authorsharath <sharathkumarboyanapally@gmail.com>2019-04-09 19:52:09 +0530
committerSwarup Nayak <swarup.nayak1@huawei.com>2019-04-09 18:31:38 +0000
commitb0c1f134c62deea91b1f4b242d8562842c77dc53 (patch)
tree885250469b5bc3dbea0159d9a760ae96ee12e81f /plans/dcaegen2-collectors-restconf/testsuites
parentc257e7baca0f1f9d5f50ec82c7421ef780fc8b84 (diff)
RestConfCollector CSIT test cases
Issue-ID: DCAEGEN2-1055 Change-Id: I70dc5d957e49abc4adcaa5a0ecd5e4c0ca7526dd Signed-off-by: sharath <sharathkumarboyanapally@gmail.com>
Diffstat (limited to 'plans/dcaegen2-collectors-restconf/testsuites')
-rwxr-xr-xplans/dcaegen2-collectors-restconf/testsuites/setup.sh21
-rwxr-xr-xplans/dcaegen2-collectors-restconf/testsuites/teardown.sh3
-rwxr-xr-xplans/dcaegen2-collectors-restconf/testsuites/testplan.txt3
3 files changed, 27 insertions, 0 deletions
diff --git a/plans/dcaegen2-collectors-restconf/testsuites/setup.sh b/plans/dcaegen2-collectors-restconf/testsuites/setup.sh
new file mode 100755
index 00000000..c1b4f342
--- /dev/null
+++ b/plans/dcaegen2-collectors-restconf/testsuites/setup.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+#get current host IP addres
+HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
+
+RCC_IMAGE=nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:latest
+echo RCC_IMAGE=${RCC_IMAGE}
+
+# Start DCAE Restconf Collector
+docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P --name rcc -e DMAAPHOST=${HOST_IP} ${RCC_IMAGE}
+
+RCC_IP=`get-instance-ip.sh rcc`
+export RCC_IP=${RCC_IP}
+export HOST_IP=${HOST_IP}
+
+export ROBOT_VARIABLES="--pythonpath ${WORKSPACE}/tests/dcaegen2-collectors-restconf/testcases/resources"
+
+pip install jsonschema uuid
+# Wait container ready
+sleep 5
+
diff --git a/plans/dcaegen2-collectors-restconf/testsuites/teardown.sh b/plans/dcaegen2-collectors-restconf/testsuites/teardown.sh
new file mode 100755
index 00000000..1816f16b
--- /dev/null
+++ b/plans/dcaegen2-collectors-restconf/testsuites/teardown.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+kill-instance.sh rcc \ No newline at end of file
diff --git a/plans/dcaegen2-collectors-restconf/testsuites/testplan.txt b/plans/dcaegen2-collectors-restconf/testsuites/testplan.txt
new file mode 100755
index 00000000..66a70718
--- /dev/null
+++ b/plans/dcaegen2-collectors-restconf/testsuites/testplan.txt
@@ -0,0 +1,3 @@
+# Test suites are relative paths under [integration/csit.git]/tests/.
+# Place the suites in run order.
+dcaegen2-collectors-restconf/testcases