35 lines
587 B
Text
35 lines
587 B
Text
meta {
|
|
name: capacity = 4
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
get {
|
|
url: {{API_BASE}}/queryAsPath/capacity/4
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
assert {
|
|
res.body: length 2
|
|
}
|
|
|
|
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
|
|
}
|