31 lines
569 B
Text
31 lines
569 B
Text
meta {
|
|
name: dronesWithCooling -> false
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{API_BASE}}/dronesWithCooling/false
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
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
|
|
}
|