Skip to content

Commit

Permalink
chore(test): make get request to check model service availability (#2213
Browse files Browse the repository at this point in the history
)

* chore(test): make get request to check model service availability
cbr7 authored Dec 5, 2024
1 parent 14ad345 commit 0dc1bf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/playwright/src/ai-lab-extension.spec.ts
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit 0dc1bf6

Please sign in to comment.