diff options
author | biniek <lukasz.biniek@nokia.com> | 2018-12-18 18:10:07 +0100 |
---|---|---|
committer | biniek <lukasz.biniek@nokia.com> | 2018-12-18 18:20:48 +0100 |
commit | ea20186bc58d26c3a51439f9b75fc13bd79ed410 (patch) | |
tree | b5e86e68ffb32cbd7279f3bbc78a02d4752c280d /bpmn/so-bpmn-infrastructure-common/src | |
parent | 47e83f7ba26e8d05f4d4ba9ac8281a7ab16a77c9 (diff) |
PNF PnP don't set "in-maint"
Change-Id: I2c68a87d2483ebbd44fbf90f1afced9f02d23ab4
Issue-ID: SO-1345
Signed-off-by: biniek <lukasz.biniek@nokia.com>
Diffstat (limited to 'bpmn/so-bpmn-infrastructure-common/src')
2 files changed, 1 insertions, 2 deletions
diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegate.java b/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegate.java index 209cbac98a..849308e0ee 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegate.java +++ b/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegate.java @@ -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); diff --git a/bpmn/so-bpmn-infrastructure-common/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java b/bpmn/so-bpmn-infrastructure-common/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java index 465dc085fc..e328c0c7b1 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java +++ b/bpmn/so-bpmn-infrastructure-common/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java @@ -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 |