[k6] Fix response code check for passthrough write test 78/138578/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 25 Jul 2024 15:20:15 +0000 (16:20 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 25 Jul 2024 15:20:15 +0000 (16:20 +0100)
The POST operation returns 201, not 200.
This causes checks to fail when running k6 manually.

Issue-ID: CPS-2267
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I3c0e771b89aa09e41c9dbdf1c532599e1ab5440d

k6-tests/ncmp/ncmp-kpi.js

index 96c6263..b4c476e 100644 (file)
@@ -97,7 +97,7 @@ export function passthrough_read() {
 
 export function passthrough_write() {
     const response = passthroughWrite();
-    check(response, { 'passthrough write status equals 200': (r) => r.status === 200 });
+    check(response, { 'passthrough write status equals 201': (r) => r.status === 201 });
     const overhead = response.timings.duration - WRITE_DATA_FOR_CM_HANDLE_DELAY_MS;
     passthroughWriteNcmpOverheadTrend.add(overhead);
 }