From 9fb470f194193a7a58167d41b8728a605f76b05d Mon Sep 17 00:00:00 2001 From: Kyle Pollich Date: Fri, 28 May 2021 13:41:33 -0400 Subject: [PATCH] Allow for ID in create package policy request 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 --- x-pack/plugins/fleet/server/types/models/package_policy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/fleet/server/types/models/package_policy.ts b/x-pack/plugins/fleet/server/types/models/package_policy.ts index cbf311cac4e3b..3735cfffeaa71 100644 --- a/x-pack/plugins/fleet/server/types/models/package_policy.ts +++ b/x-pack/plugins/fleet/server/types/models/package_policy.ts @@ -82,6 +82,7 @@ const PackagePolicyBaseSchema = { export const NewPackagePolicySchema = schema.object({ ...PackagePolicyBaseSchema, + id: schema.maybe(schema.string()), force: schema.maybe(schema.boolean()), });