mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-24 21:25:45 +00:00
* fix: update test URLs from httpbin to echo.usebruno.com across multiple test files * fix: standardize URL formatting in insomnia test files * chore: standardize URL formatting in insomnia test files
45 lines
784 B
Plaintext
45 lines
784 B
Plaintext
meta {
|
|
name: Get UUID
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: https://echo.usebruno.com
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"uuid": "49889366-72d2-4ba6-a0b7-94de29a04dc4"
|
|
}
|
|
}
|
|
|
|
tests {
|
|
test("This test will fail", function() {
|
|
expect(res.getStatus()).to.equal(404); // Intentional failure
|
|
});
|
|
|
|
test("Status code is 200", function() {
|
|
expect(res.getStatus()).to.equal(200);
|
|
});
|
|
|
|
test("Response is an object", function() {
|
|
expect(res.getBody()).to.be.an('object');
|
|
});
|
|
|
|
test("Response has uuid property", function() {
|
|
expect(res.getBody()).to.have.property('uuid');
|
|
});
|
|
|
|
test("UUID is a string", function() {
|
|
const body = res.getBody();
|
|
expect(body.uuid).to.be.a('string');
|
|
});
|
|
}
|