-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add config files to int tests (#368)
* add config files to int tests * add config files to int tests * fix names in tests * add previous pr's changes * fix crypto_test config * fix travis.yml * fix travis.yml
- Loading branch information
Showing
36 changed files
with
326 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/Dockerfile_delete_before_permanent_delta_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM wal-g/docker_prefix:latest | ||
|
||
CMD su postgres -c "/tmp/tests/delete_before_permanent_delta_test.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM wal-g/docker_prefix:latest | ||
|
||
CMD su postgres -c "/tmp/tests/delete_before_permanent_full_test.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"AWS_SECRET_ACCESS_KEY": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", | ||
"PGSSLMODE": "allow", | ||
"WALG_NETWORK_RATE_LIMIT": "10485760", | ||
"WALG_DISK_RATE_LIMIT": "41943040", | ||
"AWS_ACCESS_KEY_ID": "AKIAIOSFODNN7EXAMPLE", | ||
"WALG_UPLOAD_CONCURRENCY": "10", | ||
"AWS_ENDPOINT": "http://s3:9000", | ||
"PGDATABASE": "postgres", | ||
"AWS_S3_FORCE_PATH_STYLE": "true", | ||
"WALG_COMPRESSION_METHOD": "brotli", | ||
"PGHOST": "/var/run/postgresql" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALG_FILE_PREFIX": "/tmp/storage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALE_S3_PREFIX": "s3://cryptobucket", | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALG_PGP_KEY_PATH": "/tmp/PGP_KEY" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delete_before_name_find_full_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "1", | ||
"WALE_S3_PREFIX": "s3://deletebeforenamefindfullbucket", | ||
"WALG_USE_WAL_DELTA": "true" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delete_before_permanent_full_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "0", | ||
"WALE_S3_PREFIX": "s3://deletebeforepermanentfullbucket", | ||
"WALG_USE_WAL_DELTA": "true" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delete_before_time_find_full_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "1", | ||
"WALG_USE_WAL_DELTA": "true", | ||
"WALE_S3_PREFIX": "s3://deletebeforetimefindfullbucket" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delete_end_to_end_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "2", | ||
"WALE_S3_PREFIX": "s3://deleteendtoendbucket", | ||
"WALG_USE_WAL_DELTA": "true" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delete_retain_find_full_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "1", | ||
"WALE_S3_PREFIX": "s3://deleteretainfindfullbucket", | ||
"WALG_USE_WAL_DELTA": "true" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delete_retain_full_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "1", | ||
"WALE_S3_PREFIX": "s3://deleteretainfullbucket", | ||
"WALG_USE_WAL_DELTA": "true" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delete_without_confirm_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "0", | ||
"WALE_S3_PREFIX": "s3://deletewithoutconfirm", | ||
"WALG_USE_WAL_DELTA": "true" |
2 changes: 2 additions & 0 deletions
2
docker/pg_tests/scripts/configs/delta_backup_fullscan_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"WALE_S3_PREFIX": "s3://fullscandeltabucket", | ||
"WALG_DELTA_MAX_STEPS": "6" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/delta_backup_wal_delta_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALE_S3_PREFIX": "s3://waldeltabucket", | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALG_USE_WAL_DELTA": "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALE_S3_PREFIX": "s3://fullbucket", | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALG_PGP_KEY_PATH": "/tmp/PGP_KEY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALE_S3_PREFIX": "s3://ghostbucket", | ||
"WALG_USE_WAL_DELTA": "true" |
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/scripts/configs/several_delta_backups_test_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"WALE_S3_PREFIX": "s3://compressionbucket", | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALG_USE_WAL_DELTA": "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
TMP_CONFIG="/tmp/configs/new_config" | ||
|
||
touch ${TMP_CONFIG} | ||
echo "{" > ${TMP_CONFIG} | ||
cat $1 >> ${TMP_CONFIG} | ||
echo "}" >> ${TMP_CONFIG} | ||
cat ${TMP_CONFIG} > $1 | ||
rm ${TMP_CONFIG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.