Skip to content

Commit

Permalink
Allow for ID in create package policy request (elastic#100908)
Browse files Browse the repository at this point in the history
E2E tests are failing because they include the ID field returned by the
package list endpoint. This just updates our request schema to accept an
ID, though we don't persist or deal with the ID anywhere.

Closes elastic#100897

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
kpollich and kibanamachine committed Jun 1, 2021
1 parent 3295128 commit 0383b87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/fleet/server/types/models/package_policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const PackagePolicyBaseSchema = {

export const NewPackagePolicySchema = schema.object({
...PackagePolicyBaseSchema,
id: schema.maybe(schema.string()),
force: schema.maybe(schema.boolean()),
});

Expand Down

0 comments on commit 0383b87

Please sign in to comment.