From 3d5feba0675343e29b826498b5f2bc4b606dfe23 Mon Sep 17 00:00:00 2001 From: Arpit Singh Date: Tue, 28 Oct 2025 17:08:18 +0530 Subject: [PATCH] Analyze the fluctuations seen in the Groovy based performance tests Testing the cause of fluctuations in QueryPerfTest by disabling the DeltaPerfTests This is done as the fluctuations started after Delta Performance Tests were merged Issue-ID: CPS-3020 Change-Id: Ia953718a5f4b72fb3ff9c12b70b59ede7b9b2262 Signed-off-by: Arpit Singh --- .../org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy index e2c838aba6..10b4b18344 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy @@ -22,6 +22,7 @@ package org.onap.cps.integration.performance.cps import org.onap.cps.api.CpsDeltaService import org.onap.cps.integration.performance.base.CpsPerfTestBase import org.onap.cps.utils.ContentType +import spock.lang.Ignore import static org.onap.cps.api.parameters.FetchDescendantsOption.DIRECT_CHILDREN_ONLY import static org.onap.cps.api.parameters.FetchDescendantsOption.INCLUDE_ALL_DESCENDANTS @@ -37,6 +38,7 @@ class DeltaPerfTest extends CpsPerfTestBase{ def jsonPayload = generateModifiedOpenRoadData(1000, 200, 200, 200) + @Ignore def 'Setup test anchor (please note, subsequent tests depend on this running first).'() { when: 'anchor with modified node data is created' resourceMeter.start() @@ -48,6 +50,7 @@ class DeltaPerfTest extends CpsPerfTestBase{ recordAndAssertResourceUsage('CPS: Creating modified openroadm anchor', 25, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB(), false) } + @Ignore def 'Get delta between 2 anchors with grouping enabled and #scenario'() { when: 'attempt to get delta between two 2 anchors' resourceMeter.start() @@ -65,6 +68,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() @@ -82,6 +86,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() @@ -97,6 +102,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() @@ -112,6 +118,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) @@ -125,6 +132,7 @@ class DeltaPerfTest extends CpsPerfTestBase{ recordAndAssertResourceUsage('CPS:Apply delta report to an anchor', 20.0, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB()) } + @Ignore def 'Clean up test data'() { when: 'anchor is deleted' resourceMeter.start() -- 2.16.6