Files
bruno/packages/bruno-tests/collection/cookies/test secure+localhost+https.bru
ramki-bruno 8cf8321087 Added test requests for cookies and related changes in testbench server
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
2025-05-27 14:23:47 +05:30

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
}