{ "handler": "param", "success": true, "timestamp": "2022-01-05T17:31:29.390Z", "timeout": 2000, "expect": { "to.deep.equal()": { "statusCode": 400, "body": "{\"message\":\"Invalid Value for query-Parameter \\\"notification\\\" provided.\",\"messageId\":99003,\"context\":{\"value\":\"invalid_regex\"}}" } }, "logs": { "to.deep.equal()": [ "WARNING: 400 99003 POST param\n{\"event\":{\"body\":{\"username\":\"Anja Smith\",\"email\":\"test@email.ca\"},\"queryStringParameters\":{\"notification\":\"invalid_regex\"},\"httpMethod\":\"POST\",\"headers\":{\"x-api-version\":\"1.0.1\"},\"requestContext\":{\"identity\":{\"sourceIp\":\"127.0.0.1\"}},\"path\":\"/param\"},\"response\":{\"statusCode\":400,\"body\":{\"message\":\"Invalid Value for query-Parameter \\\"notification\\\" provided.\",\"messageId\":99003,\"context\":{\"value\":\"invalid_regex\"}}}}", "JSON: {\"signature\":\"400 99003 POST param\",\"success\":false,\"level\":\"warn\",\"timings\":{\"duration\":0},\"event\":{\"body\":{\"username\":\"Anja Smith\",\"email\":\"test@email.ca\"},\"queryStringParameters\":{\"notification\":\"invalid_regex\"},\"httpMethod\":\"POST\",\"headers\":{\"x-api-version\":\"1.0.1\"},\"requestContext\":{\"identity\":{\"sourceIp\":\"127.0.0.1\"}},\"path\":\"/param\"},\"response\":{\"statusCode\":400,\"body\":{\"message\":\"Invalid Value for query-Parameter \\\"notification\\\" provided.\",\"messageId\":99003,\"context\":{\"value\":\"invalid_regex\"}}}}" ] }, "event": { "body": "{\"username\": \"Anja Smith\", \"email\": \"test@email.ca\"}", "queryStringParameters": { "notification": "invalid_regex" }, "httpMethod": "POST", "headers": { "X-api-version": "1.0.1" }, "requestContext": { "identity": { "sourceIp": "127.0.0.1" } } } }