From 99a0ee8f2792e3f9648e7cc48495a4ab331785bc Mon Sep 17 00:00:00 2001 From: Arpit Singh Date: Tue, 14 Oct 2025 14:18:25 +0530 Subject: [PATCH] Isolate Delta Report performance test data - Performance tests for Delta report required creation of an anchor used only for performance tests of Delta Report - Current approach made this anchor available to other performance tests causing them to fail. - Updated approach isolates the test data for Delta Report to DeltaPerfTest class. - removed addModifiedOpenRoadData() method as it is no longer needed to create anchor for Delta Report tests. Issue-ID: CPS-3012 Change-Id: Ib7e22ce937fbbafa77c42a09d1c2eaed3c00796d Signed-off-by: Arpit Singh --- .../performance/base/CpsPerfTestBase.groovy | 9 ----- .../performance/cps/DeltaPerfTest.groovy | 38 ++++++++++++++++------ 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/CpsPerfTestBase.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/CpsPerfTestBase.groovy index dd8f9c77aa..e5bf7f2b4f 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/CpsPerfTestBase.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/CpsPerfTestBase.groovy @@ -89,15 +89,6 @@ class CpsPerfTestBase extends PerfTestBase { ']}}' } - def addModifiedOpenRoadData() { - def data = generateModifiedOpenRoadData(OPENROADM_DEVICES_PER_ANCHOR, 200, 200, 200) - resourceMeter.start() - addAnchorsWithData(1, CPS_PERFORMANCE_TEST_DATASPACE, LARGE_SCHEMA_SET, 'openroadm-modified', data, ContentType.JSON) - resourceMeter.stop() - def durationInSeconds = resourceMeter.getTotalTimeInSeconds() - recordAndAssertResourceUsage('CPS:Creating modified openroadm anchor with large data tree', 100, durationInSeconds, resourceMeter.getTotalMemoryUsageInMB(), false) - } - def generateModifiedOpenRoadData(numberOfNodes, removeNodesCount, addNodesCount, updateCount) { def innerNode = readResourceDataFile('openroadm/innerNode.json') def allIndices = (0..