From 0613fbd654bacb9324e07bb2f9f4244302c48aaa Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Mon, 27 May 2024 16:06:59 +0100 Subject: Print summary report for K6 tests - add a generic template to print summary of k6 test results - remove container logs since its around 50 mb Issue-ID: CPS-2215 Change-Id: I8971fc30b9dc8be2ed16eda6755d17a91f608b48 Signed-off-by: halil.cakal Signed-off-by: danielhanrahan Signed-off-by: halil.cakal --- k6-tests/ncmp/5-search-no-filter.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'k6-tests/ncmp/5-search-no-filter.js') diff --git a/k6-tests/ncmp/5-search-no-filter.js b/k6-tests/ncmp/5-search-no-filter.js index fa08d0c40c..f6a7c99719 100644 --- a/k6-tests/ncmp/5-search-no-filter.js +++ b/k6-tests/ncmp/5-search-no-filter.js @@ -19,6 +19,7 @@ */ import { searchRequest } from './search-base.js'; +import { makeCustomSummaryReport } from "./utils.js"; export const options = { vus: 5, @@ -29,6 +30,12 @@ export const options = { }, }; -export default function() { +export default function () { searchRequest('searches', '{}') } + +export function handleSummary(data) { + return { + stdout: makeCustomSummaryReport(data, options), + }; +} \ No newline at end of file -- cgit 1.2.3-korg