aboutsummaryrefslogtreecommitdiffstats
path: root/k6-tests/ncmp/7-search-public-property.js
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2024-06-06 20:43:21 +0100
committerdanielhanrahan <daniel.hanrahan@est.tech>2024-06-06 20:43:21 +0100
commit0e006004acf07ee044c9a4c258cee5518ffd0988 (patch)
treebccdc93713c756dbb5327fdd4773bfc6f4fc16ee /k6-tests/ncmp/7-search-public-property.js
parent43d0451a27311e4154536a66cb22eb4d68a21e7a (diff)
[k6] Refactor k6 tests for CM handle searches
A cleanup of the k6 tests to avoid code duplication Issue-ID: CPS-2208 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: If1e58ee87300cd28ed72b365d9a86e2709dc6c13
Diffstat (limited to 'k6-tests/ncmp/7-search-public-property.js')
-rw-r--r--k6-tests/ncmp/7-search-public-property.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/k6-tests/ncmp/7-search-public-property.js b/k6-tests/ncmp/7-search-public-property.js
index 6a46a0329..cb39b54d9 100644
--- a/k6-tests/ncmp/7-search-public-property.js
+++ b/k6-tests/ncmp/7-search-public-property.js
@@ -18,7 +18,7 @@
* ============LICENSE_END=========================================================
*/
-import { searchRequest } from './search-base.js';
+import { executeCmHandleSearch } from './search-base.js';
import { makeCustomSummaryReport } from "./utils.js";
export const options = {
@@ -31,15 +31,7 @@ export const options = {
};
export default function () {
- const search_filter = {
- "cmHandleQueryParameters": [
- {
- "conditionName": "hasAllProperties",
- "conditionParameters": [{"Color": "yellow"}, {"Size": "small"}]
- }
- ]
- };
- searchRequest('searches', JSON.stringify(search_filter));
+ executeCmHandleSearch('property');
}
export function handleSummary(data) {