From: egernug Date: Thu, 13 Feb 2025 10:19:19 +0000 (+0000) Subject: Fix WriteSubJobSpec test to support Windows X-Git-Tag: 3.6.1~15^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F140214%2F1;p=cps.git Fix WriteSubJobSpec test to support Windows - Added to test to support Windows/Kubernetes network resolution by MockWebServer Issue-ID: CPS-2641 Change-Id: I1bfe1db66438bbbf7df9e94c8d42cfe84d68b220 Signed-off-by: egernug --- diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy index 5d3ea1919a..46c641cd23 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/WriteSubJobSpec.groovy @@ -60,7 +60,7 @@ class WriteSubJobSpec extends CpsIntegrationSpecBase { assert response.size() == 2 assert response[0].class == SubJobWriteResponse.class assert response[0].subJobId == 'some sub job id' - assert response[0].dmiServiceName.startsWith('http://localhost:') + assert response[0].dmiServiceName.startsWith('http://localhost:') || response[0].dmiServiceName().startsWith('http://kubernetes') assert response[0].dataProducerId == 'some data producer id' and: 'dmi 1 received the correct job details' def receivedSubJobsForDispatcher1 = dmiDispatcher1.receivedSubJobs['?destination=d1']['data'].collect()