summaryrefslogtreecommitdiffstats
path: root/k6-tests
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2024-08-16 14:49:51 +0100
committerdanielhanrahan <daniel.hanrahan@est.tech>2024-08-16 17:18:25 +0100
commit96676fe9a5fc163be511af2a83018882897c660f (patch)
treeeb0980141012c2a2535b210d92f143afbdd2895e /k6-tests
parent8f88e837708b0c8da5693f59286454ca9f1e56a3 (diff)
[k6] Fix teardown script shutting down all containers
The teardown script in k6 shuts down ALL docker containers when done. This can cause failures in the groovy tests when running in parallel, as the groovy test container for DB also shuts down. This fix is to shut down using docker-compose. Issue-ID: CPS-2367 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ic55ca6396dfc3170e4a326f34214d3a819977f50
Diffstat (limited to 'k6-tests')
-rwxr-xr-xk6-tests/teardown.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/k6-tests/teardown.sh b/k6-tests/teardown.sh
index 45422f9d12..1b4d721a23 100755
--- a/k6-tests/teardown.sh
+++ b/k6-tests/teardown.sh
@@ -18,11 +18,5 @@
echo '================================== docker info =========================='
docker ps -a
-echo 'Stopping, Removing all running containers...'
-docker stop $(docker ps -aq) && docker rm $(docker ps -aq)
-
-echo 'Removing Volumes...'
-docker volume prune -f
-
-echo 'Removing Networks...'
-docker network prune -f
+echo 'Stopping, Removing containers and volumes...'
+docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub down --volumes