forked from GoogleCloudPlatform/python-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_system_tests.sh
More file actions
executable file
·39 lines (33 loc) · 889 Bytes
/
Copy pathrun_system_tests.sh
File metadata and controls
executable file
·39 lines (33 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
set -eu
cd /app/google-cloud-python
# Not all packages have system tests
packages="
bigquery
bigtable
datastore
language
logging
monitoring
pubsub
spanner
speech
storage
vision
"
# translate has system test but it gives error message:
# BadRequest: 400 Invalid JSON payload received. Unknown name "model": Cannot bind 'nmt'. Field 'model' could not be found in request message. (GET https://translation.googleapis.com/language/translate/v2?target=de&q=hvala+ti&q=dankon&q=Me+llamo+Jeff&q=My+name+is+Jeff&model=nmt)
disabled_packages="translate"
# Spanner system test needs this
export GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE=1
exit_code=0
for package in ${packages}; do
noxfile="${package}/nox.py"
nox \
-f "${noxfile}" \
-e \
"system_tests(python_version='2.7')" \
"system_tests(python_version='3.6')" \
|| exit_code=1
done
exit "${exit_code}"