You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/mock_s3_server/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ The server will read from ./{OperationName}/{Key}.json. The json file is formatt
25
25
{
26
26
"status": 200,
27
27
"headers": {"Connection": "close"},
28
+
"request_headers:" {"HeaderA": "ValueA"}
28
29
"body": [
29
30
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
30
31
"",
@@ -40,6 +41,7 @@ The server will read from ./{OperationName}/{Key}.json. The json file is formatt
40
41
41
42
Where you can define the expected response status, header and response body. If the {Key}.json is not found from file system, it will load the `default.json`.
42
43
44
+
The server validates that all specified headers in the "request_headers" field are present in the incoming request. If any required header is missing, the request will fail. These headers will not be part of the Response headers.
43
45
If the "delay" field is present, the response will be delayed by X seconds.
0 commit comments