Files
bruno/packages/bruno-tests/collection/scripting/api/req/setMethod.bru
2024-08-12 12:27:32 +05:30

36 lines
450 B
Plaintext

meta {
name: setMethod
type: http
seq: 4
}
post {
url: {{host}}/ping
body: none
auth: none
}
auth:awsv4 {
accessKeyId: a
secretAccessKey: b
sessionToken: c
service: d
region: e
profileName: f
}
assert {
res.status: eq 200
res.body: eq pong
}
script:pre-request {
req.setMethod("GET");
}
tests {
test("req.setMethod()()", function() {
const method = req.getMethod();
expect(method).to.equal("GET");
});
}