-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- map of strings with (concatenated) header values - contains the same values as the header, but not in arrays - :control can be used on different header values - removed unused body:control and header:control from code, check was never implemented see #73980
- Loading branch information
Philipp Hempel
committed
Oct 28, 2024
1 parent
af151cc
commit d341bfd
Showing
9 changed files
with
135 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"http_server": { | ||
"addr": ":9999", | ||
"dir": "../_res", | ||
"testmode": false | ||
}, | ||
"name": "response header: format header_flat", | ||
"tests": [ | ||
{ | ||
"name": "test response header_flat", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "bounce-json", | ||
"method": "POST" | ||
}, | ||
"response": { | ||
"statuscode": 200, | ||
"header": { | ||
"Content-Type": [ | ||
"text/plain; charset=utf-8" | ||
] | ||
}, | ||
"header_flat": { | ||
"Content-Type": "text/plain; charset=utf-8" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "test response header_flat (check for a failing test with a reverse result)", | ||
"reverse_test_result": true, | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "bounce-json", | ||
"method": "POST" | ||
}, | ||
"response": { | ||
"statuscode": 200, | ||
"header_flat": { | ||
"Content-Length": "foo", | ||
"Content-Type": "bar" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "test response header_flat: control for header values", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "bounce-json", | ||
"method": "POST" | ||
}, | ||
"response": { | ||
"statuscode": 200, | ||
"header_flat": { | ||
"Content-Length:control": { | ||
"match": "^\\d+$" | ||
}, | ||
"Content-Type:control": { | ||
"match": "^text/plain;.*" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "test response header_flat: control for header values (check for a failing test with a reverse result)", | ||
"reverse_test_result": true, | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "bounce-json", | ||
"method": "POST" | ||
}, | ||
"response": { | ||
"statuscode": 200, | ||
"header_flat": { | ||
"Content-Length:control": { | ||
"match": "foo" | ||
}, | ||
"Content-Type:control": { | ||
"match": "bar" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |