File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
tests/zenko_tests/node_tests/backbeat/tests/crr Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ env_variables=$(yq eval '.env | to_entries | .[] | .key + "=" + .value' .github/
66export GIT_ACCESS_TOKEN=${GITHUB_TOKEN}
77export E2E_IMAGE_TAG=latest
88
9+ # Disable GCP tests as we don't have credentials setup in devcontainer
10+ export GCP_BACKEND_DESTINATION_LOCATION=
11+
912GITHUB_ENV=$( mktemp /tmp/github_env.XXXXXX)
1013
1114for input in $( yq ' .inputs | to_entries | .[] | .key + "=" + .value.default' .github/actions/deploy/action.yaml) ; do
5255 yq -i ' del(.locations[] | select(.locationType == "location-scality-ring-s3-v1"))' e2e-config.yaml
5356 fi
5457
55- # Disable GCP tests as we don't have credentials setup in devcontainer
56- yq -i ' del(.locations[] | select(.locationType == "location-gcp-v1"))' e2e-config.yaml
58+ if [ -z " $GCP_BACKEND_DESTINATION_LOCATION " ]; then
59+ yq -i ' del(.locations[] | select(.locationType == "location-gcp-v1"))' e2e-config.yaml
60+ fi
5761
5862 docker build -t $E2E_IMAGE_NAME :$E2E_IMAGE_TAG .
5963 kind load docker-image ${E2E_IMAGE_NAME} :${E2E_IMAGE_TAG}
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ run_e2e_test() {
8686 --env=AWS_BACKEND_SOURCE_LOCATION=${AWS_BACKEND_SOURCE_LOCATION} \
8787 --env=AWS_BACKEND_DESTINATION_LOCATION=${AWS_BACKEND_DESTINATION_LOCATION} \
8888 --env=AWS_S3_FAIL_BACKEND_DESTINATION_LOCATION=${AWS_BACKEND_DESTINATION_FAIL_LOCATION} \
89- --env=GCP_BACKEND_DESTINATION_LOCATION=${GCP_BACKEND_DESTINATION_LOCATION} \
89+ --env=GCP_BACKEND_DESTINATION_LOCATION=${GCP_BACKEND_DESTINATION_LOCATION:- } \
9090 --env=AZURE_BACKEND_DESTINATION_LOCATION=${AZURE_BACKEND_DESTINATION_LOCATION} \
9191 --env=COLD_BACKEND_DESTINATION_LOCATION=${COLD_BACKEND_DESTINATION_LOCATION} \
9292 --env=AZURE_ARCHIVE_BACKEND_DESTINATION_LOCATION=${AZURE_ARCHIVE_BACKEND_DESTINATION_LOCATION} \
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ const fileutf8 = `${filePrefix}/%EA%9D%8B崰㈌㒈保轖䳷䀰⺩ቆ楪僷ꈅꓜ
2222const REPLICATION_TIMEOUT = 300000 ;
2323
2424describe ( 'Replication with GCP backend' , function ( ) {
25+ if ( ! process . env . GCP_BACKEND_DESTINATION_LOCATION ) {
26+ this . skip ( ) ;
27+ }
28+
2529 this . timeout ( REPLICATION_TIMEOUT ) ;
2630 this . retries ( 3 ) ;
2731 const roleArn = 'arn:aws:iam::root:role/s3-replication-role' ;
You can’t perform that action at this time.
0 commit comments