diff options
author | Piotr Wielebski <piotr.wielebski@nokia.com> | 2019-11-07 13:58:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-07 13:58:18 +0000 |
commit | b6160ac4a289b2a0ca12f26b6f8be5186438a6c7 (patch) | |
tree | 64301ea42b5da2fb55326c6fb473126eac4f747f /prh-app-server/src/test/java | |
parent | 9e2877371c44603490e9a9779090d6d80cd7a7d2 (diff) | |
parent | 0f0892fbf3105c1dfa695bc380fc525b82fa9d86 (diff) |
Merge "Update PNF in AAI"
Diffstat (limited to 'prh-app-server/src/test/java')
-rw-r--r-- | prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasksTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasksTest.java b/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasksTest.java index cefc5c76..346421ec 100644 --- a/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasksTest.java +++ b/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasksTest.java @@ -139,14 +139,17 @@ class ScheduledTasksTest { @Test void whenPnfHasActiveService_OnlyPostToPnfUpdateShouldBePerformed() throws SSLException, PrhTaskException { //given + Mono<ConsumerDmaapModel> consumerModel = Mono.just(DMAAP_MODEL); + given(consumer.execute()).willReturn(Flux.just(DMAAP_MODEL)); given(aaiQuery.execute(any())).willReturn(Mono.just(true)); + given(aaiProducer.execute(DMAAP_MODEL)).willReturn(consumerModel); //when sut.scheduleMainPrhEventTask(); //then - verifyThatPnfUpdateWasNotSentToAai(); + verifyThatPnfUpdateWasSentToAai(); verifyIfLogicalLinkWasNotCreated(); verifyThatPnfModelWasNotSentDmaapPnfReadyTopic(); verifyThatPnfModelWasSentDmaapPnfUpdateTopic(); |