diff options
author | BjornMagnussonXA <bjorn.magnusson@est.tech> | 2019-03-06 14:11:57 +0000 |
---|---|---|
committer | BjornMagnussonXA <bjorn.magnusson@est.tech> | 2019-03-06 14:11:57 +0000 |
commit | c4c62f25419e3ac3e660117600eb9ed06c8f2be2 (patch) | |
tree | 40e15f88a87a9ea6b144c92c8c8342f341b3f995 /plans | |
parent | 3396b7536f5ef986df20788c87470c12bb95123a (diff) |
Added DataFile plans and tests
Issue-ID: DCAEGEN2-1313
Change-Id: I21c90190917adc041f24ddb4f6f7446fc882f38c
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
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 |