Skip to content

Commit 19de9ff

Browse files
Ignore CPS Delta performance tests
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>
1 parent f6fa949 commit 19de9ff

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class CpsPerfTestBase extends PerfTestBase {
3333

3434
static final def CPS_PERFORMANCE_TEST_DATASPACE = 'cpsPerformanceDataspace'
3535
static final def OPENROADM_ANCHORS = 3
36-
static final def MODIFIED_OPENROADM_ANCHORS = 1
3736
static final def OPENROADM_DEVICES_PER_ANCHOR = 1000
3837
static final def OPENROADM_DATANODES_PER_DEVICE = 86
3938

@@ -55,7 +54,6 @@ class CpsPerfTestBase extends PerfTestBase {
5554
def createInitialData() {
5655
addOpenRoadModel()
5756
addOpenRoadData()
58-
addModifiedOpenRoadData()
5957
}
6058

6159
def 'CPS pre-load test data'() {

‎integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/DeltaPerfTest.groovy‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
package org.onap.cps.integration.performance.cps
2121

22+
import org.junit.Ignore
2223
import org.onap.cps.api.CpsDeltaService
2324
import org.onap.cps.integration.performance.base.CpsPerfTestBase
2425

@@ -34,6 +35,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
3435

3536
def jsonPayload = generateModifiedOpenRoadData(1000, 200, 200, 200)
3637

38+
@Ignore
3739
def 'Get delta between 2 anchors with grouping enabled and #scenario'() {
3840
when: 'attempt to get delta between two 2 anchors'
3941
resourceMeter.start()
@@ -51,6 +53,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
5153
'all descendants' | '/' | INCLUDE_ALL_DESCENDANTS || 18.0
5254
}
5355

56+
@Ignore
5457
def 'Get delta between 2 anchors with grouping disabled and #scenario'() {
5558
when: 'attempt to get delta between two 2 anchors'
5659
resourceMeter.start()
@@ -68,6 +71,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
6871
'all descendants' | '/openroadm-devices' | INCLUDE_ALL_DESCENDANTS || 20.0
6972
}
7073

74+
@Ignore
7175
def 'Get delta between an anchor and JSON payload with grouping enabled and #scenario'() {
7276
when: 'attempt to get delta between an anchor and JSON payload'
7377
resourceMeter.start()
@@ -83,6 +87,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
8387
'all descendants' | INCLUDE_ALL_DESCENDANTS || 6.0
8488
}
8589

90+
@Ignore
8691
def 'Get delta between an anchor and JSON payload with grouping disabled and #scenario'() {
8792
when: 'attempt to get delta between an anchor and JSON payload'
8893
resourceMeter.start()
@@ -98,6 +103,7 @@ class DeltaPerfTest extends CpsPerfTestBase{
98103
'all descendants' | INCLUDE_ALL_DESCENDANTS || 7.0
99104
}
100105

106+
@Ignore
101107
def 'Apply delta report to an anchor'() {
102108
given: 'a delta report between 2 anchors'
103109
def deltaReport = objectUnderTest.getDeltaByDataspaceAndAnchors(CPS_PERFORMANCE_TEST_DATASPACE, 'openroadm-modified1', 'openroadm1', '/openroadm-devices', INCLUDE_ALL_DESCENDANTS, true)

‎integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/QueryPerfTest.groovy‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class QueryPerfTest extends CpsPerfTestBase {
5454

5555
def 'Query complete data trees across all anchors with #scenario.'() {
5656
given: 'expected number of data nodes to be returned'
57-
def expectedNumberOfDataNodes = (OPENROADM_ANCHORS + MODIFIED_OPENROADM_ANCHORS) * (OPENROADM_DEVICES_PER_ANCHOR * OPENROADM_DATANODES_PER_DEVICE + additionalDataNodesPerDevice)
57+
def expectedNumberOfDataNodes = OPENROADM_ANCHORS * (OPENROADM_DEVICES_PER_ANCHOR * OPENROADM_DATANODES_PER_DEVICE + additionalDataNodesPerDevice)
5858
when: 'query data nodes across all anchors'
5959
resourceMeter.start()
6060
def result = objectUnderTest.queryDataNodesAcrossAnchors(CPS_PERFORMANCE_TEST_DATASPACE, cpspath, INCLUDE_ALL_DESCENDANTS, PaginationOption.NO_PAGINATION)

0 commit comments

Comments
 (0)