mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-27 14:44:07 +00:00
31 lines
456 B
Plaintext
31 lines
456 B
Plaintext
meta {
|
|
name: setVar
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
auth:awsv4 {
|
|
accessKeyId: a
|
|
secretAccessKey: b
|
|
sessionToken: c
|
|
service: d
|
|
region: e
|
|
profileName: f
|
|
}
|
|
|
|
script:post-response {
|
|
bru.setVar("testSetVar", "bruno-test-87267")
|
|
}
|
|
|
|
tests {
|
|
test("should get var in scripts", function() {
|
|
const testSetVar = bru.getVar("testSetVar");
|
|
expect(testSetVar).to.equal("bruno-test-87267");
|
|
});
|
|
} |