ilpcw/ilp-rest-service/ilp-cw-api/[GET] queryAsPath/heating = true.bru

35 lines
591 B
Text

meta {
name: heating = true
type: http
seq: 4
}
get {
url: {{API_BASE}}/queryAsPath/heating/true
body: none
auth: inherit
}
assert {
res.body: length 7
}
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
}