Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions test_elasticsearch_serverless/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ def wipe_indices(client):


def wipe_xpack_templates(client):
# Delete component templates, need to retry because sometimes
# indices aren't cleaned up in time before we issue the delete.
templates = client.cluster.get_component_template()["component_templates"]
templates_to_delete = [
template["name"]
Expand All @@ -123,19 +121,17 @@ def wipe_transforms(client: Elasticsearch, timeout=30):


def is_xpack_template(name):
if name.startswith(".alerts-"):
return True
elif name.startswith(".kibana-data-quality-dashboard-"):
return True
elif name.startswith(".kibana-elastic-ai-assistant-component-template-"):
if name.startswith("."):
return True
elif name.startswith("behavioral_analytics-events"):
return True
elif name.startswith("elastic-connectors-"):
return True
elif name.startswith("entities_v1_"):
return True
if name in {
elif "fleet_server" in name:
return True
return name in {
"apm-10d@lifecycle",
"apm-180d@lifecycle",
"apm-390d@lifecycle",
Expand Down Expand Up @@ -180,9 +176,7 @@ def is_xpack_template(name):
"ecs-tsdb@mappings",
"logs-otel@mappings",
"otel@mappings",
}:
return True
return False
}


def es_api_key() -> str:
Expand Down
Loading