From ed0e08b6a61a4676e6d2305d92f6b8f99265017d Mon Sep 17 00:00:00 2001 From: Rudolf Meijering Date: Fri, 3 Dec 2021 10:21:15 +0100 Subject: [PATCH] TEST: generate an artificial deprecation --- src/core/server/saved_objects/service/lib/repository.ts | 1 + test/api_integration/apis/saved_objects/find.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/server/saved_objects/service/lib/repository.ts b/src/core/server/saved_objects/service/lib/repository.ts index ed1ae4414f49c..a36ca8605d171 100644 --- a/src/core/server/saved_objects/service/lib/repository.ts +++ b/src/core/server/saved_objects/service/lib/repository.ts @@ -962,6 +962,7 @@ export class SavedObjectsRepository { esOptions, { ignore: [404], + headers: { 'x-elastic-product-origin': 'make deprecation' }, } ); if (statusCode === 404) { diff --git a/test/api_integration/apis/saved_objects/find.ts b/test/api_integration/apis/saved_objects/find.ts index 9b2b3a96cba5b..4ff1627ea0a6f 100644 --- a/test/api_integration/apis/saved_objects/find.ts +++ b/test/api_integration/apis/saved_objects/find.ts @@ -15,7 +15,7 @@ export default function ({ getService }: FtrProviderContext) { const kibanaServer = getService('kibanaServer'); const SPACE_ID = 'ftr-so-find'; - describe('find', () => { + describe.only('find', () => { before(async () => { await kibanaServer.spaces.create({ id: SPACE_ID, name: SPACE_ID }); await kibanaServer.importExport.load(