Skip to content

Commit

Permalink
Use wildcard to prevent version mismatch in index target
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Apr 9, 2021
1 parent d3848c9 commit 11679ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/test/apm_api_integration/tests/alerts/rule_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>) => {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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: {},
Expand Down

0 comments on commit 11679ef

Please sign in to comment.