From fd5b04c51451cb0525d7ed93b1bb9b53573f6aaa Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Tue, 19 Nov 2024 11:10:32 +0000 Subject: Define new Suite (js): Endurance - have one ncmp-test-runner.js with different configs: kpi.json and endurance.json - move scenarios and thresholds settings into the json configs Issue-ID: CPS-2444 Change-Id: I72f65036dc3f7762284b32903e1d05474dbed6c2 Signed-off-by: halil.cakal --- k6-tests/ncmp/config/endurance.json | 98 +++++++++++++++++++++++++++++++++++-- 1 file changed, 93 insertions(+), 5 deletions(-) (limited to 'k6-tests/ncmp/config/endurance.json') diff --git a/k6-tests/ncmp/config/endurance.json b/k6-tests/ncmp/config/endurance.json index c9def6ce39..d215d0a1e1 100644 --- a/k6-tests/ncmp/config/endurance.json +++ b/k6-tests/ncmp/config/endurance.json @@ -4,10 +4,98 @@ "dmiStubUrl": "http://ncmp-dmi-plugin-demo-and-csit-stub:8092", "kafkaBootstrapServer": "localhost:9093" }, - "timingConfig": { - "testDuration": "2h" - }, - "kafka": { - "legacyBatchTopic": "legacy_batch_topic" + "scenarios": { + "passthrough_read_scenario": { + "executor": "constant-vus", + "exec": "passthroughReadScenario", + "vus": 2, + "duration": "2h" + }, + "passthrough_read_alt_id_scenario": { + "executor": "constant-vus", + "exec": "passthroughReadAltIdScenario", + "vus": 2, + "duration": "2h" + }, + "passthrough_write_scenario": { + "executor": "constant-vus", + "exec": "passthroughWriteScenario", + "vus": 2, + "duration": "2h" + }, + "passthrough_write_alt_id_scenario": { + "executor": "constant-vus", + "exec": "passthroughWriteAltIdScenario", + "vus": 2, + "duration": "2h" + }, + "cm_handle_id_search_nofilter_scenario": { + "executor": "constant-vus", + "exec": "cmHandleIdSearchNoFilterScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_search_nofilter_scenario": { + "executor": "constant-vus", + "exec": "cmHandleSearchNoFilterScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_id_search_module_scenario": { + "executor": "constant-vus", + "exec": "cmHandleIdSearchModuleScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_search_module_scenario": { + "executor": "constant-vus", + "exec": "cmHandleSearchModuleScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_id_search_property_scenario": { + "executor": "constant-vus", + "exec": "cmHandleIdSearchPropertyScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_search_property_scenario": { + "executor": "constant-vus", + "exec": "cmHandleSearchPropertyScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_id_search_cpspath_scenario": { + "executor": "constant-vus", + "exec": "cmHandleIdSearchCpsPathScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_search_cpspath_scenario": { + "executor": "constant-vus", + "exec": "cmHandleSearchCpsPathScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_id_search_trustlevel_scenario": { + "executor": "constant-vus", + "exec": "cmHandleIdSearchTrustLevelScenario", + "vus": 1, + "duration": "2h" + }, + "cm_handle_search_trustlevel_scenario": { + "executor": "constant-vus", + "exec": "cmHandleSearchTrustLevelScenario", + "vus": 1, + "duration": "2h" + }, + "legacy_batch_produce_scenario": { + "executor": "constant-arrival-rate", + "exec": "legacyBatchProduceScenario", + "duration": "2h", + "rate": 1, + "timeUnit": "1s", + "preAllocatedVUs": 1 + } } } -- cgit 1.2.3-korg