File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
test_elasticsearch_serverless Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,6 @@ def wipe_indices(client):
9595
9696
9797def wipe_xpack_templates (client ):
98- # Delete component templates, need to retry because sometimes
99- # indices aren't cleaned up in time before we issue the delete.
10098 templates = client .cluster .get_component_template ()["component_templates" ]
10199 templates_to_delete = [
102100 template ["name" ]
@@ -123,19 +121,17 @@ def wipe_transforms(client: Elasticsearch, timeout=30):
123121
124122
125123def is_xpack_template (name ):
126- if name .startswith (".alerts-" ):
127- return True
128- elif name .startswith (".kibana-data-quality-dashboard-" ):
129- return True
130- elif name .startswith (".kibana-elastic-ai-assistant-component-template-" ):
124+ if name .startswith ("." ):
131125 return True
132126 elif name .startswith ("behavioral_analytics-events" ):
133127 return True
134128 elif name .startswith ("elastic-connectors-" ):
135129 return True
136130 elif name .startswith ("entities_v1_" ):
137131 return True
138- if name in {
132+ elif "fleet_server" in name :
133+ return True
134+ return name in {
139135 "apm-10d@lifecycle" ,
140136 "apm-180d@lifecycle" ,
141137 "apm-390d@lifecycle" ,
@@ -180,9 +176,7 @@ def is_xpack_template(name):
180176 "ecs-tsdb@mappings" ,
181177 "logs-otel@mappings" ,
182178 "otel@mappings" ,
183- }:
184- return True
185- return False
179+ }
186180
187181
188182def es_api_key () -> str :
You can’t perform that action at this time.
0 commit comments