Skip to content

Commit c02c94a

Browse files
danishedbgabriele-wolfoxfcanovai
authored andcommitted
test(E2E): refactor AKS backup tests to use native blob containers for Barman Cloud integration
When run on Azure, the backup and restore tests now include a test using Azure Blob Storage, in addition to the one using Minio. Co-authored-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com> Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
1 parent 8d34b1b commit c02c94a

18 files changed

+438
-549
lines changed

docs/src/e2e.md

+2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ and the following suite of E2E tests are performed on that cluster:
3737
* Manage PostgreSQL configuration changes;
3838
* Rolling updates when changing PostgreSQL images;
3939
* Backup and ScheduledBackups execution;
40+
* Backup and ScheduledBackups execution using Barman Cloud on Azure blob storage;
4041
* Synchronous replication;
4142
* Restore from backup;
43+
* Restore from backup using Barman Cloud on Azure blob storage;
4244
* Pod affinity using `NodeSelector`;
4345
* Metrics collection;
4446
* JSON log format;

hack/e2e/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ The script can be configured through the following environment variables:
5757
* `E2E_PRE_ROLLING_UPDATE_IMG`: test a rolling upgrade from this version to the
5858
latest minor
5959
* `E2E_DEFAULT_STORAGE_CLASS`: default storage class, depending on the provider
60+
* `AZURE_STORAGE_ACCOUNT`: Azure storage account to test backup and restore, using Barman Cloud on Azure
61+
blob storage
62+
* `AZURE_STORAGE_KEY`: Azure storage key to test backup and restore, using Barman Cloud on Azure
63+
blob storage
6064

6165
If the `CONTROLLER_IMG` is in a private registry, you'll also need to define
6266
the following variables to create a pull secret:

hack/e2e/run-e2e.sh

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ notinpath () {
4242

4343
# Process the e2e templates
4444
export E2E_PRE_ROLLING_UPDATE_IMG=${E2E_PRE_ROLLING_UPDATE_IMG:-${POSTGRES_IMG%.*}}
45+
export AZURE_STORAGE_ACCOUNT=${AZURE_STORAGE_ACCOUNT:-''}
4546
find "${ROOT_DIR}"/tests/*/fixtures -name "*.template" | \
4647
while read -r f; do
4748
envsubst <"${f}" >"${f%.template}"

tests/e2e/azurite_test.go

-144
This file was deleted.

0 commit comments

Comments
 (0)