Remove wrapper from WorkflowResponse 27/46627/2
authorArthur Martella <am153x@att.com>
Tue, 8 May 2018 15:11:47 +0000 (11:11 -0400)
committerArthur Martella <am153x@att.com>
Tue, 8 May 2018 21:05:13 +0000 (17:05 -0400)
commit64dfdf283bc34c30ead91bdaecbf06661b880ced
treebaaab96ee58e14558310aeb7b97cd3af112a20ad
parentf2d0a4f94fb3d4ea44d2019271c28db6cdacfb79
Remove wrapper from WorkflowResponse

When the workflow response succeeds, the requestReferences object is being wrapped by "WorkflowResponse": {"response": {... and all the other fields from the WorkflowResponse object are being included as well.  Adding a WorkflowResponseSerializer didn't seem to work since the root node was still included and there was no ObjectMapper in which to set WrapRootValue to false.  So this is the next best thing.

Patch 2 fixes most of the broken unit tests.

Change-Id: Ifa5bd02e70b23f41c9042ac207848c8ade77313a
Issue-ID: SO-586
Signed-off-by: Arthur Martella <am153x@att.com>
bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/workflow/service/WorkflowContextHolder.java
bpmn/MSOCommonBPMN/src/test/java/org/openecomp/mso/bpmn/common/BPMNUtil.java
bpmn/MSOCommonBPMN/src/test/java/org/openecomp/mso/bpmn/common/WorkflowContextHolderTest.java
bpmn/MSOCommonBPMN/src/test/java/org/openecomp/mso/bpmn/common/WorkflowTest.java