aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-services-son-handler/testsuites/teardown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plans/dcaegen2-services-son-handler/testsuites/teardown.sh')
-rw-r--r--plans/dcaegen2-services-son-handler/testsuites/teardown.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/plans/dcaegen2-services-son-handler/testsuites/teardown.sh b/plans/dcaegen2-services-son-handler/testsuites/teardown.sh
new file mode 100644
index 00000000..7db3d2f6
--- /dev/null
+++ b/plans/dcaegen2-services-son-handler/testsuites/teardown.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+echo "Starting teardown script"
+TEST_PLANS_DIR=$WORKSPACE/plans/dcaegen2-services-son-handler/testsuites
+mkdir -p $WORKSPACE/archives
+
+docker container stop configdb_oof_sim
+docker container rm configdb_oof_sim
+docker-compose -f $TEST_PLANS_DIR/docker-compose.yaml logs > $WORKSPACE/archives/sonhandler-docker-compose.log
+docker-compose -f $TEST_PLANS_DIR/docker-compose.yaml down -v