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

@@ -24,7 +24,7 @@ pass "Found relevant files in untared remote backups."
# 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
docker compose exec backup backup
@@ -39,7 +39,7 @@ pass "Remote backups have not been deleted."
# 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 first backup with no prune"
@@ -60,4 +60,4 @@ docker run --rm \
pass "Old remote backup has been pruned, new one is still present."
docker compose down --volumes
docker compose down --volumes --timeout 3