From 4a9af8d20de00bdc1b13a8a7516418b3d5aeb053 Mon Sep 17 00:00:00 2001 From: John Schulz Date: Thu, 12 Mar 2020 15:13:38 -0400 Subject: [PATCH] Update EPM file tests to use /packages/{pkgkey} These should have failed when the routes were changed. Will go back and see what happened. --- x-pack/test/epm_api_integration/apis/file.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/x-pack/test/epm_api_integration/apis/file.ts b/x-pack/test/epm_api_integration/apis/file.ts index 307610607bbf4..2989263af40a7 100644 --- a/x-pack/test/epm_api_integration/apis/file.ts +++ b/x-pack/test/epm_api_integration/apis/file.ts @@ -28,7 +28,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest .get( - '/api/ingest_manager/epm/package/auditd-2.0.4/img/screenshots/auditbeat-file-integrity-dashboard.png' + '/api/ingest_manager/epm/packages/auditd-2.0.4/img/screenshots/auditbeat-file-integrity-dashboard.png' ) .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'image/png') @@ -46,7 +46,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest - .get('/api/ingest_manager/epm/package/auditd-2.0.4/img/icon.svg') + .get('/api/ingest_manager/epm/packages/auditd-2.0.4/img/icon.svg') .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'image/svg'); }); @@ -60,7 +60,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest .get( - '/api/ingest_manager/epm/package/auditd-2.0.4/auditbeat/rules/sample-rules-linux-32bit.conf' + '/api/ingest_manager/epm/packages/auditd-2.0.4/auditbeat/rules/sample-rules-linux-32bit.conf' ) .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'application/json; charset=utf-8') @@ -78,7 +78,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest - .get('/api/ingest_manager/epm/package/auditd-2.0.4/auditbeat/config/config.yml') + .get('/api/ingest_manager/epm/packages/auditd-2.0.4/auditbeat/config/config.yml') .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'text/yaml; charset=UTF-8') .expect(200); @@ -94,7 +94,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest .get( - '/api/ingest_manager/epm/package/auditd-2.0.4/kibana/visualization/b21e0c70-c252-11e7-8692-232bd1143e8a-ecs.json' + '/api/ingest_manager/epm/packages/auditd-2.0.4/kibana/visualization/b21e0c70-c252-11e7-8692-232bd1143e8a-ecs.json' ) .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'application/json; charset=utf-8') @@ -111,7 +111,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest .get( - '/api/ingest_manager/epm/package/auditd-2.0.4/kibana/dashboard/7de391b0-c1ca-11e7-8995-936807a28b16-ecs.json' + '/api/ingest_manager/epm/packages/auditd-2.0.4/kibana/dashboard/7de391b0-c1ca-11e7-8995-936807a28b16-ecs.json' ) .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'application/json; charset=utf-8') @@ -126,7 +126,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest - .get('/api/ingest_manager/epm/package/auditd-2.0.4/kibana/index-pattern/auditbeat-*.json') + .get('/api/ingest_manager/epm/packages/auditd-2.0.4/kibana/index-pattern/auditbeat-*.json') .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'application/json; charset=utf-8') .expect(200); @@ -141,7 +141,7 @@ export default function({ getService }: FtrProviderContext) { const supertest = getService('supertest'); await supertest .get( - '/api/ingest_manager/epm/package/auditd-2.0.4/kibana/search/0f10c430-c1c3-11e7-8995-936807a28b16-ecs.json' + '/api/ingest_manager/epm/packages/auditd-2.0.4/kibana/search/0f10c430-c1c3-11e7-8995-936807a28b16-ecs.json' ) .set('kbn-xsrf', 'xxx') .expect('Content-Type', 'application/json; charset=utf-8')