From a750c867bb82834f79a6b373180431e40888c708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Wed, 7 May 2025 12:34:18 +0200 Subject: [PATCH 1/2] test: add explicit credentials and project to test Tests need to be able to run in environments without any default credentials. This requires the test to explictly set the credentials and the project that should be used. --- tests/unit/spanner_dbapi/test_connection.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/unit/spanner_dbapi/test_connection.py b/tests/unit/spanner_dbapi/test_connection.py index 03e3de3591..04434195db 100644 --- a/tests/unit/spanner_dbapi/test_connection.py +++ b/tests/unit/spanner_dbapi/test_connection.py @@ -830,7 +830,14 @@ def test_custom_database_role(self): from google.cloud.spanner_dbapi import connect role = "some_role" - connection = connect("test-instance", "test-database", database_role=role) + connection = connect( + "test-instance", + "test-database", + project="test-project", + database_role=role, + credentials=AnonymousCredentials(), + client_options={"api_endpoint": "none"}, + ) self.assertEqual(connection.database.database_role, role) def test_invalid_custom_client_connection(self): From a4275b838321f01cd4259cb8bb3408438cc3771d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 7 May 2025 10:37:27 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .kokoro/presubmit/presubmit.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/presubmit.cfg b/.kokoro/presubmit/presubmit.cfg index 14db9152d9..b158096f0a 100644 --- a/.kokoro/presubmit/presubmit.cfg +++ b/.kokoro/presubmit/presubmit.cfg @@ -1,7 +1,7 @@ # Format: //devtools/kokoro/config/proto/build.proto -# Only run a subset of all nox sessions +# Disable system tests. env_vars: { - key: "NOX_SESSION" - value: "unit-3.8 unit-3.12 cover docs docfx" + key: "RUN_SYSTEM_TESTS" + value: "false" }