Test compose timeout option

This commit is contained in:
MaxJa4
2023-08-28 22:11:39 +02:00
parent 410a0ab898
commit 0282514b2b
15 changed files with 29 additions and 29 deletions

View File

@@ -28,7 +28,7 @@ fi
# The second part of this test checks if backups get deleted when the retention
# is set to 0 days (which it should not as it would mean all backups get deleted)
BACKUP_RETENTION_DAYS="0" docker compose up -d
BACKUP_RETENTION_DAYS="0" docker compose up -d --timeout 3
sleep 5
logs=$(docker compose exec -T backup backup)
@@ -43,7 +43,7 @@ fi
# The third part of this test checks if old backups get deleted when the retention
# is set to 7 days (which it should)
BACKUP_RETENTION_DAYS="7" docker compose up -d
BACKUP_RETENTION_DAYS="7" docker compose up -d --timeout 3
sleep 5
info "Create second backup and prune"
@@ -61,5 +61,5 @@ else
fi
docker compose down --volumes
docker compose down --volumes --timeout 3
rm user_v2_ready.yaml