From: Niamh Core Date: Tue, 5 Oct 2021 08:35:06 +0000 (+0000) Subject: Merge "Fix issues with SOnar Qube coverage report" X-Git-Tag: 1.0.1~14 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=9ee0feb24f8f75ce05cf9e34e4621cf2b226657e;p=cps%2Fncmp-dmi-plugin.git Merge "Fix issues with SOnar Qube coverage report" --- 9ee0feb24f8f75ce05cf9e34e4621cf2b226657e diff --cc src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy index c818eccb,8aebbca2..256db4e9 --- a/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy +++ b/src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy @@@ -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) + } + + }