Skip to content

Commit

Permalink
fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Jul 23, 2024
1 parent e30f91d commit 8d22856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/fleet/cypress/e2e/install_assets.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ describe('Install unverified package assets', () => {

// save mocking out the whole package response, but make it so that fleet server is always uninstalled
cy.intercept('GET', '/api/fleet/epm/packages/fleet_server*', (req) => {
console.log('TATA');
req.continue((res) => {
if (res.body?.item?.installationInfo) {
delete res.body.item.installationInfo;
}
if (res.body?.item?.status) {
res.body.item.status = 'not_installed';
}
res.body.metadata = { has_policies: false };
});
});
});
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/fleet/server/types/rest_spec/epm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const GetInfoRequestSchemaDeprecated = {
ignoreUnverified: schema.maybe(schema.boolean()),
prerelease: schema.maybe(schema.boolean()),
full: schema.maybe(schema.boolean()),
withMetadata: schema.boolean({ defaultValue: false }),
}),
};

Expand Down

0 comments on commit 8d22856

Please sign in to comment.