Skip to content

Commit

Permalink
comment tests back in for APM and update data to ECS .monitoring-beat…
Browse files Browse the repository at this point in the history
…s-8-mb
  • Loading branch information
neptunian committed Mar 7, 2022
1 parent fc8826b commit 8760614
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 22,935 deletions.
6 changes: 3 additions & 3 deletions x-pack/test/api_integration/apis/monitoring/apm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
export default function ({ loadTestFile }) {
describe('APM', () => {
loadTestFile(require.resolve('./overview'));
// loadTestFile(require.resolve('./overview_mb'));
loadTestFile(require.resolve('./overview_mb'));
loadTestFile(require.resolve('./instances'));
// loadTestFile(require.resolve('./instances_mb'));
loadTestFile(require.resolve('./instances_mb'));
loadTestFile(require.resolve('./instance'));
// loadTestFile(require.resolve('./instance_mb'));
loadTestFile(require.resolve('./instance_mb'));
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,25 @@

import expect from '@kbn/expect';
import apmInstanceFixture from './fixtures/instance';
import { getLifecycleMethods } from '../data_stream';

export default function ({ getService }) {
const supertest = getService('supertest');
const esArchiver = getService('esArchiver');

describe('instance detail mb', () => {
const { setup, tearDown } = getLifecycleMethods(getService);
const archive = 'x-pack/test/functional/es_archives/monitoring/apm_mb';
const timeRange = {
min: '2018-08-31T12:59:49.104Z',
max: '2018-08-31T13:59:49.104Z',
};

before('load archive', () => {
return esArchiver.load(archive);
return setup(archive);
});

after('unload archive', () => {
return esArchiver.unload(archive);
return tearDown();
});

it('should get apm instance data', async () => {
Expand Down
11 changes: 6 additions & 5 deletions x-pack/test/api_integration/apis/monitoring/apm/instances_mb.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@
*/

import expect from '@kbn/expect';
import { getLifecycleMethods } from '../data_stream';

export default function ({ getService }) {
const supertest = getService('supertest');
const esArchiver = getService('esArchiver');

describe('list mb', () => {
const { setup, tearDown } = getLifecycleMethods(getService);
const archive = 'x-pack/test/functional/es_archives/monitoring/apm_mb';
const timeRange = {
min: '2018-08-31T12:59:49.104Z',
max: '2018-08-31T13:59:49.104Z',
};

before('load clusters archive', () => {
return esArchiver.load(archive);
before('load archive', () => {
return setup(archive);
});

after('unload clusters archive', () => {
return esArchiver.unload(archive);
after('unload archive', () => {
return tearDown();
});

it('should load multiple clusters', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@

import expect from '@kbn/expect';
import apmClusterFixture from './fixtures/cluster';
import { getLifecycleMethods } from '../data_stream';

export default function ({ getService }) {
const supertest = getService('supertest');
const esArchiver = getService('esArchiver');

describe('overview mb', function () {
// Archive contains non-cgroup data which collides with the in-cgroup APM server present by default on cloud deployments
this.tags(['skipCloud']);
const { setup, tearDown } = getLifecycleMethods(getService);

const archive = 'x-pack/test/functional/es_archives/monitoring/apm_mb';
const timeRange = {
Expand All @@ -23,11 +24,11 @@ export default function ({ getService }) {
};

before('load archive', () => {
return esArchiver.load(archive);
return setup(archive);
});

after('unload archive', () => {
return esArchiver.unload(archive);
return tearDown();
});

it('should summarize apm cluster with metrics', async () => {
Expand Down
Binary file modified x-pack/test/functional/es_archives/monitoring/apm_mb/data.json.gz
Binary file not shown.
Loading

0 comments on commit 8760614

Please sign in to comment.