feat(cw2): /api/v1/dronesWithCooling impl

This commit is contained in:
js0ny 2025-11-18 17:55:50 +00:00
parent 2b9b668a2f
commit 3c96f9d5af
10 changed files with 206 additions and 27 deletions

View file

@ -0,0 +1,31 @@
meta {
name: dronesWithCooling -> true
type: http
seq: 1
}
get {
url: {{API_BASE}}/dronesWithCooling/true
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 numbers", function() {
const data = res.getBody();
expect(data[0]).to.be.a('number'); // data should be in number
});
}
settings {
encodeUrl: true
timeout: 0
}