diff options
author | 2024-09-21 16:47:43 +0100 | |
---|---|---|
committer | 2024-09-24 16:57:59 +0100 | |
commit | a9de166ce7d58b4ccabbd1d586a2ee9dc3b878e8 (patch) | |
tree | 3b1a0b403090e6f4c2e0292bbf03de395d536fd2 /k6-tests/ncmp/common/search-base.js | |
parent | 06391e2c0b13064caa643bd9f44e773eaeeb2631 (diff) |
[k6] CM handles searches using different filters
Each 5 VUs for searches uses a different filter:
no filter, module, property, cps path, and trust level.
This is needed since each search may have different
performance. This also helps reduce load versus doing
a combined module and property search all the time.
Issue-ID: CPS-2349
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I33a75260f97697d2061d10b80ba7eeb2f6c346f5
Diffstat (limited to 'k6-tests/ncmp/common/search-base.js')
-rw-r--r-- | k6-tests/ncmp/common/search-base.js | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/k6-tests/ncmp/common/search-base.js b/k6-tests/ncmp/common/search-base.js index a6424fe5d0..1e98e9b07b 100644 --- a/k6-tests/ncmp/common/search-base.js +++ b/k6-tests/ncmp/common/search-base.js @@ -36,19 +36,34 @@ function executeSearchRequest(searchType, scenario) { } const SEARCH_PARAMETERS_PER_SCENARIO = { - "module-and-properties": { + "no-filter": { + "cmHandleQueryParameters": [] + }, + "module": { "cmHandleQueryParameters": [ { "conditionName": "hasAllModules", "conditionParameters": [{"moduleName": "ietf-yang-types"}] - }, + } + ] + }, + "property": { + "cmHandleQueryParameters": [ { "conditionName": "hasAllProperties", "conditionParameters": [{"Color": "yellow"}] } ] }, - "readyCmHandles": { + "trust-level": { + "cmHandleQueryParameters": [ + { + "conditionName": "cmHandleWithTrustLevel", + "conditionParameters": [ {"trustLevel": "COMPLETE"} ] + } + ] + }, + "cps-path-for-ready-cm-handles": { "cmHandleQueryParameters": [ { "conditionName": "cmHandleWithCpsPath", |