Skip to content

Commit

Permalink
Skip Prometheus monitoring collection test when running on cloud (#13…
Browse files Browse the repository at this point in the history
…8003) (#138633)

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 837343a)

Co-authored-by: Carlos Crespo <[email protected]>
  • Loading branch information
kibanamachine and crespocarlos authored Aug 11, 2022
1 parent 2224a43 commit bd2c1ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd2c1ee

Please sign in to comment.