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 02165c5db2 Tiny fix for system test
example_datacatalog_search_catalog.py (#35701)
02165c5db2 is described below
commit 02165c5db2ea578b00c4957c91f385ab52eb3fe0
Author: max <[email protected]>
AuthorDate: Fri Nov 17 15:50:59 2023 +0100
Tiny fix for system test example_datacatalog_search_catalog.py (#35701)
---
.../google/datacatalog/example_datacatalog_search_catalog.py | 8 +++++---
1 file changed, 5 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 2beeebe54f..45b176ac5d 100644
---
a/tests/system/providers/google/datacatalog/example_datacatalog_search_catalog.py
+++
b/tests/system/providers/google/datacatalog/example_datacatalog_search_catalog.py
@@ -47,11 +47,11 @@ DAG_ID = "datacatalog_search_catalog"
BUCKET_NAME = f"bucket_{DAG_ID}_{ENV_ID}"
LOCATION = "us-central1"
-ENTRY_GROUP_ID = f"id_{DAG_ID}_{ENV_ID}"
+ENTRY_GROUP_ID = f"id_{DAG_ID}_{ENV_ID}".replace("-", "_")
ENTRY_GROUP_NAME = f"name {DAG_ID} {ENV_ID}"
ENTRY_ID = "python_files"
ENTRY_NAME = "Wizard"
-TEMPLATE_ID = f"template_id_search_{ENV_ID}"
+TEMPLATE_ID = f"template_id_search_{ENV_ID}".replace("-", "_")
TAG_TEMPLATE_DISPLAY_NAME = f"Data Catalog {DAG_ID} {ENV_ID}"
FIELD_NAME_1 = "first"
@@ -147,7 +147,9 @@ with DAG(
# Search
# [START howto_operator_gcp_datacatalog_search_catalog]
search_catalog = CloudDataCatalogSearchCatalogOperator(
- task_id="search_catalog", scope={"include_project_ids": [PROJECT_ID]},
query=f"projectid:{PROJECT_ID}"
+ task_id="search_catalog",
+ scope={"include_project_ids": [PROJECT_ID]},
+ query=f"name:{ENTRY_GROUP_NAME}",
)
# [END howto_operator_gcp_datacatalog_search_catalog]