From 11679efca4869b03029e751bc4f403c1fa4c0e85 Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Fri, 9 Apr 2021 08:19:57 +0200 Subject: [PATCH] Use wildcard to prevent version mismatch in index target --- .../test/apm_api_integration/tests/alerts/rule_registry.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x-pack/test/apm_api_integration/tests/alerts/rule_registry.ts b/x-pack/test/apm_api_integration/tests/alerts/rule_registry.ts index ff4d36d9af72f..97026d126d2a1 100644 --- a/x-pack/test/apm_api_integration/tests/alerts/rule_registry.ts +++ b/x-pack/test/apm_api_integration/tests/alerts/rule_registry.ts @@ -34,7 +34,6 @@ export default function ApiTest({ getService }: FtrProviderContext) { const INDEXING_DELAY = 5000; const ALERTS_INDEX_TARGET = '.kibana-alerts-*-apm*'; - const ALERTS_INDEX_NAME = '.kibana-alerts-observability-apm-8.0.0-000001'; const APM_TRANSACTION_INDEX_NAME = 'apm-8.0.0-transaction'; const createTransactionEvent = (override: Record) => { @@ -94,7 +93,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { setTimeout(resolve, BULK_INDEX_DELAY); }); await es.indices.refresh({ - index: ALERTS_INDEX_NAME, + index: ALERTS_INDEX_TARGET, }); return nextAlert; @@ -250,7 +249,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { } await es.deleteByQuery({ - index: ALERTS_INDEX_NAME, + index: ALERTS_INDEX_TARGET, body: { query: { match_all: {},