ilpcw/ilp-cw-api/[GET] queryAsPath/maxMoves = 1000.bru

36 lines
615 B
Text

meta {
name: maxMoves = 1000
type: http
seq: 6
}
get {
url: {{API_BASE}}/queryAsPath/maxMoves/1000
body: none
auth: inherit
}
assert {
res.body: length 4
res.status : eq 200
}
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
}