chore: rebuild directory structure
This commit is contained in:
parent
d3ce236672
commit
dbf71443c7
91 changed files with 6683 additions and 1 deletions
|
|
@ -0,0 +1,44 @@
|
|||
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
|
||||
}
|
||||
53
ilp-rest-service/ilp-cw-api/[POST] query/GT LT EQ.bru
Normal file
53
ilp-rest-service/ilp-cw-api/[POST] query/GT LT EQ.bru
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
meta {
|
||||
name: GT LT EQ
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/query
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"attribute": "capacity",
|
||||
"operator": ">",
|
||||
"value": "8"
|
||||
},
|
||||
{
|
||||
"attribute": "maxMoves",
|
||||
"operator": "<",
|
||||
"value": "2000"
|
||||
},
|
||||
{
|
||||
"attribute": "cooling",
|
||||
"operator": "=",
|
||||
"value": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body: length 1
|
||||
}
|
||||
|
||||
tests {
|
||||
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
|
||||
}
|
||||
48
ilp-rest-service/ilp-cw-api/[POST] query/GT LT.bru
Normal file
48
ilp-rest-service/ilp-cw-api/[POST] query/GT LT.bru
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
meta {
|
||||
name: GT LT
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/query
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"attribute": "capacity",
|
||||
"operator": ">",
|
||||
"value": "8"
|
||||
},
|
||||
{
|
||||
"attribute": "maxMoves",
|
||||
"operator": "<",
|
||||
"value": "2000"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body: length 2
|
||||
}
|
||||
|
||||
tests {
|
||||
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
|
||||
}
|
||||
8
ilp-rest-service/ilp-cw-api/[POST] query/folder.bru
Normal file
8
ilp-rest-service/ilp-cw-api/[POST] query/folder.bru
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
meta {
|
||||
name: [POST] query
|
||||
seq: 4
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
53
ilp-rest-service/ilp-cw-api/[POST] query/three eqs.bru
Normal file
53
ilp-rest-service/ilp-cw-api/[POST] query/three eqs.bru
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
meta {
|
||||
name: three eqs
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/query
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"attribute": "capacity",
|
||||
"operator": "=",
|
||||
"value": "20"
|
||||
},
|
||||
{
|
||||
"attribute": "heating",
|
||||
"operator": "=",
|
||||
"value": "false"
|
||||
},
|
||||
{
|
||||
"attribute": "cooling",
|
||||
"operator": "=",
|
||||
"value": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body: length 1
|
||||
}
|
||||
|
||||
tests {
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue