Ignore CPS Delta performance tests 53/142253/1
authorArpit Singh <AS00745003@techmahindra.com>
Thu, 9 Oct 2025 11:46:19 +0000 (17:16 +0530)
committerArpit Singh <AS00745003@techmahindra.com>
Thu, 9 Oct 2025 11:46:19 +0000 (17:16 +0530)
Patch adds @Ignore annotation to skip Delta Report related performance
tests.
This is to test the stability of other tests that are impacted by delta
report performance tests.

Issue-ID: CPS-2997
Change-Id: I944b3941e92c2e74a05c1cd51803acf915b236d2
Signed-off-by: Arpit Singh <AS00745003@techmahindra.com>
integration-test/src/test/groovy/org/onap/cps/integration/performance/base/CpsPerfTestBase.groovy
integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy
integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/QueryPerfTest.groovy

index b133d22..dd8f9c7 100644 (file)
@@ -33,7 +33,6 @@ class CpsPerfTestBase extends PerfTestBase {
 
     static final def CPS_PERFORMANCE_TEST_DATASPACE = 'cpsPerformanceDataspace'
     static final def OPENROADM_ANCHORS = 3
-    static final def MODIFIED_OPENROADM_ANCHORS = 1
     static final def OPENROADM_DEVICES_PER_ANCHOR = 1000
     static final def OPENROADM_DATANODES_PER_DEVICE = 86
 
@@ -55,7 +54,6 @@ class CpsPerfTestBase extends PerfTestBase {
     def createInitialData() {
         addOpenRoadModel()
         addOpenRoadData()
-        addModifiedOpenRoadData()
     }
 
     def 'CPS pre-load test data'() {
index 62b8d0d..87e77c1 100644 (file)
@@ -19,6 +19,7 @@
 
 package org.onap.cps.integration.performance.cps
 
+import org.junit.Ignore
 import org.onap.cps.api.CpsDeltaService
 import org.onap.cps.integration.performance.base.CpsPerfTestBase
 
@@ -34,6 +35,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
 
     def jsonPayload = generateModifiedOpenRoadData(1000, 200, 200, 200)
 
+    @Ignore
     def 'Get delta between 2 anchors with grouping enabled and #scenario'() {
         when: 'attempt to get delta between two 2 anchors'
             resourceMeter.start()
@@ -51,6 +53,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
             'all descendants'    | '/'                                                               | INCLUDE_ALL_DESCENDANTS || 18.0
     }
 
+    @Ignore
     def 'Get delta between 2 anchors with grouping disabled and #scenario'() {
         when: 'attempt to get delta between two 2 anchors'
             resourceMeter.start()
@@ -68,6 +71,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
             'all descendants'    | '/openroadm-devices'                                              | INCLUDE_ALL_DESCENDANTS || 20.0
     }
 
+    @Ignore
     def 'Get delta between an anchor and JSON payload with grouping enabled and #scenario'() {
         when: 'attempt to get delta between an anchor and JSON payload'
             resourceMeter.start()
@@ -83,6 +87,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
             'all descendants'    | INCLUDE_ALL_DESCENDANTS || 6.0
     }
 
+    @Ignore
     def 'Get delta between an anchor and JSON payload with grouping disabled and #scenario'() {
         when: 'attempt to get delta between an anchor and JSON payload'
             resourceMeter.start()
@@ -98,6 +103,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
             'all descendants'    | INCLUDE_ALL_DESCENDANTS || 7.0
     }
 
+    @Ignore
     def 'Apply delta report to an anchor'() {
         given: 'a delta report between 2 anchors'
             def deltaReport = objectUnderTest.getDeltaByDataspaceAndAnchors(CPS_PERFORMANCE_TEST_DATASPACE, 'openroadm-modified1', 'openroadm1', '/openroadm-devices', INCLUDE_ALL_DESCENDANTS, true)
index e0de333..9ca2931 100644 (file)
@@ -54,7 +54,7 @@ class QueryPerfTest extends CpsPerfTestBase {
 
     def 'Query complete data trees across all anchors with #scenario.'() {
         given: 'expected number of data nodes to be returned'
-            def expectedNumberOfDataNodes = (OPENROADM_ANCHORS + MODIFIED_OPENROADM_ANCHORS) * (OPENROADM_DEVICES_PER_ANCHOR * OPENROADM_DATANODES_PER_DEVICE + additionalDataNodesPerDevice)
+            def expectedNumberOfDataNodes = OPENROADM_ANCHORS * (OPENROADM_DEVICES_PER_ANCHOR * OPENROADM_DATANODES_PER_DEVICE + additionalDataNodesPerDevice)
         when: 'query data nodes across all anchors'
             resourceMeter.start()
             def result = objectUnderTest.queryDataNodesAcrossAnchors(CPS_PERFORMANCE_TEST_DATASPACE, cpspath, INCLUDE_ALL_DESCENDANTS, PaginationOption.NO_PAGINATION)