-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsum_not_provided.spec.json
More file actions
25 lines (25 loc) · 978 Bytes
/
sum_not_provided.spec.json
File metadata and controls
25 lines (25 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"handler": "sum",
"success": true,
"response": {
"to.deep.equal()": "{\"statusCode\":400,\"body\":\"{\\\"message\\\":\\\"Required query-Parameter \\\\\\\"input\\\\\\\" missing.\\\",\\\"messageId\\\":99002}\"}"
},
"logs([length])": {
"to.deep.equal()": 2
},
"logs([0])": {
"to.deep.equal()": "WARNING: 400 99002 GET sum\n{\"event\":{\"queryStringParameters\":{},\"httpMethod\":\"GET\",\"requestContext\":{\"identity\":{\"sourceIp\":\"123.456.789.123\"}},\"path\":\"/sum\",\"headers\":{}},\"response\":{\"statusCode\":400,\"body\":{\"message\":\"Required query-Parameter \\\"input\\\" missing.\",\"messageId\":99002}}}"
},
"logs([1])": {
"to.startsWith()": "JSON: {\"signature\":\"400 99002 GET sum\",\"success\":false,\"level\":\"warn\",\"timings\":{\"duration\":"
},
"event": {
"queryStringParameters": {},
"httpMethod": "GET",
"requestContext": {
"identity": {
"sourceIp": "123.456.789.123"
}
}
}
}