diff options
author | halil.cakal <halil.cakal@est.tech> | 2024-08-28 10:19:26 +0100 |
---|---|---|
committer | halil.cakal <halil.cakal@est.tech> | 2024-09-12 13:56:56 +0100 |
commit | fc49910404bf3868788e4b8d91d93047ce297f4d (patch) | |
tree | 63f02881806daa89ff4b0578516602b4497bdc9a /k6-tests/ncmp/common/passthrough-crud.js | |
parent | a346bc65249bb3c82abc880fbcf2c2c66fc1e8e5 (diff) |
Calculate throughput for legacy batch read data operations
- stress the cps-and-ncmp module for batch read data operation
- for this aim use shared-ireations during async http request
- as parallel to this, consume expected number of messages
as fast as possible
Issue-ID: CPS-2268
Change-Id: I1b6724479dac7391cbb6407fda52d15176aa8985
Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'k6-tests/ncmp/common/passthrough-crud.js')
-rw-r--r-- | k6-tests/ncmp/common/passthrough-crud.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/k6-tests/ncmp/common/passthrough-crud.js b/k6-tests/ncmp/common/passthrough-crud.js index 0cd96ad64d..86fcef6242 100644 --- a/k6-tests/ncmp/common/passthrough-crud.js +++ b/k6-tests/ncmp/common/passthrough-crud.js @@ -23,8 +23,8 @@ import { performPostRequest, performGetRequest, NCMP_BASE_URL, - TOPIC_DATA_OPERATIONS_BATCH_READ, - TOTAL_CM_HANDLES + LEGACY_BATCH_TOPIC_NAME, + TOTAL_CM_HANDLES, } from './utils.js'; export function passthroughRead(useAlternateId) { @@ -46,8 +46,8 @@ export function passthroughWrite(useAlternateId) { return performPostRequest(url, payload, 'passthroughWrite'); } -export function batchRead(cmHandleIds) { - const url = `${NCMP_BASE_URL}/ncmp/v1/data?topic=${TOPIC_DATA_OPERATIONS_BATCH_READ}`; +export function legacyBatchRead(cmHandleIds) { + const url = `${NCMP_BASE_URL}/ncmp/v1/data?topic=${LEGACY_BATCH_TOPIC_NAME}` const payload = JSON.stringify({ "operations": [ { |