This is an automated email from the ASF dual-hosted git repository.

potiuk 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 5c739ccfebb Fix cloud_sql and example_composer system tests (#44560)
5c739ccfebb is described below

commit 5c739ccfebbf1ed061cad0e30b7910815cf17bfd
Author: VladaZakharova <[email protected]>
AuthorDate: Tue Dec 3 00:55:47 2024 +0100

    Fix cloud_sql and example_composer system tests (#44560)
    
    Co-authored-by: Ulada Zakharava <[email protected]>
---
 .../tests/system/google/cloud/cloud_sql/example_cloud_sql_query_iam.py | 3 ++-
 providers/tests/system/google/cloud/composer/example_cloud_composer.py | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/providers/tests/system/google/cloud/cloud_sql/example_cloud_sql_query_iam.py 
b/providers/tests/system/google/cloud/cloud_sql/example_cloud_sql_query_iam.py
index 7e04c8d493f..c699deef7cc 100644
--- 
a/providers/tests/system/google/cloud/cloud_sql/example_cloud_sql_query_iam.py
+++ 
b/providers/tests/system/google/cloud/cloud_sql/example_cloud_sql_query_iam.py
@@ -65,6 +65,7 @@ CLOUD_SQL_INSTANCE_CREATE_BODY_TEMPLATE: dict[str, Any] = {
         "dataDiskSizeGb": 30,
         "pricingPlan": "PER_USE",
         "ipConfiguration": {},
+        "databaseFlags": [{"name": "cloudsql_iam_authentication", "value": 
"on"}],
     },
     # For using a different database version please check the link below.
     # 
https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion
@@ -119,7 +120,7 @@ def cloud_sql_instance_create_body(database_provider: 
dict[str, Any]) -> dict[st
 
 CLOUD_SQL_DATABASE_NAME = "test_db"
 CLOUD_SQL_USER = "test_user"
-CLOUD_IAM_SA = os.environ.get("CLOUD_IAM_SA", "test_iam_sa")
+CLOUD_IAM_SA = os.environ.get("SYSTEM_TESTS_CLOUDSQL_SA", "test_iam_sa")
 CLOUD_SQL_IP_ADDRESS = "127.0.0.1"
 CLOUD_SQL_PUBLIC_PORT = 5432
 
diff --git 
a/providers/tests/system/google/cloud/composer/example_cloud_composer.py 
b/providers/tests/system/google/cloud/composer/example_cloud_composer.py
index f04a2c8596a..8f069c78ac7 100644
--- a/providers/tests/system/google/cloud/composer/example_cloud_composer.py
+++ b/providers/tests/system/google/cloud/composer/example_cloud_composer.py
@@ -47,7 +47,7 @@ ENVIRONMENT_ID_ASYNC = 
f"test-deferrable-{DAG_ID}-{ENV_ID}".replace("_", "-")
 
 ENVIRONMENT = {
     "config": {
-        "software_config": {"image_version": "composer-2.5.0-airflow-2.5.3"},
+        "software_config": {"image_version": "composer-2-airflow-2"},
     }
 }
 # [END howto_operator_composer_simple_environment]

Reply via email to