[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 !!
This commit is contained in:
Shahzad 2024-01-09 11:11:51 +01:00 committed by GitHub
parent 72a5f87b24
commit 8f9e11d001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -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');

View file

@ -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',