Merge "Fix issues with SOnar Qube coverage report"
authorNiamh Core <niamh.core@est.tech>
Tue, 5 Oct 2021 08:35:06 +0000 (08:35 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 5 Oct 2021 08:35:06 +0000 (08:35 +0000)
1  2 
pom.xml
src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java
src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy

diff --cc pom.xml
Simple merge
@@@ -247,14 -259,11 +259,20 @@@ class DmiRestControllerSpec extends Spe
                      'testFields',
                      5,
                      ['prop1':'value1', 'prop2':'value2'])
 +        where: 'tokens are used in the resource identifier parameter'
 +            scenario                       | resourceIdentifier
 +            '/'                            | 'id/with/slashes'
 +            '?'                            | 'idWith?'
 +            ','                            | 'idWith,'
 +            '='                            | 'idWith='
 +            '[]'                           | 'idWith[]'
 +            '? needs to be encoded as %3F' | 'idWith%3F'
 +
      }
- }
+     def getJsonDataForGetModules(operation) {
+         def jsonData = TestUtils.getResourceFileContent('GetModules.json')
+         return jsonData.replace('${operation-for-test}', operation)
+     }
+ }