ilpcw/ilp-cw-api/[GET] queryAsPath/capacity = 8.0.bru

35 lines
591 B
Text

meta {
name: capacity = 8.0
type: http
seq: 2
}
get {
url: {{API_BASE}}/queryAsPath/capacity/8.0
body: none
auth: inherit
}
assert {
res.body: length 4
}
tests {
test("Status code is 200", function() {
expect(res.status).to.equal(200);
});
test("Response body is a JSON array", function() {
expect(res.getBody()).to.be.an('array');
});
test("Array is not empty and contains Strings", function() {
const data = res.getBody();
expect(data[0]).to.be.a('string'); // data should be in string
});
}
settings {
encodeUrl: true
timeout: 0
}