test(cw1): Add bruno test for CW1 endpoints
This commit is contained in:
parent
221707afb0
commit
4e87584723
4 changed files with 80 additions and 0 deletions
24
ilp-cw-api/CW1 Feedback API/[Sematic Error] distanceTo.bru
Normal file
24
ilp-cw-api/CW1 Feedback API/[Sematic Error] distanceTo.bru
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
meta {
|
||||||
|
name: [Sematic Error] distanceTo
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{API_BASE}}/distanceTo
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{ "position1": { "lng": -300.192473, "lat": 550.946233 }, "position2": { "lng": -3202.192473, "lat": 5533.942617 } }
|
||||||
|
}
|
||||||
|
|
||||||
|
assert {
|
||||||
|
res.status: eq 400
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
24
ilp-cw-api/CW1 Feedback API/[Sematic Error] isCloseTo.bru
Normal file
24
ilp-cw-api/CW1 Feedback API/[Sematic Error] isCloseTo.bru
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
meta {
|
||||||
|
name: [Sematic Error] isCloseTo
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{API_BASE}}/isCloseTo
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{ "position1": { "lng": -3004.192473, "lat": 550.946233 }, "position2": { "lng": -390.192473, "lat": 551.942617 } }
|
||||||
|
}
|
||||||
|
|
||||||
|
assert {
|
||||||
|
res.status: eq 400
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
24
ilp-cw-api/CW1 Feedback API/[Sematic Error] nextPosition.bru
Normal file
24
ilp-cw-api/CW1 Feedback API/[Sematic Error] nextPosition.bru
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
meta {
|
||||||
|
name: [Sematic Error] nextPosition
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{API_BASE}}/nextPosition
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{ "start": { "lng": -3.192473, "lat": 55.946233 }, "angle": 900 }
|
||||||
|
}
|
||||||
|
|
||||||
|
assert {
|
||||||
|
res.status: eq 400
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
8
ilp-cw-api/CW1 Feedback API/folder.bru
Normal file
8
ilp-cw-api/CW1 Feedback API/folder.bru
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
meta {
|
||||||
|
name: CW1 Feedback API
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue