File tree Expand file tree Collapse file tree
run/image-processing/test Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4949substitutions :
5050 _SERVICE : image-processing
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments