Skip to content

Commit f5af069

Browse files
committed
Ignore more serverless index templates
1 parent 4863795 commit f5af069

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test_elasticsearch_serverless/utils.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ def wipe_indices(client):
9595

9696

9797
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.
10098
templates = client.cluster.get_component_template()["component_templates"]
10199
templates_to_delete = [
102100
template["name"]
@@ -135,7 +133,7 @@ def is_xpack_template(name):
135133
return True
136134
elif name.startswith("entities_v1_"):
137135
return True
138-
if name in {
136+
return name in {
139137
"apm-10d@lifecycle",
140138
"apm-180d@lifecycle",
141139
"apm-390d@lifecycle",
@@ -153,6 +151,7 @@ def is_xpack_template(name):
153151
"logs@mappings",
154152
"logs-settings",
155153
"logs@settings",
154+
"logs-fleet_server.output_health",
156155
"metrics-apm@mappings",
157156
"metrics-apm.service_destination@mappings",
158157
"metrics-apm.service_summary@mappings",
@@ -165,6 +164,8 @@ def is_xpack_template(name):
165164
"metrics@settings",
166165
"metrics-tsdb-settings",
167166
"metrics@tsdb-settings",
167+
"metrics-fleet_server.agent_status",
168+
"metrics-fleet_server.agent_versions",
168169
"synthetics-mappings",
169170
"synthetics@mappings",
170171
"synthetics-settings",
@@ -180,9 +181,7 @@ def is_xpack_template(name):
180181
"ecs-tsdb@mappings",
181182
"logs-otel@mappings",
182183
"otel@mappings",
183-
}:
184-
return True
185-
return False
184+
}
186185

187186

188187
def es_api_key() -> str:

0 commit comments

Comments
 (0)