From 0e006004acf07ee044c9a4c258cee5518ffd0988 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Thu, 6 Jun 2024 20:43:21 +0100 Subject: [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 Change-Id: If1e58ee87300cd28ed72b365d9a86e2709dc6c13 --- k6-tests/ncmp/8-id-search-module.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'k6-tests/ncmp/8-id-search-module.js') diff --git a/k6-tests/ncmp/8-id-search-module.js b/k6-tests/ncmp/8-id-search-module.js index 4c9e03e3f6..d058a1bf14 100644 --- a/k6-tests/ncmp/8-id-search-module.js +++ b/k6-tests/ncmp/8-id-search-module.js @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -import { searchRequest } from './search-base.js'; +import { executeCmHandleIdSearch } 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": "hasAllModules", - "conditionParameters": [{"moduleName": "ietf-yang-types-1"}] - } - ] - }; - searchRequest('id-searches', JSON.stringify(search_filter)); + executeCmHandleIdSearch('module'); } export function handleSummary(data) { -- cgit 1.2.3-korg