From 2bda15d33204c72169e53a3510b58e7b89476c1d Mon Sep 17 00:00:00 2001 From: Viduni Wickramarachchi Date: Mon, 9 Dec 2024 08:27:47 -0500 Subject: [PATCH] [Obs AI Assistant] Check KB status via editor --- .../tests/knowledge_base/knowledge_base_status.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts index 1ccc1ddb7a5b2..207badc1b855a 100644 --- a/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts +++ b/x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/tests/knowledge_base/knowledge_base_status.spec.ts @@ -44,7 +44,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns correct status after knowledge base is setup', async () => { const res = await observabilityAIAssistantAPIClient - .slsAdmin({ + .slsEditor({ endpoint: 'GET /internal/observability_ai_assistant/kb/status', }) .expect(200); @@ -58,7 +58,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { await deleteInferenceEndpoint({ es, name: AI_ASSISTANT_KB_INFERENCE_ID }); const res = await observabilityAIAssistantAPIClient - .slsAdmin({ + .slsEditor({ endpoint: 'GET /internal/observability_ai_assistant/kb/status', }) .expect(200);