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 bd2ccf505f Fix GCP Memorystore system tests (#28053)
bd2ccf505f is described below

commit bd2ccf505f1b70089f7a0748bb643fe1e4d5f6f4
Author: BartÅ‚omiej Hirsz <[email protected]>
AuthorDate: Mon Dec 5 03:02:17 2022 +0100

    Fix GCP Memorystore system tests (#28053)
    
    The instance names should not start with numbers or special characters. 
Moved ENV_ID to end of the name
    
    Change-Id: I9a35dab9a2fbca18b872478a94bc963da767b94e
    
    Co-authored-by: Bartlomiej Hirsz <[email protected]>
---
 .../cloud/cloud_memorystore/example_cloud_memorystore_memcached.py  | 2 +-
 .../cloud/cloud_memorystore/example_cloud_memorystore_redis.py      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_memcached.py
 
b/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_memcached.py
index df268320cc..1ee65ede8f 100644
--- 
a/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_memcached.py
+++ 
b/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_memcached.py
@@ -42,7 +42,7 @@ PROJECT_ID = os.environ.get("SYSTEM_TESTS_GCP_PROJECT", 
"google_project_id")
 
 DAG_ID = "cloud_memorystore_memcached"
 
-MEMORYSTORE_MEMCACHED_INSTANCE_NAME = f"{ENV_ID}-memcached-1"
+MEMORYSTORE_MEMCACHED_INSTANCE_NAME = f"memcached-{ENV_ID}-1"
 LOCATION = "europe-north1"
 
 # [START howto_operator_memcached_instance]
diff --git 
a/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_redis.py
 
b/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_redis.py
index 883e4722a5..795063679a 100644
--- 
a/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_redis.py
+++ 
b/tests/system/providers/google/cloud/cloud_memorystore/example_cloud_memorystore_redis.py
@@ -54,9 +54,9 @@ DAG_ID = "cloud_memorystore_redis"
 
 BUCKET_NAME = f"bucket_{DAG_ID}_{ENV_ID}"
 LOCATION = "europe-north1"
-MEMORYSTORE_REDIS_INSTANCE_NAME = f"{ENV_ID}-redis-1"
-MEMORYSTORE_REDIS_INSTANCE_NAME_2 = f"{ENV_ID}-redis-2"
-MEMORYSTORE_REDIS_INSTANCE_NAME_3 = f"{ENV_ID}-redis-3"
+MEMORYSTORE_REDIS_INSTANCE_NAME = f"redis-{ENV_ID.lower()}-1"
+MEMORYSTORE_REDIS_INSTANCE_NAME_2 = f"redis-{ENV_ID.lower()}-2"
+MEMORYSTORE_REDIS_INSTANCE_NAME_3 = f"redis-{ENV_ID.lower()}-3"
 
 EXPORT_GCS_URL = f"gs://{BUCKET_NAME}/my-export.rdb"
 

Reply via email to