aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh')
-rwxr-xr-xplans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh b/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
new file mode 100755
index 00000000..fe922ed0
--- /dev/null
+++ b/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+cd ssl
+./gen-certs.sh clean
+cd ..
+
+COMPOSE_LOGS_FILE=${WORKSPACE}/archives/containers_logs/docker-compose.log
+docker-compose logs > ${COMPOSE_LOGS_FILE}
+docker-compose down
+docker-compose rm -f
+
+docker network rm ${CONTAINERS_NETWORK}
+
+if grep "LEAK:" ${COMPOSE_LOGS_FILE}; then
+ echo "WARNING: Memory leak detected in docker-compose logs."
+fi