diff options
author | leventecsanyi <levente.csanyi@est.tech> | 2022-12-12 14:07:23 +0100 |
---|---|---|
committer | leventecsanyi <levente.csanyi@est.tech> | 2022-12-12 14:07:30 +0100 |
commit | c88883a6fcd629669efe490dc43cf5764d5ab00c (patch) | |
tree | 5965b5b89417be7a803f386f2fe729cab68264da /cps-ri/src | |
parent | f20b49940bb4dd381b689dfedbddbe80cb3968f7 (diff) |
Increase performance test margins
- Increased duration times
Issue-Id: CPS-1420
Change-Id: I510801a65194b63ce72a716ee3fc7258aef61207
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Diffstat (limited to 'cps-ri/src')
-rw-r--r-- | cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy b/cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy index fb6749c3fe..387fc1f857 100644 --- a/cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy +++ b/cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy @@ -48,16 +48,16 @@ class CpsToDataNodePerfTest extends CpsPersistenceSpecBase { createLineage() setupStopWatch.stop() def setupDurationInMillis = setupStopWatch.getTime() - and: 'setup duration is under 8000 milliseconds' - assert setupDurationInMillis < 8000 + and: 'setup duration is under 10000 milliseconds' + assert setupDurationInMillis < 10000 when: 'get parent is executed with all descendants' def readStopWatch = new StopWatch() readStopWatch.start() def result = objectUnderTest.getDataNode('PERF-DATASPACE', 'PERF-ANCHOR', PERF_TEST_PARENT, INCLUDE_ALL_DESCENDANTS) readStopWatch.stop() def readDurationInMillis = readStopWatch.getTime() - then: 'read duration is under 450 milliseconds' - assert readDurationInMillis < 450 + then: 'read duration is under 500 milliseconds' + assert readDurationInMillis < 500 and: 'data node is returned with all the descendants populated' assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES when: 'get root is executed with all descendants' @@ -66,8 +66,8 @@ class CpsToDataNodePerfTest extends CpsPersistenceSpecBase { result = objectUnderTest.getDataNode('PERF-DATASPACE', 'PERF-ANCHOR', '', INCLUDE_ALL_DESCENDANTS) readStopWatch.stop() readDurationInMillis = readStopWatch.getTime() - then: 'read duration is under 450 milliseconds' - assert readDurationInMillis < 450 + then: 'read duration is under 500 milliseconds' + assert readDurationInMillis < 500 and: 'data node is returned with all the descendants populated' assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES when: 'query is executed with all descendants' @@ -76,8 +76,8 @@ class CpsToDataNodePerfTest extends CpsPersistenceSpecBase { result = objectUnderTest.queryDataNodes('PERF-DATASPACE', 'PERF-ANCHOR', '//perf-parent-1', INCLUDE_ALL_DESCENDANTS) readStopWatch.stop() readDurationInMillis = readStopWatch.getTime() - then: 'read duration is under 450 milliseconds' - assert readDurationInMillis < 450 + then: 'read duration is under 500 milliseconds' + assert readDurationInMillis < 500 and: 'data node is returned with all the descendants populated' assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES } |