mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] Make fetch installed packages test assertions more granular (#164567)
## Summary For investigating https://github.com/elastic/kibana/issues/163203 I want to double check which package is not being returned.
This commit is contained in:
parent
58b4104691
commit
40ba6b619d
1 changed files with 5 additions and 1 deletions
|
@ -123,7 +123,11 @@ export default function (providerContext: FtrProviderContext) {
|
|||
it('Allows the fetching of installed packages', async () => {
|
||||
const res = await supertest.get(`/api/fleet/epm/packages/installed`).expect(200);
|
||||
const packages = res.body.items;
|
||||
expect(packages.length).to.be(3);
|
||||
const packageNames = packages.map((pkg: any) => pkg.name);
|
||||
expect(packageNames).to.contain('apache');
|
||||
expect(packageNames).to.contain('endpoint');
|
||||
expect(packageNames).to.contain('experimental');
|
||||
expect(packageNames.length).to.be(3);
|
||||
});
|
||||
it('Can be limited with perPage', async () => {
|
||||
const res = await supertest.get(`/api/fleet/epm/packages/installed?perPage=2`).expect(200);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue