summaryrefslogtreecommitdiffstats
path: root/k6-tests/ncmp/10-mixed-load-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'k6-tests/ncmp/10-mixed-load-test.js')
-rw-r--r--k6-tests/ncmp/10-mixed-load-test.js22
1 files changed, 3 insertions, 19 deletions
diff --git a/k6-tests/ncmp/10-mixed-load-test.js b/k6-tests/ncmp/10-mixed-load-test.js
index 829219b4e5..4bb0297d63 100644
--- a/k6-tests/ncmp/10-mixed-load-test.js
+++ b/k6-tests/ncmp/10-mixed-load-test.js
@@ -21,7 +21,7 @@
import http from 'k6/http';
import { check } from 'k6';
import { NCMP_BASE_URL, getRandomCmHandleId, makeCustomSummaryReport } from './utils.js'
-import { searchRequest } from './search-base.js';
+import { executeCmHandleSearch, executeCmHandleIdSearch } from './search-base.js';
export const options = {
scenarios: {
@@ -66,27 +66,11 @@ export function passthrough_read() {
}
export function id_search_module() {
- const search_filter = {
- "cmHandleQueryParameters": [
- {
- "conditionName": "hasAllModules",
- "conditionParameters": [{"moduleName": "ietf-yang-types-1"}]
- }
- ]
- };
- searchRequest('id-searches', JSON.stringify(search_filter));
+ executeCmHandleIdSearch('module');
}
export function cm_search_module() {
- const search_filter = {
- "cmHandleQueryParameters": [
- {
- "conditionName": "hasAllModules",
- "conditionParameters": [{"moduleName": "ietf-yang-types-1"}]
- }
- ]
- };
- searchRequest('searches', JSON.stringify(search_filter));
+ executeCmHandleSearch('module');
}
export function handleSummary(data) {