From 44d65c1a67fb3996d9ba17369939ccc198a004e5 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Fri, 9 Jul 2021 09:57:05 +0200 Subject: [PATCH] assert that all containers are back up and running after backup --- test/default/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/default/test.sh b/test/default/test.sh index 0b6a459..550cfec 100755 --- a/test/default/test.sh +++ b/test/default/test.sh @@ -13,6 +13,12 @@ docker run --rm -it \ -v default_backup_data:/data alpine \ ash -c 'tar -xf /data/backup/test.tar.gz && test -f /backup/app_data/offen.db' +if [ "$(docker-compose ps -q | wc -l)" != "3" ]; then + echo "Expected all containers to be running post backup, instead seen:" + docker-compose ps + exit 1 +fi + docker-compose down --volumes echo "Test passed"