Performance Test settings exploration 11/132311/1
authorseanbeirne <sean.beirne@est.tech>
Fri, 18 Nov 2022 16:22:53 +0000 (16:22 +0000)
committerseanbeirne <sean.beirne@est.tech>
Fri, 18 Nov 2022 16:25:41 +0000 (16:25 +0000)
Issue-ID: CPS-1351
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I91624b74fc712078a22b9dc18851ca0b5de6a911

cps-ri/src/test/groovy/org/onap/cps/spi/performance/CpsToDataNodePerfTest.groovy

index f7ba5de..781d4cb 100644 (file)
@@ -53,10 +53,10 @@ class CpsToDataNodePerfTest extends CpsPersistenceSpecBase {
             def result = objectUnderTest.getDataNode(DATASPACE_NAME, ANCHOR_NAME1, XPATH_DATA_NODE_WITH_DESCENDANTS, INCLUDE_ALL_DESCENDANTS)
             readStopWatch.stop()
             def readDurationInMillis = readStopWatch.getTime()
-        then: 'setup duration is under seconds'
-            assert setupDurationInMillis < 8000
-        and: 'read duration is under 1500 milliseconds'
-            assert readDurationInMillis < 1500
+        then: 'setup duration is under 2500 milliseconds'
+            assert setupDurationInMillis < 2500
+        and: 'read duration is under 180 milliseconds'
+            assert readDurationInMillis < 180
         and: 'data node is returned with all the descendants populated'
             assert countDataNodes(result) == 1533
     }