Skip to content

Commit

Permalink
Removing mappings and renabling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Jun 10, 2020
1 parent afd44ea commit 6a58ee9
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6,096 deletions.
4 changes: 2 additions & 2 deletions x-pack/test/api_integration/apis/endpoint/alerts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function ({ getService }: FtrProviderContext) {
const nextPrevPrefixOrder = 'order=desc';
const nextPrevPrefixPageSize = 'page_size=10';
const nextPrevPrefix = `${nextPrevPrefixQuery}&${nextPrevPrefixDateRange}&${nextPrevPrefixSort}&${nextPrevPrefixOrder}&${nextPrevPrefixPageSize}`;
const alertIndex = 'events-endpoint-1';
const alertIndex = '.ds-events-endpoint-1-000001';

let nullableEventId = '';

Expand All @@ -77,7 +77,7 @@ export default function ({ getService }: FtrProviderContext) {
await esArchiver.load('endpoint/alerts/api_feature');
await esArchiver.load('endpoint/alerts/host_api_feature');
const res = await es.search({
index: alertIndex,
index: 'events-endpoint-*',
body: ES_QUERY_MISSING,
});
nullableEventId = res.hits.hits[0]._source.event.id;
Expand Down
10 changes: 9 additions & 1 deletion x-pack/test/api_integration/apis/endpoint/data_stream_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ import { Client } from '@elastic/elasticsearch';

export async function deleteDataStream(getService: (serviceName: 'es') => Client, index: string) {
const client = getService('es');
await client.transport.request({ method: 'DELETE', path: `_data_stream/${index}` });
await client.transport.request(
{
method: 'DELETE',
path: `_data_stream/${index}`,
},
{
ignore: [404],
}
);
}

export async function deleteMetadataStream(getService: (serviceName: 'es') => Client) {
Expand Down
Loading

0 comments on commit 6a58ee9

Please sign in to comment.