You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by el...@apache.org on 2023/09/12 15:48:31 UTC
[airflow] branch main updated: Fix CloudSQL system tests (#34310)
This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new dc5f8b6db7 Fix CloudSQL system tests (#34310)
dc5f8b6db7 is described below
commit dc5f8b6db76d92b0df1ffb519efc4515e45046c0
Author: max <42...@users.noreply.github.com>
AuthorDate: Tue Sep 12 17:48:24 2023 +0200
Fix CloudSQL system tests (#34310)
---
tests/system/providers/google/cloud/cloud_sql/example_cloud_sql.py | 4 +++-
.../google/cloud/cloud_sql/example_cloud_sql_query_postgres.py | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql.py b/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql.py
index 408d11a334..f5ad5066fc 100644
--- a/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql.py
+++ b/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql.py
@@ -153,7 +153,9 @@ with models.DAG(
catchup=False,
tags=["example", "cloud_sql"],
) as dag:
- create_bucket = GCSCreateBucketOperator(task_id="create_bucket", bucket_name=BUCKET_NAME)
+ create_bucket = GCSCreateBucketOperator(
+ task_id="create_bucket", bucket_name=BUCKET_NAME, resource={"predefined_acl": "public_read_write"}
+ )
# ############################################## #
# ### INSTANCES SET UP ######################### #
diff --git a/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql_query_postgres.py b/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql_query_postgres.py
index 8acb62186e..1de7387f6f 100644
--- a/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql_query_postgres.py
+++ b/tests/system/providers/google/cloud/cloud_sql/example_cloud_sql_query_postgres.py
@@ -49,7 +49,7 @@ PROJECT_ID = os.environ.get("SYSTEM_TESTS_GCP_PROJECT")
DAG_ID = "cloudsql-query-pg"
REGION = "us-central1"
-CLOUD_SQL_INSTANCE_NAME = f"{ENV_ID}-{DAG_ID}".replace("_", "-")
+CLOUD_SQL_INSTANCE_NAME = f"instance-{ENV_ID}-{DAG_ID}".replace("_", "-")
CLOUD_SQL_DATABASE_NAME = "test_db"
CLOUD_SQL_USER = "test_user"
CLOUD_SQL_PASSWORD = "JoxHlwrPzwch0gz9"