summaryrefslogtreecommitdiffstats
path: root/k6-tests/ncmp/11-delete-cmhandles.js
diff options
context:
space:
mode:
authorPriyank Maheshwari <priyank.maheshwari@est.tech>2024-06-17 16:01:24 +0000
committerGerrit Code Review <gerrit@onap.org>2024-06-17 16:01:24 +0000
commitdec088642348af779281ee98e88392d84685845a (patch)
treef5e3866b88180ce9c76375ed335fefebb794798a /k6-tests/ncmp/11-delete-cmhandles.js
parentf7b4ece2be998a372e8ea1f15a1919d96b2a78af (diff)
parentcb8ba8329d04ec7f43878107884c0fddc595fd82 (diff)
Merge "[k6] Add JVM warmup phase (#2)"
Diffstat (limited to 'k6-tests/ncmp/11-delete-cmhandles.js')
-rw-r--r--k6-tests/ncmp/11-delete-cmhandles.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/k6-tests/ncmp/11-delete-cmhandles.js b/k6-tests/ncmp/11-delete-cmhandles.js
index 534b3de327..542754b5f9 100644
--- a/k6-tests/ncmp/11-delete-cmhandles.js
+++ b/k6-tests/ncmp/11-delete-cmhandles.js
@@ -19,13 +19,12 @@
*/
import exec from 'k6/execution';
-import { TOTAL_CM_HANDLES, makeBatchOfCmHandleIds, makeCustomSummaryReport } from './common/utils.js';
+import { TOTAL_CM_HANDLES, REGISTRATION_BATCH_SIZE, makeBatchOfCmHandleIds, makeCustomSummaryReport } from './common/utils.js';
import { deleteCmHandles } from './common/cmhandle-crud.js';
-const BATCH_SIZE = 100;
export const options = {
vus: 1,
- iterations: Math.ceil(TOTAL_CM_HANDLES / BATCH_SIZE),
+ iterations: Math.ceil(TOTAL_CM_HANDLES / REGISTRATION_BATCH_SIZE),
thresholds: {
http_req_failed: ['rate == 0'],
http_req_duration: ['avg <= 1050'],
@@ -34,7 +33,7 @@ export const options = {
export default function () {
const batchNumber = exec.scenario.iterationInTest;
- const nextBatchOfCmHandleIds = makeBatchOfCmHandleIds(BATCH_SIZE, batchNumber);
+ const nextBatchOfCmHandleIds = makeBatchOfCmHandleIds(REGISTRATION_BATCH_SIZE, batchNumber);
deleteCmHandles(nextBatchOfCmHandleIds);
}