diff options
author | 2018-09-14 16:43:00 +0200 | |
---|---|---|
committer | 2018-09-14 16:44:34 +0200 | |
commit | cf8e9ac4d54b9deb7a8411fa2a3035fb706769d8 (patch) | |
tree | 71a540151a20ddefbbc4b5caf4be93137f47835f /prh-aai-client/src | |
parent | 3799b36b4cd0a342eafcf388eed7facbc9a17d50 (diff) |
Bug fix 'sourceName' -> 'correlationId'
In case of PNF_REGISTRATION event components
like SO and Dmaap are expecting to get
'correlationId' parameter rather than
'sourceName'.
This change simply maps 'sourceName' to 'correlationId'
Change-Id: Ic99ffc6cd61a76f1a8c46c50da7c16660b1b7acf
Issue-ID: DCAEGEN2-744
Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
Diffstat (limited to 'prh-aai-client/src')
2 files changed, 2 insertions, 2 deletions
diff --git a/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java b/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java index 9e282cde..665d65a3 100644 --- a/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java +++ b/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java @@ -79,7 +79,7 @@ public class AaiProducerReactiveHttpClient { private Mono<ClientResponse> patchAaiRequest(ConsumerDmaapModel dmaapModel) { return webClient.patch() - .uri(getUri(dmaapModel.getSourceName())) + .uri(getUri(dmaapModel.getCorrelationId())) .header(X_ONAP_REQUEST_ID, MDC.get(REQUEST_ID)) .header(X_INVOCATION_ID, UUID.randomUUID().toString()) .body(Mono.just(createJsonBody(dmaapModel)), String.class) diff --git a/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java b/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java index 03f9ec64..5fd966dc 100644 --- a/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java +++ b/prh-aai-client/src/test/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClientTest.java @@ -66,7 +66,7 @@ class AaiProducerReactiveHttpClientTest { setupHeaders(); clientResponse = mock(ClientResponse.class); clientResponseMono = Mono.just(clientResponse); - when(dmaapModel.getSourceName()).thenReturn("NOKnhfsadhff"); + when(dmaapModel.getCorrelationId()).thenReturn("NOKnhfsadhff"); when(aaiConfigurationMock.aaiHost()).thenReturn("54.45.33.2"); when(aaiConfigurationMock.aaiProtocol()).thenReturn("https"); when(aaiConfigurationMock.aaiPort()).thenReturn(1234); |