From 9c56b3032222b57549aa17dd281e4794fd9e25b6 Mon Sep 17 00:00:00 2001 From: seanbeirne Date: Thu, 15 Dec 2022 16:06:20 +0000 Subject: Fetch CM handles by collection of xpaths - Added FragmentRepositoryMultiPathQuery - Removed Hibernate method for same - Added perf. test - Handle escaping of single qoutes in sql-data - Increased timing for path paser performance test Issue-ID: CPS-1422 Signed-off-by: seanbeirne Change-Id: Ibea12a44bffd29ed43cc1560b507d1fa7e968b8b --- .../onap/cps/cpspath/parser/performance/CpsPathUtilPerfTest.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cps-path-parser/src/test') diff --git a/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/performance/CpsPathUtilPerfTest.groovy b/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/performance/CpsPathUtilPerfTest.groovy index 2ba20c1c5..e5e304b47 100644 --- a/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/performance/CpsPathUtilPerfTest.groovy +++ b/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/performance/CpsPathUtilPerfTest.groovy @@ -35,9 +35,9 @@ class CpsPathUtilPerfTest extends Specification { CpsPathUtil.getNormalizedXpath('//child[@other-leaf=1]/leaf-name[text()="search"]/ancestor::parent') } stopWatch.stop() - then: 'it takes less then 1,000 milliseconds' + then: 'it takes less then 1,100 milliseconds' // In CI this actually takes about 0.3-0.5 sec which is approx. 50+ parser executions per millisecond! - assert stopWatch.getTotalTimeMillis() < 1000 + assert stopWatch.getTotalTimeMillis() < 1100 } } -- cgit 1.2.3-korg