Skip to content

Commit

Permalink
Add test to make sure we don't break this again :D
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Jul 9, 2020
1 parent bc929e8 commit f7e6601
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions x-pack/test/ingest_manager_api_integration/apis/epm/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,21 @@ export default function ({ getService }: FtrProviderContext) {
warnAndSkipTest(this, log);
}
});

it('lists all limited packages from the registry', async function () {
if (server.enabled) {
const fetchLimitedPackageList = async () => {
const response = await supertest
.get('/api/ingest_manager/epm/packages/limited')
.set('kbn-xsrf', 'xxx')
.expect(200);
return response.body;
};
const listResponse = await fetchLimitedPackageList();
expect(listResponse.response).to.eql(['endpoint']);
} else {
warnAndSkipTest(this, log);
}
});
});
}

0 comments on commit f7e6601

Please sign in to comment.