Skip to content

Commit 5c66d13

Browse files
authored
Merge branch 'main' into header-checker-missing
2 parents 9014fda + 3b66abe commit 5c66d13

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

run/image-processing/test/e2e_test_cleanup.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ steps:
3838
"gcloud pubsub subscriptions delete ${_SERVICE}_sub"
3939
4040
- id: 'Delete GCS buckets'
41-
name: 'gcr.io/cloud-builders/gsutil:latest'
41+
name: 'gcr.io/cloud-builders/gcloud:latest'
4242
entrypoint: /bin/bash
4343
args:
4444
- '-c'
4545
- |
46-
./test/retry.sh "gsutil rm -r gs://${_SERVICE}_input"
47-
./test/retry.sh "gsutil rm -r gs://${_SERVICE}_output"
46+
./test/retry.sh "gcloud storage rm --recursive gs://${_SERVICE}_input"
47+
./test/retry.sh "gcloud storage rm --recursive gs://${_SERVICE}_output"
4848
4949
substitutions:
5050
_SERVICE: image-processing

run/image-processing/test/e2e_test_setup.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,24 @@ steps:
4444
--update-env-vars=BLURRED_BUCKET_NAME=${_SERVICE}_output"
4545
4646
- id: 'Create GCS buckets with Pub/Sub notification'
47-
name: 'gcr.io/cloud-builders/gsutil:latest'
47+
name: 'gcr.io/cloud-builders/gcloud:latest'
4848
entrypoint: /bin/bash
4949
args:
5050
- '-c'
5151
- |
5252
# Create Buckets
53-
./test/retry.sh "gsutil mb -p ${PROJECT_ID} gs://${_SERVICE}_input"
54-
./test/retry.sh "gsutil mb -p ${PROJECT_ID} gs://${_SERVICE}_output"
53+
./test/retry.sh "gcloud storage buckets create --project=${PROJECT_ID} gs://${_SERVICE}_input"
54+
./test/retry.sh "gcloud storage buckets create --project=${PROJECT_ID} gs://${_SERVICE}_output"
5555
5656
# Create Pub/Sub notification
57-
./test/retry.sh "gsutil notification create -t ${_SERVICE} -f json gs://${_SERVICE}_input"
57+
./test/retry.sh "gcloud storage buckets notifications create --topic=${_SERVICE} --payload-format=json gs://${_SERVICE}_input"
5858
./test/retry.sh "gcloud pubsub subscriptions create ${_SERVICE}_sub \
5959
--topic ${_SERVICE} \
6060
--push-endpoint $(gcloud run services describe ${_SERVICE} --project=${PROJECT_ID} --platform=${_PLATFORM} --region=${_REGION} --format='value(status.url)') \
6161
--push-auth-service-account cloud-run-invoker@${PROJECT_ID}.iam.gserviceaccount.com"
6262
sleep 5
6363
# Upload photo
64-
./test/retry.sh "gsutil cp test/zombie.jpg gs://${_SERVICE}_input"
64+
./test/retry.sh "gcloud storage cp test/zombie.jpg gs://${_SERVICE}_input"
6565
sleep 30
6666
6767

0 commit comments

Comments
 (0)