mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-24 21:25:45 +00:00
In bruno-testbench(packages/bruno-tests) server - Added support for customising response status-code in `POST /api/echo/custom` API using `statusCode` field - Added `/api/echo/trace` API which returns all the request details as an JSON response - Added SSL support for `localhost` in dev env to test HTTPS requests
30 lines
474 B
Plaintext
30 lines
474 B
Plaintext
meta {
|
|
name: test secure+localhost+https
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: https://localhost:{{local_https_port}}/api/echo/custom
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"type": "text/plain",
|
|
"headers": {
|
|
"set-cookie": [
|
|
"secure-localhost-https=val; Secure"
|
|
],
|
|
"location": "/api/echo/trace"
|
|
},
|
|
"statusCode": 302,
|
|
"content": "hello"
|
|
}
|
|
}
|
|
|
|
assert {
|
|
res.body.headers.cookie: contains secure-localhost-https=val
|
|
}
|