@@ -131,7 +131,7 @@ function retry() {
131131# Download api Keys from Cloud storage and source the file.
132132function set_api_keys() {
133133 local api_key_directory=" $( mktemp -d) "
134- $GSUTIL cp gs://apiproxy-testing-client-secret-files/api_keys \
134+ gcloud storage cp gs://apiproxy-testing-client-secret-files/api_keys \
135135 " ${api_key_directory} /api_keys" \
136136 || error_exit " Failed to download API key file."
137137
@@ -142,7 +142,7 @@ function set_api_keys() {
142142function get_test_client_key() {
143143 local remote_file_name=$1
144144 local key_path=$2
145- $GSUTIL cp " gs://apiproxy-testing-client-secret-files/$remote_file_name " " $key_path "
145+ gcloud storage cp " gs://apiproxy-testing-client-secret-files/$remote_file_name " " $key_path "
146146 echo -n " $key_path "
147147 return 0
148148}
@@ -279,7 +279,7 @@ function update_tool() {
279279
280280 [[ -z " ${TOOLS_BUCKET} " ]] && return 1
281281 echo " Uploading ${local_path} to ${remote_path} ."
282- ${GSUTIL} cp " ${local_path} " " ${remote_path} " \
282+ gcloud storage cp " ${local_path} " " ${remote_path} " \
283283 || { echo " Failed to upload ${tool_name} to ${TOOLS_BUCKET} " ;
284284 return 1; }
285285 return 0
@@ -293,7 +293,7 @@ function get_tool() {
293293
294294 [[ -z " ${TOOLS_BUCKET} " ]] && return 1
295295 echo " Downloading ${remote_path} to ${local_path} ."
296- ${GSUTIL} cp " ${remote_path} " " ${local_path} " \
296+ gcloud storage cp " ${remote_path} " " ${local_path} " \
297297 || { echo " Failed to upload ${tool_name} to ${TOOLS_BUCKET} " ;
298298 return 1; }
299299 return 0
0 commit comments