From 0dc1bf6cbc068e78fc561871417f22074022fc99 Mon Sep 17 00:00:00 2001 From: Vladimir Lazar <106525396+cbr7@users.noreply.github.com> Date: Thu, 5 Dec 2024 11:51:28 +0200 Subject: [PATCH] chore(test): make get request to check model service availability (#2213) * chore(test): make get request to check model service availability --- tests/playwright/src/ai-lab-extension.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/playwright/src/ai-lab-extension.spec.ts b/tests/playwright/src/ai-lab-extension.spec.ts index 73eb8b2b1..385331607 100644 --- a/tests/playwright/src/ai-lab-extension.spec.ts +++ b/tests/playwright/src/ai-lab-extension.spec.ts @@ -184,6 +184,14 @@ test.describe.serial(`AI Lab extension installation and verification`, { tag: '@ await playExpect(modelServiceDetailsPage.inferenceServerType).toContainText('Inference'); }); + test(`Make GET request to the model service for ${modelName}`, async ({ request }) => { + const port = await modelServiceDetailsPage.getInferenceServerPort(); + const url = `http://localhost:${port}`; + const response = await request.get(url); + playExpect(response.ok()).toBeTruthy(); + playExpect(await response.text()).toContain('hello'); + }); + test(`Delete model service for ${modelName}`, async () => { test.setTimeout(150_000); const modelServicePage = await modelServiceDetailsPage.deleteService();