Skip to content

Ignore more serverless index templates #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 29, 2024
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