mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-04-30 12:15:36 +02:00
Test compose timeout option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user