From e761fa50f80b2d6888f510f67cab1d6e740fd28e Mon Sep 17 00:00:00 2001 From: "Benjamin, Max (mb388a)" Date: Tue, 16 Oct 2018 16:46:17 -0400 Subject: Bug fixes October 16 Treat the VfModule returned from PrepareUpdateAAIVfModule call as an AAI object collection create, connect instanceGroup to cloudRegion Fix a typo in the name of the method for getting a variable testing mapping of instance group role test NetworkInstanceGroup role to be SUB-INTERFACE use enum value with hyphen for subtype Some updates based on feedback to java codes updated client to use optional instead of passing null added case where client sends null due to mapping issue added generic response object and pinc returns response build relationship now correctly removes wrapper Ensure that no null object gets referenced while checking if VNF is empty. Change-Id: I6177877518475c1f2e8e4e9dbd2ad1e2f3e10d18 Issue-ID: SO-1144 Signed-off-by: Benjamin, Max (mb388a) --- .../src/main/java/org/onap/so/client/aai/AAIResourcesClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/src/main/java/org/onap') diff --git a/common/src/main/java/org/onap/so/client/aai/AAIResourcesClient.java b/common/src/main/java/org/onap/so/client/aai/AAIResourcesClient.java index e91dc43af9..87951d516b 100644 --- a/common/src/main/java/org/onap/so/client/aai/AAIResourcesClient.java +++ b/common/src/main/java/org/onap/so/client/aai/AAIResourcesClient.java @@ -269,18 +269,18 @@ public class AAIResourcesClient extends AAIClient { return e; } - private Relationship buildRelationship(AAIResourceUri uri) { + protected Relationship buildRelationship(AAIResourceUri uri) { return buildRelationship(uri, Optional.empty()); } - private Relationship buildRelationship(AAIResourceUri uri, AAIEdgeLabel label) { + protected Relationship buildRelationship(AAIResourceUri uri, AAIEdgeLabel label) { return buildRelationship(uri, Optional.of(label)); } - private Relationship buildRelationship(AAIResourceUri uri, Optional label) { + protected Relationship buildRelationship(AAIResourceUri uri, Optional label) { final Relationship result = new Relationship(); result.setRelatedLink(uri.build().toString()); if (label.isPresent()) { - result.setRelationshipLabel(label.toString()); + result.setRelationshipLabel(label.get().toString()); } return result; } -- cgit 1.2.3-korg