mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-02-12 07:02:26 +01:00
add basic integration test
This commit is contained in:
15
test/default/test.sh
Normal file → Executable file
15
test/default/test.sh
Normal file → Executable file
@@ -2,4 +2,17 @@
|
||||
|
||||
set -e
|
||||
|
||||
echo "all is well"
|
||||
cd $(dirname $0)
|
||||
|
||||
docker-compose up -d
|
||||
sleep 5
|
||||
|
||||
docker-compose exec backup backup
|
||||
|
||||
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'
|
||||
|
||||
docker-compose down --volumes
|
||||
|
||||
echo "Test passed"
|
||||
|
||||
Reference in New Issue
Block a user