-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move tests for placeholder indices to setup (#75096)
Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
cf93604
commit 48deb7b
Showing
3 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
import { FtrProviderContext } from '../../api_integration/ftr_provider_context'; | ||
|
||
export default function (providerContext: FtrProviderContext) { | ||
const { getService } = providerContext; | ||
const supertest = getService('supertest'); | ||
const es = getService('es'); | ||
describe('ingest manager setup', async () => { | ||
before(async () => { | ||
await supertest.post(`/api/ingest_manager/setup`).set('kbn-xsrf', 'xxx').send(); | ||
}); | ||
|
||
it('should have installed placeholder indices', async function () { | ||
const resLogsIndexPatternPlaceholder = await es.transport.request({ | ||
method: 'GET', | ||
path: `/logs-index_pattern_placeholder`, | ||
}); | ||
expect(resLogsIndexPatternPlaceholder.statusCode).equal(200); | ||
const resMetricsIndexPatternPlaceholder = await es.transport.request({ | ||
method: 'GET', | ||
path: `/metrics-index_pattern_placeholder`, | ||
}); | ||
expect(resMetricsIndexPatternPlaceholder.statusCode).equal(200); | ||
}); | ||
}); | ||
} |