[k6] Update tests for DMI stub changes for modules 93/139293/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 25 Oct 2024 13:34:19 +0000 (14:34 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Fri, 25 Oct 2024 13:34:19 +0000 (14:34 +0100)
It is needed to update k6 tests due to changes made in
the DMI stub for dynamic module generation:

- Increase setup timeout to 30 minutes
- Use 5 module set tags: tagA to tagE
- Update module search to look for module100

Issue-ID: CPS-2410
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I17830e4d858883743476d297af90d1ceaba1eb44

k6-tests/ncmp/common/search-base.js
k6-tests/ncmp/common/utils.js
k6-tests/ncmp/ncmp-kpi.js

index 1e98e9b..af2caf7 100644 (file)
@@ -43,7 +43,7 @@ const SEARCH_PARAMETERS_PER_SCENARIO = {
         "cmHandleQueryParameters": [
             {
                 "conditionName": "hasAllModules",
-                "conditionParameters": [{"moduleName": "ietf-yang-types"}]
+                "conditionParameters": [{"moduleName": "module100"}]
             }
         ]
     },
index a429675..6ddcca5 100644 (file)
@@ -30,7 +30,7 @@ export const LEGACY_BATCH_THROUGHPUT_TEST_BATCH_SIZE = 200;
 export const LEGACY_BATCH_THROUGHPUT_TEST_NUMBER_OF_REQUESTS = 1000;
 export const LEGACY_BATCH_TOPIC_NAME = 'legacy_batch_topic';
 export const KAFKA_BOOTSTRAP_SERVERS = ['localhost:9092'];
-export const MODULE_SET_TAGS = ['tagA','tagB','tagC',' tagD']
+export const MODULE_SET_TAGS = ['tagA', 'tagB', 'tagC', 'tagD', 'tagE'];
 
 
 /**
index 8815511..a8a6a09 100644 (file)
@@ -58,8 +58,8 @@ const DURATION = '15m';
 const LEGACY_BATCH_THROUGHPUT_TEST_START_TIME = '15m30s';
 
 export const options = {
-    setupTimeout: '8m',
-    teardownTimeout: '6m',
+    setupTimeout: '30m',
+    teardownTimeout: '10m',
     scenarios: {
         passthrough_read_scenario: {
             executor: 'constant-vus',