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):
95
95
96
96
97
97
def 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.
100
98
templates = client .cluster .get_component_template ()["component_templates" ]
101
99
templates_to_delete = [
102
100
template ["name" ]
@@ -123,19 +121,17 @@ def wipe_transforms(client: Elasticsearch, timeout=30):
123
121
124
122
125
123
def 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 ("." ):
131
125
return True
132
126
elif name .startswith ("behavioral_analytics-events" ):
133
127
return True
134
128
elif name .startswith ("elastic-connectors-" ):
135
129
return True
136
130
elif name .startswith ("entities_v1_" ):
137
131
return True
138
- if name in {
132
+ elif "fleet_server" in name :
133
+ return True
134
+ return name in {
139
135
"apm-10d@lifecycle" ,
140
136
"apm-180d@lifecycle" ,
141
137
"apm-390d@lifecycle" ,
@@ -180,9 +176,7 @@ def is_xpack_template(name):
180
176
"ecs-tsdb@mappings" ,
181
177
"logs-otel@mappings" ,
182
178
"otel@mappings" ,
183
- }:
184
- return True
185
- return False
179
+ }
186
180
187
181
188
182
def es_api_key () -> str :
You can’t perform that action at this time.
0 commit comments