PNF PnP don't set "in-maint" 38/74838/1
authorbiniek <lukasz.biniek@nokia.com>
Tue, 18 Dec 2018 17:10:07 +0000 (18:10 +0100)
committerbiniek <lukasz.biniek@nokia.com>
Tue, 18 Dec 2018 17:20:48 +0000 (18:20 +0100)
Change-Id: I2c68a87d2483ebbd44fbf90f1afced9f02d23ab4
Issue-ID: SO-1345
Signed-off-by: biniek <lukasz.biniek@nokia.com>
bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegate.java
bpmn/so-bpmn-infrastructure-common/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java

index 209cbac..849308e 100644 (file)
@@ -52,7 +52,6 @@ public class CreateAaiEntryWithPnfIdDelegate implements JavaDelegate {
     public void execute(DelegateExecution execution) throws Exception {
         String correlationId = (String) execution.getVariable(CORRELATION_ID);
         Pnf pnf = new Pnf();
-        pnf.setInMaint(true);
         pnf.setPnfId(correlationId);
         pnf.setPnfName(correlationId);
         aaiConnection.createEntry(correlationId, pnf);
index 465dc08..e328c0c 100644 (file)
@@ -45,6 +45,6 @@ public class CreateAaiEntryWithPnfIdDelegateTest {
         Pnf createdEntry = aaiConnection.getCreated().get("testCorrelationId");
         assertThat(createdEntry.getPnfId()).isEqualTo("testCorrelationId");
         assertThat(createdEntry.getPnfName()).isEqualTo("testCorrelationId");
-        assertThat(createdEntry.isInMaint()).isTrue();
+        assertThat(createdEntry.isInMaint()).isNull();
     }
 }
\ No newline at end of file