Skip to content

Commit

Permalink
Update EPM file tests to use /packages/{pkgkey}
Browse files Browse the repository at this point in the history
These should have failed when the routes were changed. Will go back and see what happened.
  • Loading branch information
John Schulz committed Mar 12, 2020
1 parent fe7cf47 commit 4a9af8d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions x-pack/test/epm_api_integration/apis/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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');
});
Expand All @@ -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')
Expand All @@ -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);
Expand All @@ -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')
Expand All @@ -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')
Expand All @@ -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);
Expand All @@ -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')
Expand Down

0 comments on commit 4a9af8d

Please sign in to comment.