From 9bcb89ad27f049b20b924b27c06abb101ca2cd7c Mon Sep 17 00:00:00 2001 From: Maciej Strzelczyk Date: Thu, 22 Jul 2021 13:42:51 +0200 Subject: [PATCH] fix: Kokoro uses separate project for concurent tests. --- samples/snippets/noxfile_config.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 samples/snippets/noxfile_config.py diff --git a/samples/snippets/noxfile_config.py b/samples/snippets/noxfile_config.py new file mode 100644 index 000000000..16c4c694e --- /dev/null +++ b/samples/snippets/noxfile_config.py @@ -0,0 +1,18 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +TEST_CONFIG_OVERRIDE = { + # Tests in test_sample_default_values.py require separate projects to not interfere with each other. + 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', +}