Make NCMP integration tests use MockWebServer 39/137739/5
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 2 May 2024 09:26:16 +0000 (10:26 +0100)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Fri, 3 May 2024 11:49:23 +0000 (12:49 +0100)
commit7662e814e912e0eecccea583ff18ce9abe84ef9f
treec8ef0cfbcd5f1ee6d27a65de3fdc0f60c443be0b
parentc5f6c45eb5cd94f76f1f39e5a4593996a9f25474
Make NCMP integration tests use MockWebServer

Change from using MockRestServiceServer - which is only compatible
with RestTemplate - to MockWebServer, which will allow tests to work
using WebClient instead of RestTemplate.

Issue-ID: CPS-2183
Change-Id: I7494fe17cba6e92f7df81f0fd0185e1d2b5a5541
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
15 files changed:
cps-dependencies/pom.xml
integration-test/pom.xml
integration-test/src/test/groovy/org/onap/cps/integration/base/CpsIntegrationSpecBase.groovy
integration-test/src/test/groovy/org/onap/cps/integration/base/DmiDispatcher.groovy [new file with mode: 0644]
integration-test/src/test/groovy/org/onap/cps/integration/functional/NcmpBearerTokenPassthroughSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/NcmpCmHandleCreateSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/NcmpCmHandleUpgradeSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/NcmpCmNotificationSubscriptionSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/NcmpRestApiSpec.groovy
integration-test/src/test/resources/data/mock-dmi-responses/bookStoreAWithModules_M1_M2_ResourcesResponse.json [deleted file]
integration-test/src/test/resources/data/mock-dmi-responses/bookStoreAWithModules_M1_M2_Response.json [deleted file]
integration-test/src/test/resources/data/mock-dmi-responses/bookStoreBWithModules_M1_M3_ResourcesResponse.json [deleted file]
integration-test/src/test/resources/data/mock-dmi-responses/bookStoreBWithModules_M1_M3_Response.json [deleted file]
integration-test/src/test/resources/data/mock-dmi-responses/moduleReferencesTemplate.json [new file with mode: 0644]
integration-test/src/test/resources/data/mock-dmi-responses/moduleResourcesTemplate.json [new file with mode: 0644]