summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2025-03-22 10:43:31 +0100
committerPaul-Christian Volkmer2025-03-22 11:04:32 +0100
commit4ad6c4bd0a35ebd903040dcd01f64331811c7fee (patch)
treecebde7db6fba2a68b49b9b3f3fdd17ef4b7ece52 /src/test
parent9bdd8ba3751a88d3530d803318da1d5e4ecb9219 (diff)
feat: handle and save issue report for non HTTP 2xx responses
Diffstat (limited to 'src/test')
-rw-r--r--src/test/kotlin/dev/dnpm/etl/processor/output/RestBwhcMtbFileSenderTest.kt8
-rw-r--r--src/test/kotlin/dev/dnpm/etl/processor/output/RestDipMtbFileSenderTest.kt8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/test/kotlin/dev/dnpm/etl/processor/output/RestBwhcMtbFileSenderTest.kt b/src/test/kotlin/dev/dnpm/etl/processor/output/RestBwhcMtbFileSenderTest.kt
index abd7f9d..5063a97 100644
--- a/src/test/kotlin/dev/dnpm/etl/processor/output/RestBwhcMtbFileSenderTest.kt
+++ b/src/test/kotlin/dev/dnpm/etl/processor/output/RestBwhcMtbFileSenderTest.kt
@@ -213,23 +213,23 @@ class RestBwhcMtbFileSenderTest {
),
RequestWithResponse(
HttpStatus.BAD_REQUEST,
- "??",
+ ERROR_RESPONSE_BODY,
MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
),
RequestWithResponse(
HttpStatus.UNPROCESSABLE_ENTITY,
errorBody,
- MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
+ MtbFileSender.Response(RequestStatus.ERROR, errorBody)
),
// Some more errors not mentioned in documentation
RequestWithResponse(
HttpStatus.NOT_FOUND,
- "what????",
+ ERROR_RESPONSE_BODY,
MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
),
RequestWithResponse(
HttpStatus.INTERNAL_SERVER_ERROR,
- "what????",
+ ERROR_RESPONSE_BODY,
MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
)
)
diff --git a/src/test/kotlin/dev/dnpm/etl/processor/output/RestDipMtbFileSenderTest.kt b/src/test/kotlin/dev/dnpm/etl/processor/output/RestDipMtbFileSenderTest.kt
index ed8c6f0..dac6496 100644
--- a/src/test/kotlin/dev/dnpm/etl/processor/output/RestDipMtbFileSenderTest.kt
+++ b/src/test/kotlin/dev/dnpm/etl/processor/output/RestDipMtbFileSenderTest.kt
@@ -213,23 +213,23 @@ class RestDipMtbFileSenderTest {
),
RequestWithResponse(
HttpStatus.BAD_REQUEST,
- "??",
+ ERROR_RESPONSE_BODY,
MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
),
RequestWithResponse(
HttpStatus.UNPROCESSABLE_ENTITY,
errorBody,
- MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
+ MtbFileSender.Response(RequestStatus.ERROR, errorBody)
),
// Some more errors not mentioned in documentation
RequestWithResponse(
HttpStatus.NOT_FOUND,
- "what????",
+ ERROR_RESPONSE_BODY,
MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
),
RequestWithResponse(
HttpStatus.INTERNAL_SERVER_ERROR,
- "what????",
+ ERROR_RESPONSE_BODY,
MtbFileSender.Response(RequestStatus.ERROR, ERROR_RESPONSE_BODY)
)
)