aboutsummaryrefslogtreecommitdiffstats
path: root/k6-tests/ncmp/common/utils.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/common/utils.js
parentf7b4ece2be998a372e8ea1f15a1919d96b2a78af (diff)
parentcb8ba8329d04ec7f43878107884c0fddc595fd82 (diff)
Merge "[k6] Add JVM warmup phase (#2)"
Diffstat (limited to 'k6-tests/ncmp/common/utils.js')
-rw-r--r--k6-tests/ncmp/common/utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/k6-tests/ncmp/common/utils.js b/k6-tests/ncmp/common/utils.js
index 1fb9b8e670..55ef60a2e7 100644
--- a/k6-tests/ncmp/common/utils.js
+++ b/k6-tests/ncmp/common/utils.js
@@ -20,7 +20,8 @@
export const NCMP_BASE_URL = 'http://localhost:8883';
export const DMI_PLUGIN_URL = 'http://ncmp-dmi-plugin-demo-and-csit-stub:8092';
-export const TOTAL_CM_HANDLES = 20000
+export const TOTAL_CM_HANDLES = Number(__ENV.TOTAL_CM_HANDLES) || 20000;
+export const REGISTRATION_BATCH_SIZE = Number(__ENV.REGISTRATION_BATCH_SIZE) || 100;
/**
* Generates a batch of CM-handle IDs based on batch size and number.