Skip to content

Commit

Permalink
[Synthetics] Increase Project monitor payload limit to 50MiB (elastic…
Browse files Browse the repository at this point in the history
…#174470)

## Summary
Follow up to elastic/synthetics#884

Increase Project monitor payload route  limit to 50MiB !!
  • Loading branch information
shahzad31 authored Jan 9, 2024
1 parent 72a5f87 commit 8f9e11d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8f9e11d

Please sign in to comment.