From 837343a6f5b939fcede11c045d03d6aca805f0bd Mon Sep 17 00:00:00 2001 From: Carlos Crespo Date: Thu, 11 Aug 2022 17:23:28 +0200 Subject: [PATCH] Skip Prometheus monitoring collection test when running on cloud (#138003) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../test/api_integration/apis/monitoring_collection/index.ts | 2 +- .../api_integration/apis/monitoring_collection/prometheus.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/test/api_integration/apis/monitoring_collection/index.ts b/x-pack/test/api_integration/apis/monitoring_collection/index.ts index e89bd44963c03..092cd93a480a7 100644 --- a/x-pack/test/api_integration/apis/monitoring_collection/index.ts +++ b/x-pack/test/api_integration/apis/monitoring_collection/index.ts @@ -8,7 +8,7 @@ import { FtrProviderContext } from '../../ftr_provider_context'; export default function ({ loadTestFile }: FtrProviderContext) { - describe('Monitoring Collection', function taskManagerSuite() { + describe('Monitoring Collection', () => { loadTestFile(require.resolve('./prometheus')); }); } diff --git a/x-pack/test/api_integration/apis/monitoring_collection/prometheus.ts b/x-pack/test/api_integration/apis/monitoring_collection/prometheus.ts index 0ac13dda92cb5..7820ab80b5847 100644 --- a/x-pack/test/api_integration/apis/monitoring_collection/prometheus.ts +++ b/x-pack/test/api_integration/apis/monitoring_collection/prometheus.ts @@ -11,7 +11,9 @@ import { FtrProviderContext } from '../../ftr_provider_context'; export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); - describe('Prometheus endpoint', () => { + describe('Prometheus endpoint', function () { + this.tags(['skipCloud']); + it('returns prometheus scraped metrics', async () => { await supertest.post('/api/generate_otel_metrics').set('kbn-xsrf', 'foo').expect(200); const response = await supertest.get('/api/monitoring_collection/v1/prometheus').expect(200);