mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-30 16:14:06 +00:00
38 lines
506 B
Plaintext
38 lines
506 B
Plaintext
meta {
|
|
name: getHeaders
|
|
type: http
|
|
seq: 7
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
bruno: is-awesome
|
|
della: is-beautiful
|
|
}
|
|
|
|
auth:awsv4 {
|
|
accessKeyId: a
|
|
secretAccessKey: b
|
|
sessionToken: c
|
|
service: d
|
|
region: e
|
|
profileName: f
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
res.body: eq pong
|
|
}
|
|
|
|
tests {
|
|
test("req.getHeaders()", function() {
|
|
const h = req.getHeaders();
|
|
expect(h.bruno).to.equal("is-awesome");
|
|
expect(h.della).to.equal("is-beautiful");
|
|
});
|
|
} |