Skip to content

Commit

Permalink
Fix e2e test (#804)
Browse files Browse the repository at this point in the history
Signed-off-by: Wayne Zhang <[email protected]>
  • Loading branch information
qiwzhang authored Jun 17, 2020
1 parent 24273f3 commit 816a204
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/jenkins-utilities
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ function set_esp_service_version() {
local esp_service="${1}"
local json_path="$(mktemp /tmp/XXXXX.json)"
local version=''
${GCLOUD} endpoints services describe \
${esp_service} --format=json > "${json_path}" || return 1
${GCLOUD} endpoints configs list \
--service=${esp_service} --format=json > "${json_path}" || return 1
version="$(python - << __EOF__ "${json_path}"
import json
import sys
json_path = sys.argv[1]
with open(json_path, 'r') as f:
result = json.load(f)
print str(result['serviceConfig']['id'])
print str(result[0]['id'])
__EOF__
)" || version=''
rm -f "${json_path}"
Expand Down
2 changes: 2 additions & 0 deletions start_esp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ pex_binary(
"pyasn1>=0.1.9",
"pyasn1-modules>=0.0.8",
"urllib3>=1.16",
# rsa 4.3 is the last version support Python 2
"rsa==4.3",
],
)

Expand Down

0 comments on commit 816a204

Please sign in to comment.