From a8a800af51a55a27bfad29c00a1f528e9a0ba4f2 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Tue, 24 Oct 2023 12:12:11 +0100 Subject: [PATCH] Run real Azure tests on CI (#5627) ## Problem We do not run real Azure-related tests on CI ## Summary of changes - Set required env variables to run real Azure blob storage tests on CI --- .github/workflows/build_and_test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 3f1c728c70..ffed67eb67 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -338,6 +338,16 @@ jobs: # Avoid `$CARGO_FEATURES` since there's no `testing` feature in the e2e tests now ${cov_prefix} cargo test $CARGO_FLAGS --package remote_storage --test test_real_s3 + # Run separate tests for real Azure Blob Storage + # XXX: replace region with `eu-central-1`-like region + export AZURE_STORAGE_ACCOUNT="${{ secrets.AZURE_STORAGE_ACCOUNT_DEV }}" + export AZURE_STORAGE_ACCESS_KEY="${{ secrets.AZURE_STORAGE_ACCESS_KEY_DEV }}" + export ENABLE_REAL_AZURE_REMOTE_STORAGE=y + export REMOTE_STORAGE_AZURE_CONTAINER=neon-github-sandbox + export REMOTE_STORAGE_AZURE_REGION=eastus2 + # Avoid `$CARGO_FEATURES` since there's no `testing` feature in the e2e tests now + ${cov_prefix} cargo test $CARGO_FLAGS --package remote_storage --test test_real_azure + - name: Install rust binaries run: | # Install target binaries