From df58456e7fbbdb2504b1acb994bf74d884856fcb Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Thu, 25 Jul 2024 16:20:15 +0100 Subject: [k6] Fix response code check for passthrough write test The POST operation returns 201, not 200. This causes checks to fail when running k6 manually. Issue-ID: CPS-2267 Signed-off-by: danielhanrahan Change-Id: I3c0e771b89aa09e41c9dbdf1c532599e1ab5440d --- k6-tests/ncmp/ncmp-kpi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'k6-tests') diff --git a/k6-tests/ncmp/ncmp-kpi.js b/k6-tests/ncmp/ncmp-kpi.js index 96c6263d32..b4c476ecb2 100644 --- a/k6-tests/ncmp/ncmp-kpi.js +++ b/k6-tests/ncmp/ncmp-kpi.js @@ -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); } -- cgit 1.2.3-korg