From 4e87584723f46f06ee5026691411d7158d6f002a Mon Sep 17 00:00:00 2001 From: js0ny Date: Thu, 27 Nov 2025 11:59:54 +0000 Subject: [PATCH] test(cw1): Add bruno test for CW1 endpoints --- .../[Sematic Error] distanceTo.bru | 24 +++++++++++++++++++ .../[Sematic Error] isCloseTo.bru | 24 +++++++++++++++++++ .../[Sematic Error] nextPosition.bru | 24 +++++++++++++++++++ ilp-cw-api/CW1 Feedback API/folder.bru | 8 +++++++ 4 files changed, 80 insertions(+) create mode 100644 ilp-cw-api/CW1 Feedback API/[Sematic Error] distanceTo.bru create mode 100644 ilp-cw-api/CW1 Feedback API/[Sematic Error] isCloseTo.bru create mode 100644 ilp-cw-api/CW1 Feedback API/[Sematic Error] nextPosition.bru create mode 100644 ilp-cw-api/CW1 Feedback API/folder.bru diff --git a/ilp-cw-api/CW1 Feedback API/[Sematic Error] distanceTo.bru b/ilp-cw-api/CW1 Feedback API/[Sematic Error] distanceTo.bru new file mode 100644 index 0000000..e2ea533 --- /dev/null +++ b/ilp-cw-api/CW1 Feedback API/[Sematic Error] distanceTo.bru @@ -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 +} diff --git a/ilp-cw-api/CW1 Feedback API/[Sematic Error] isCloseTo.bru b/ilp-cw-api/CW1 Feedback API/[Sematic Error] isCloseTo.bru new file mode 100644 index 0000000..744be28 --- /dev/null +++ b/ilp-cw-api/CW1 Feedback API/[Sematic Error] isCloseTo.bru @@ -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 +} diff --git a/ilp-cw-api/CW1 Feedback API/[Sematic Error] nextPosition.bru b/ilp-cw-api/CW1 Feedback API/[Sematic Error] nextPosition.bru new file mode 100644 index 0000000..f2e092d --- /dev/null +++ b/ilp-cw-api/CW1 Feedback API/[Sematic Error] nextPosition.bru @@ -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 +} diff --git a/ilp-cw-api/CW1 Feedback API/folder.bru b/ilp-cw-api/CW1 Feedback API/folder.bru new file mode 100644 index 0000000..f0e894e --- /dev/null +++ b/ilp-cw-api/CW1 Feedback API/folder.bru @@ -0,0 +1,8 @@ +meta { + name: CW1 Feedback API + seq: 6 +} + +auth { + mode: inherit +}