Skip to content

Commit

Permalink
Fix CloudSQL system tests (apache#34310)
Browse files Browse the repository at this point in the history
  • Loading branch information
moiseenkov authored Sep 12, 2023
1 parent a81c7b7 commit dc5f8b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@
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 ######################### #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
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"
Expand Down

0 comments on commit dc5f8b6

Please sign in to comment.