summaryrefslogtreecommitdiffstats
path: root/k6-tests/ncmp/8-id-search-module.js
diff options
context:
space:
mode:
authorDaniel Hanrahan <daniel.hanrahan@est.tech>2024-05-28 10:16:20 +0000
committerGerrit Code Review <gerrit@onap.org>2024-05-28 10:16:20 +0000
commit1e4bf345c21586491ee4767ed9f44de22a99a8c2 (patch)
tree3a660fba69b3d44331c709ccc0e489fd1b22b970 /k6-tests/ncmp/8-id-search-module.js
parentc69ce470ecabedc9df59b9a9d3888338850fd502 (diff)
parent0613fbd654bacb9324e07bb2f9f4244302c48aaa (diff)
Merge "Print summary report for K6 tests"
Diffstat (limited to 'k6-tests/ncmp/8-id-search-module.js')
-rw-r--r--k6-tests/ncmp/8-id-search-module.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/k6-tests/ncmp/8-id-search-module.js b/k6-tests/ncmp/8-id-search-module.js
index e99fbfeb28..299fe62b89 100644
--- a/k6-tests/ncmp/8-id-search-module.js
+++ b/k6-tests/ncmp/8-id-search-module.js
@@ -19,6 +19,7 @@
*/
import { searchRequest } from './search-base.js';
+import { makeCustomSummaryReport } from "./utils.js";
export const options = {
vus: 5,
@@ -29,14 +30,20 @@ export const options = {
},
};
-export default function() {
+export default function () {
const search_filter = {
"cmHandleQueryParameters": [
{
"conditionName": "hasAllModules",
- "conditionParameters": [ {"moduleName": "ietf-yang-types-1"} ]
+ "conditionParameters": [{"moduleName": "ietf-yang-types-1"}]
}
]
};
searchRequest('id-searches', JSON.stringify(search_filter));
}
+
+export function handleSummary(data) {
+ return {
+ stdout: makeCustomSummaryReport(data, options),
+ };
+} \ No newline at end of file