Zipkin: Run queries through backend (#97754)

* Zipkin: Run queries through backend

* ;2DUpdate e2e

* Update e2e
This commit is contained in:
Ivana Huckova
2024-12-11 11:31:24 +01:00
committed by GitHub
parent cdc7c1cae2
commit 2149c75e22
5 changed files with 15 additions and 17 deletions
@@ -24,18 +24,11 @@ test.describe('test createDataSourceConfigPage fixture, saveAndTest and toBeOK m
});
test.describe('test data source with frontend only health check', () => {
test('valid credentials should display a success alert on the page', async ({
createDataSourceConfigPage,
page,
selectors,
}) => {
test('valid credentials should display a success alert on the page', async ({ createDataSourceConfigPage, page }) => {
const configPage = await createDataSourceConfigPage({ type: 'zipkin' });
const healthCheckPath = `${selectors.apis.DataSource.proxy(configPage.datasource.uid)}/api/v2/services`;
await page.route(healthCheckPath, async (route) => {
await route.fulfill({ status: 200, body: 'OK' });
});
configPage.mockHealthCheckResponse({ message: 'Data source is working', status: 'OK' }, 200);
await page.getByPlaceholder('http://localhost:9411').fill('http://localhost:9411');
await expect(configPage.saveAndTest({ path: healthCheckPath })).toBeOK();
await expect(configPage.saveAndTest()).toBeOK();
await expect(
configPage,
formatExpectError('Expected data source config to display success alert after save')