From 49a5b2ff7ee809df5bddec88c5f1c2058c1e4b55 Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Mon, 16 Dec 2024 20:03:47 +0000 Subject: [PATCH] Fixing inference service test deprecation warning in search tests (#204386) Adds a `model_id` property to the model config and renames the service to `elasticsearch`, as `elser` has been deprecated. This should avoid triggering API deprecation warning. --- .../functional/test_suites/search/inference_management.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/test_serverless/functional/test_suites/search/inference_management.ts b/x-pack/test_serverless/functional/test_suites/search/inference_management.ts index ecb49911edb18..c22694d0b648d 100644 --- a/x-pack/test_serverless/functional/test_suites/search/inference_management.ts +++ b/x-pack/test_serverless/functional/test_suites/search/inference_management.ts @@ -26,10 +26,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { const endpoint = 'endpoint-1'; const taskType = 'sparse_embedding'; const modelConfig = { - service: 'elser', + service: 'elasticsearch', service_settings: { num_allocations: 1, num_threads: 1, + model_id: '.elser_model_2', }, };