mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Telemetry][API Integration tests] Ensure .kibana index exists (#76662)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
0f249d7383
commit
ad62fa0a6e
2 changed files with 9 additions and 0 deletions
|
@ -55,7 +55,12 @@ const assertStatsAndMetrics = (body) => {
|
|||
|
||||
export default function ({ getService }) {
|
||||
const supertest = getService('supertest');
|
||||
const esArchiver = getService('esArchiver');
|
||||
|
||||
describe('kibana stats api', () => {
|
||||
before('make sure there are some saved objects', () => esArchiver.load('saved_objects/basic'));
|
||||
after('cleanup saved objects changes', () => esArchiver.unload('saved_objects/basic'));
|
||||
|
||||
describe('basic', () => {
|
||||
it('should return the stats without cluster_uuid with no query string params', () => {
|
||||
return supertest
|
||||
|
|
|
@ -38,8 +38,12 @@ function flatKeys(source) {
|
|||
export default function ({ getService }) {
|
||||
const supertest = getService('supertest');
|
||||
const es = getService('es');
|
||||
const esArchiver = getService('esArchiver');
|
||||
|
||||
describe('/api/telemetry/v2/clusters/_stats', () => {
|
||||
before('make sure there are some saved objects', () => esArchiver.load('saved_objects/basic'));
|
||||
after('cleanup saved objects changes', () => esArchiver.unload('saved_objects/basic'));
|
||||
|
||||
before('create some telemetry-data tracked indices', async () => {
|
||||
return es.indices.create({ index: 'filebeat-telemetry_tests_logs' });
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue