summaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/test
diff options
context:
space:
mode:
authorJoanna Jeremicz <joanna.jeremicz@nokia.com>2019-11-04 12:14:22 +0100
committerJoanna Jeremicz <joanna.jeremicz@nokia.com>2019-11-05 10:43:17 +0100
commit0f0892fbf3105c1dfa695bc380fc525b82fa9d86 (patch)
treee98bd57b49280f3a784001c489c86e78263f586c /prh-app-server/src/test
parent30101b0ba9a5416d66d7290ec73f3d4acb383772 (diff)
Update PNF in AAI
PNF is now updated with parameters from VES event whenever PNF_UPDATE case is executed Issue-ID: DCAEGEN2-1911 Change-Id: I262e4fbf52c92f7a187f3730b40f7f5d689d2dc3 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Diffstat (limited to 'prh-app-server/src/test')
-rw-r--r--prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasksTest.java5
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();