diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-07-25 16:20:15 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-07-25 16:20:15 +0100 |
commit | df58456e7fbbdb2504b1acb994bf74d884856fcb (patch) | |
tree | 7b74a3e3b4ce1a020076877051202e9d27bfad25 | |
parent | 9864d3f58694f07a35b34ee651fbaf51d993fdd6 (diff) |
[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 <daniel.hanrahan@est.tech>
Change-Id: I3c0e771b89aa09e41c9dbdf1c532599e1ab5440d
-rw-r--r-- | k6-tests/ncmp/ncmp-kpi.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |