Skip to content

Commit

Permalink
Allow for ID in create package policy request (#100908) (#101053)
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 #100897

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
  • Loading branch information
kibanamachine and kpollich committed Jun 1, 2021
1 parent c18944f commit 8a205e3
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 8a205e3

Please sign in to comment.