diff options
Diffstat (limited to 'plans')
4 files changed, 45 insertions, 0 deletions
diff --git a/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/docker-compose.yml b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/docker-compose.yml new file mode 100644 index 00000000..b95842ba --- /dev/null +++ b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/docker-compose.yml @@ -0,0 +1,8 @@ +version: '2' +services: + dfc: + image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:latest + container_name: dfc + ports: + - "8100:8100" + - "8433:8433" diff --git a/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/setup.sh b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/setup.sh new file mode 100644 index 00000000..af24717a --- /dev/null +++ b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/setup.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +docker-compose up -d + + +DFC=$(docker ps -a -q --filter="name=dfc") + +# Wait for initialization of Docker contaienr for DFC +for i in {1..10}; do +if [ $(docker inspect --format '{{ .State.Running }}' $DFC) ] +then + echo "DFC Container Running" + break +else + echo sleep $i + sleep $i +fi +done + +#Wait for initialization of the DFC service +for i in {1..10}; do +if [ $(curl -so /dev/null -w '%{response_code}' http://localhost:8100/heartbeat ) -eq 200 ] +then + echo "DFC Service running" + break +else + echo sleep $i + sleep $i +fi +done + diff --git a/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh new file mode 100644 index 00000000..bb0ac923 --- /dev/null +++ b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +kill-instance.sh dfc
\ No newline at end of file diff --git a/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/testplan.txt b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/testplan.txt new file mode 100755 index 00000000..1f4ea93e --- /dev/null +++ b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/testplan.txt @@ -0,0 +1,3 @@ +# Test suites are relative paths under [integration/csit.git]/tests/. +# Place the suites in run order. +dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite |