diff options
author | Mariusz Wagner <mariusz.wagner@nokia.com> | 2019-03-14 08:07:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-14 08:07:32 +0000 |
commit | abeb9748bbf4c68b20381e84aeeee1e52b9ff623 (patch) | |
tree | 5a39b1ffc8e6ec970f4582ff0ddaeef4b6bb81c7 /plans | |
parent | 1c31dc81825328355b86c155f4d13067a1cd4214 (diff) | |
parent | c4c62f25419e3ac3e660117600eb9ed06c8f2be2 (diff) |
Merge "Added DataFile plans and tests"
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 |