Skip to content

Commit 8da9461

Browse files
author
Robert-Jan Huijsman
authored
Fix to integration test for preprod-endpoint of Cloud Functions. (#105)
The Cloud Functions team has a "preprod" endpoint that generates an alternative URL for the HTTP functions it creates. This PR adds support for that endpoint and its alternative domain.
1 parent 9c30820 commit 8da9461

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integration_test/run_tests.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ function run_tests {
5757
# Construct the URL for the test function. This may change in the future,
5858
# causing this script to start failing, but currently we don't have a very
5959
# reliable way of determining the URL dynamically.
60-
TEST_URL=https://us-central1-$PROJECT_ID.cloudfunctions.net/integrationTests
60+
TEST_DOMAIN="cloudfunctions.net"
61+
if [[ $FIREBASE_FUNCTIONS_URL == "https://preprod-cloudfunctions.sandbox.googleapis.com" ]]; then
62+
TEST_DOMAIN="txcloud.net"
63+
fi
64+
TEST_URL="https://us-central1-$PROJECT_ID.$TEST_DOMAIN/integrationTests"
6165
echo $TEST_URL
6266

6367
curl --fail $TEST_URL

0 commit comments

Comments
 (0)