diff --git a/x-pack/plugins/ingest_manager/server/integration_tests/router.test.ts b/x-pack/plugins/ingest_manager/server/integration_tests/router.test.ts index 3a13359cdf782fa..2d9850dbebf984d 100644 --- a/x-pack/plugins/ingest_manager/server/integration_tests/router.test.ts +++ b/x-pack/plugins/ingest_manager/server/integration_tests/router.test.ts @@ -25,6 +25,12 @@ function createXPackRoot(config: {} = {}) { describe('ingestManager', () => { describe.skip('default. manager, EPM, and Fleet all disabled', () => { let root: ReturnType; + + /** + * + * commented out due to hooks being called regardless of skip + * https://github.com/facebook/jest/issues/8379 + beforeAll(async () => { root = createXPackRoot(); await root.setup(); @@ -33,6 +39,8 @@ describe('ingestManager', () => { afterAll(async () => await root.shutdown()); + */ + it('does not have agent config api', async () => { await kbnTestServer.request.get(root, '/api/ingest_manager/agent_configs').expect(404); }); @@ -52,6 +60,12 @@ describe('ingestManager', () => { describe.skip('manager only (no EPM, no Fleet)', () => { let root: ReturnType; + + /** + * + * commented out due to hooks being called regardless of skip + * https://github.com/facebook/jest/issues/8379 + beforeAll(async () => { const ingestManagerConfig = { enabled: true, @@ -65,6 +79,8 @@ describe('ingestManager', () => { afterAll(async () => await root.shutdown()); + */ + it('has agent config api', async () => { await kbnTestServer.request.get(root, '/api/ingest_manager/agent_configs').expect(200); }); @@ -89,6 +105,12 @@ describe('ingestManager', () => { describe.skip('manager and EPM; no Fleet', () => { let root: ReturnType; + + /** + * + * commented out due to hooks being called regardless of skip + * https://github.com/facebook/jest/issues/8379 + beforeAll(async () => { const ingestManagerConfig = { enabled: true, @@ -103,6 +125,8 @@ describe('ingestManager', () => { afterAll(async () => await root.shutdown()); + */ + it('has agent config api', async () => { await kbnTestServer.request.get(root, '/api/ingest_manager/agent_configs').expect(200); });