Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbe686d

Browse files
authored
Use configurable bucket name for GCS samples data in systems tests. (#8783)
* Use configurable bucket name for GCS samples data in systems tests.This allows the VPC-SC team to use their private mirror which is withinthe security boundary when testing BigQuery VPC-SC support.* Blacken
1 parentb32e4e9 commitbbe686d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎bigquery/tests/system.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
),
108108
]
109109

110+
# The VPC-SC team maintains a mirror of the GCS bucket used for code
111+
# samples. The public bucket crosses the configured security boundary.
112+
# See: https://github.com/googleapis/google-cloud-python/issues/8550
113+
SAMPLES_BUCKET=os.environ.get("GCLOUD_TEST_SAMPLES_BUCKET","cloud-samples-data")
114+
110115
retry_storage_errors=RetryErrors(
111116
(TooManyRequests,InternalServerError,ServiceUnavailable)
112117
)
@@ -1877,7 +1882,9 @@ def test_create_routine(self):
18771882
language="JAVASCRIPT",
18781883
type_="SCALAR_FUNCTION",
18791884
return_type=float64_type,
1880-
imported_libraries=["gs://cloud-samples-data/bigquery/udfs/max-value.js"],
1885+
imported_libraries=[
1886+
"gs://{}/bigquery/udfs/max-value.js".format(SAMPLES_BUCKET)
1887+
],
18811888
)
18821889
routine.arguments= [
18831890
bigquery.RoutineArgument(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp