44 lines
536 B
Text
44 lines
536 B
Text
meta {
|
|
name: GT LT -contradict
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
post {
|
|
url: {{API_BASE}}/query
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body:json {
|
|
[
|
|
{
|
|
"attribute": "capacity",
|
|
"operator": ">",
|
|
"value": "8"
|
|
},
|
|
{
|
|
"attribute": "capacity",
|
|
"operator": "<",
|
|
"value": "8"
|
|
}
|
|
]
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
res.body: length 0
|
|
}
|
|
|
|
tests {
|
|
test("Response body is a JSON array", function() {
|
|
expect(res.getBody()).to.be.an('array');
|
|
});
|
|
|
|
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|