Files
bruno/tests/runner/collection-run-report/collection/api/v1/posts.bru
Abhishek S Lal 60b437ef9d fix: update test URLs having httpbin. Add redirect chain endpoint to test server (#5989)
* 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
2025-11-05 20:16:07 +05:30

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');
});
}