diff --git a/.kokoro/functions-helloworld.sh b/.kokoro/functions-helloworld.sh index cdcb586382..a711e41e49 100755 --- a/.kokoro/functions-helloworld.sh +++ b/.kokoro/functions-helloworld.sh @@ -17,8 +17,8 @@ export GCLOUD_PROJECT=nodejs-docs-samples-tests STAGE_BUCKET=$GCLOUD_PROJECT GCP_REGION=us-central1 -FUNCTIONS_TOPIC=integration-test-functions -FUNCTIONS_BUCKET=$FUNCTIONS_TOPIC +export FUNCTIONS_TOPIC=integration-test-functions +export FUNCTIONS_BUCKET=$FUNCTIONS_TOPIC export BASE_URL=https://${GCP_REGION}-${GCLOUD_PROJECT}.cloudfunctions.net cd github/nodejs-docs-samples/functions/helloworld diff --git a/functions/helloworld/package.json b/functions/helloworld/package.json index c89645c69c..f63bb9ebc1 100644 --- a/functions/helloworld/package.json +++ b/functions/helloworld/package.json @@ -14,7 +14,7 @@ "scripts": { "lint": "repo-tools lint", "pretest": "npm run lint", - "e2e-test": "export FUNCTIONS_CMD='gcloud beta functions' && sh test/updateFunctions.sh && BASE_URL=\"https://$GCF_REGION-$GCLOUD_PROJECT.cloudfunctions.net/\" ava -T 20s --verbose test/*.test.js", + "e2e-test": "export FUNCTIONS_CMD='gcloud functions' && sh test/updateFunctions.sh && BASE_URL=\"https://$GCF_REGION-$GCLOUD_PROJECT.cloudfunctions.net/\" ava -T 20s --verbose test/*.test.js", "test": "export FUNCTIONS_CMD='functions-emulator' && sh test/updateFunctions.sh && export BASE_URL=\"http://localhost:8010/$GCLOUD_PROJECT/$GCF_REGION\" && ava -T 20s --verbose -c 1 test/index.test.js test/*unit*test.js test/*integration*test.js", "system-test": "export FUNCTIONS_CMD='functions-emulator' && sh test/updateFunctions.sh && export BASE_URL=\"http://localhost:8010/$GCLOUD_PROJECT/$GCF_REGION\" && ava -T 20s --verbose test/*.test.js" },