From 8f9e11d001a53d64d593bf49c4570523d8e48704 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Tue, 9 Jan 2024 11:11:51 +0100 Subject: [PATCH] [Synthetics] Increase Project monitor payload limit to 50MiB (#174470) ## Summary Follow up to https://github.com/elastic/synthetics/pull/884 Increase Project monitor payload route limit to 50MiB !! --- .../e2e/synthetics/journeys/test_run_details.journey.ts | 8 +++++++- .../server/routes/monitor_cruds/add_monitor_project.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/synthetics/e2e/synthetics/journeys/test_run_details.journey.ts b/x-pack/plugins/synthetics/e2e/synthetics/journeys/test_run_details.journey.ts index 5189db3c4c359..fdd281b40dcc2 100644 --- a/x-pack/plugins/synthetics/e2e/synthetics/journeys/test_run_details.journey.ts +++ b/x-pack/plugins/synthetics/e2e/synthetics/journeys/test_run_details.journey.ts @@ -68,7 +68,13 @@ journey(`TestRunDetailsPage`, async ({ page, params }) => { step('Go to test run page', async () => { await page.click(byTestId('superDatePickerToggleQuickMenuButton')); - await page.click('text=Last 1 year'); + await page.getByTestId('superDatePickerQuickMenu').getByLabel('Time value').fill('10'); + await page + .getByTestId('superDatePickerQuickMenu') + .getByLabel('Time unit') + .selectOption('Years'); + await page.getByTestId('superDatePickerQuickMenu').getByText('Apply').click(); + await page.mouse.wheel(0, 1000); await page.click(byTestId('row-ab240846-8d22-11ed-8fac-52bb19a2321e')); await page.waitForSelector('text=Test run details'); diff --git a/x-pack/plugins/synthetics/server/routes/monitor_cruds/add_monitor_project.ts b/x-pack/plugins/synthetics/server/routes/monitor_cruds/add_monitor_project.ts index f878e8bb40c70..1fb924a57a56e 100644 --- a/x-pack/plugins/synthetics/server/routes/monitor_cruds/add_monitor_project.ts +++ b/x-pack/plugins/synthetics/server/routes/monitor_cruds/add_monitor_project.ts @@ -13,7 +13,7 @@ import { ProjectMonitor } from '../../../common/runtime_types'; import { SYNTHETICS_API_URLS } from '../../../common/constants'; import { ProjectMonitorFormatter } from '../../synthetics_service/project_monitor/project_monitor_formatter'; -const MAX_PAYLOAD_SIZE = 1048576 * 20; // 20MiB +const MAX_PAYLOAD_SIZE = 1048576 * 50; // 20MiB export const addSyntheticsProjectMonitorRoute: SyntheticsRestApiRouteFactory = () => ({ method: 'PUT',