You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/12/05 02:25:13 UTC

[airflow] branch main updated: Fix GCP Datacatalog template IDs to be unique (#28062)

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 dcd5c26fd5 Fix GCP Datacatalog template IDs to be unique (#28062)
dcd5c26fd5 is described below

commit dcd5c26fd5afb0b885b4c49bac15661fddb8595c
Author: Bartłomiej Hirsz <ba...@gmail.com>
AuthorDate: Mon Dec 5 03:25:06 2022 +0100

    Fix GCP Datacatalog template IDs to be unique (#28062)
    
    Change-Id: I21372cd48bbd6b07b3ab32a036b047676007eed0
    
    Co-authored-by: Bartlomiej Hirsz <ba...@google.com>
---
 .../providers/google/datacatalog/example_datacatalog_search_catalog.py  | 2 +-
 .../providers/google/datacatalog/example_datacatalog_tag_templates.py   | 2 +-
 tests/system/providers/google/datacatalog/example_datacatalog_tags.py   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/system/providers/google/datacatalog/example_datacatalog_search_catalog.py b/tests/system/providers/google/datacatalog/example_datacatalog_search_catalog.py
index 75a8a2a162..762511e565 100644
--- a/tests/system/providers/google/datacatalog/example_datacatalog_search_catalog.py
+++ b/tests/system/providers/google/datacatalog/example_datacatalog_search_catalog.py
@@ -51,7 +51,7 @@ ENTRY_GROUP_ID = f"id_{DAG_ID}_{ENV_ID}"
 ENTRY_GROUP_NAME = f"name {DAG_ID} {ENV_ID}"
 ENTRY_ID = "python_files"
 ENTRY_NAME = "Wizard"
-TEMPLATE_ID = "template_id"
+TEMPLATE_ID = f"template_id_search_{ENV_ID}"
 TAG_TEMPLATE_DISPLAY_NAME = f"Data Catalog {DAG_ID} {ENV_ID}"
 FIELD_NAME_1 = "first"
 
diff --git a/tests/system/providers/google/datacatalog/example_datacatalog_tag_templates.py b/tests/system/providers/google/datacatalog/example_datacatalog_tag_templates.py
index 097a62554e..7e8e336005 100644
--- a/tests/system/providers/google/datacatalog/example_datacatalog_tag_templates.py
+++ b/tests/system/providers/google/datacatalog/example_datacatalog_tag_templates.py
@@ -43,7 +43,7 @@ PROJECT_ID = os.environ.get("SYSTEM_TESTS_GCP_PROJECT")
 DAG_ID = "datacatalog_tag_templates"
 
 LOCATION = "us-central1"
-TEMPLATE_ID = "template_id"
+TEMPLATE_ID = f"template_id_templ_{ENV_ID}"
 TAG_TEMPLATE_DISPLAY_NAME = f"Data Catalog {DAG_ID} {ENV_ID}"
 FIELD_NAME_1 = "first"
 FIELD_NAME_2 = "second"
diff --git a/tests/system/providers/google/datacatalog/example_datacatalog_tags.py b/tests/system/providers/google/datacatalog/example_datacatalog_tags.py
index f18f2c4406..dd8e2e1896 100644
--- a/tests/system/providers/google/datacatalog/example_datacatalog_tags.py
+++ b/tests/system/providers/google/datacatalog/example_datacatalog_tags.py
@@ -52,7 +52,7 @@ ENTRY_GROUP_ID = f"id_{DAG_ID}_{ENV_ID}"
 ENTRY_GROUP_NAME = f"name {DAG_ID} {ENV_ID}"
 ENTRY_ID = "python_files"
 ENTRY_NAME = "Wizard"
-TEMPLATE_ID = "template_id"
+TEMPLATE_ID = f"template_id_tags_{ENV_ID}"
 TAG_TEMPLATE_DISPLAY_NAME = f"Data Catalog {DAG_ID} {ENV_ID}"
 FIELD_NAME_1 = "first"