Update performance test timing for warmup 30/135730/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Tue, 15 Aug 2023 13:12:30 +0000 (14:12 +0100)
committerDaniel Hanrahan <daniel.hanrahan@est.tech>
Tue, 15 Aug 2023 13:17:34 +0000 (13:17 +0000)
Incorrect limit on the warmup results in performance pipeline
failing, as the first test that runs must include the time taken
to write initial data.

Issue-ID: CPS-1811
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I82353fcd5d0904f458808b32f4f01597ba25a688

integration-test/src/test/groovy/org/onap/cps/integration/performance/base/CpsPerfTestBase.groovy
integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeletePerfTest.groovy

index 1dbd716..5fd2747 100644 (file)
@@ -84,7 +84,7 @@ class CpsPerfTestBase extends PerfTestBase {
             stopWatch.stop()
             def durationInMillis = stopWatch.getTotalTimeMillis()
         then: 'all data is read within expected time'
-            recordAndAssertPerformance("Warming database", 100, durationInMillis)
+            recordAndAssertPerformance("Warming database", TimeUnit.SECONDS.toMillis(200), durationInMillis)
     }
 
 }
index fb836b1..0bab615 100644 (file)
@@ -176,7 +176,7 @@ class DeletePerfTest extends CpsPerfTestBase {
             stopWatch.stop()
             def deleteDurationInMillis = stopWatch.getTotalTimeMillis()
         then: 'delete duration is within expected time'
-            recordAndAssertPerformance('Batch delete 100 non-existing', TimeUnit.SECONDS.toMillis(6), deleteDurationInMillis)
+            recordAndAssertPerformance('Batch delete 100 non-existing', TimeUnit.SECONDS.toMillis(7), deleteDurationInMillis)
     }
 
     def 'Clean up test data'() {