aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBjornMagnussonXA <bjorn.magnusson@est.tech>2019-03-26 12:48:46 +0000
committerBjornMagnussonXA <bjorn.magnusson@est.tech>2019-03-26 12:48:46 +0000
commitd3104ef51614e203cb87b78ef254fb106ab467bd (patch)
treee472ceb2533173aefb205e468130d6831771bb1f /scripts
parent26ed3a83159b3de2d495b0b41495a826d7e8fd8a (diff)
Added functional CSIT tests for DFC
New test case for single file download and publish Minor refactoring of Management interface test Issue-ID: DCAEGEN2-1313 Change-Id: I2436db42a5884a7d828dbefcf9678aa9cdf064e3 Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dcaegen2-collectors-datafile/dfc-management/dfc-kill.sh4
-rwxr-xr-xscripts/dcaegen2-collectors-datafile/dfc-management/dfc-restart.sh20
-rwxr-xr-xscripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh20
-rw-r--r--scripts/dcaegen2-collectors-datafile/dfc-management/docker-compose.yml9
4 files changed, 53 insertions, 0 deletions
diff --git a/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-kill.sh b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-kill.sh
new file mode 100755
index 00000000..39f2d0d7
--- /dev/null
+++ b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-kill.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+
+docker kill dfc_app \ No newline at end of file
diff --git a/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-restart.sh b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-restart.sh
new file mode 100755
index 00000000..ebc28f49
--- /dev/null
+++ b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-restart.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+#Restart DFC app
+
+docker restart dfc_app
+
+DFC_APP="$(docker ps -q --filter='name=dfc_app')"
+
+
+#Wait for initialization of docker containers for dfc app and all simulators
+for i in {1..10}; do
+if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ]
+ then
+ echo "DFC app Running"
+ break
+ else
+ echo sleep $i
+ sleep $i
+ fi
+done \ No newline at end of file
diff --git a/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
new file mode 100755
index 00000000..4bec4ff8
--- /dev/null
+++ b/scripts/dcaegen2-collectors-datafile/dfc-management/dfc-start.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+#Start DFC app
+
+docker-compose up -d
+
+DFC_APP="$(docker ps -q --filter='name=dfc_app')"
+
+#Wait for initialization of docker containers for dfc app and all simulators
+for i in {1..10}; do
+if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ]
+ then
+ echo "DFC app Running"
+ break
+ else
+ echo sleep $i
+ sleep $i
+ fi
+done
+
diff --git a/scripts/dcaegen2-collectors-datafile/dfc-management/docker-compose.yml b/scripts/dcaegen2-collectors-datafile/dfc-management/docker-compose.yml
new file mode 100644
index 00000000..28dfbbf8
--- /dev/null
+++ b/scripts/dcaegen2-collectors-datafile/dfc-management/docker-compose.yml
@@ -0,0 +1,9 @@
+version: '2'
+services:
+ dfc:
+ network_mode: "host"
+ image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:latest
+ container_name: dfc_app
+ ports:
+ - "8100:8100"
+ - "8433:8433"