diff options
author | Hockla, Ali (ah999m) <ah999m@att.com> | 2017-11-08 17:27:16 -0600 |
---|---|---|
committer | Hockla, Ali (ah999m) <ah999m@att.com> | 2017-11-08 17:33:31 -0600 |
commit | 48c62738bf4c5653e36c6ea1e8e33e649b8526fc (patch) | |
tree | b80c35c608012e842861ef14cb9034a86406ac40 /controlloop/common/simulators/src/test/java | |
parent | 9cbbe8c6abd790ab84ff47214db1f63bb5c2e1d7 (diff) |
Fix SO Request body
- Renamed modelNameVersionId to modelVersionId in SOModelInfo
- Removed requestID from SO Request body
- As a result of this, an SOResponseWrapper was needed in order to
attach the control loop event requestId to use in the SOResponse
rule in drl (the requestID that is returned in the SO response
is a newly generated requestId with no relation to the Policy
control loop event requestId as per Arthur)
- Updated drl to reflect the above mentioned change
- Updated simulator and junits to reflect changes
- Added an additional null httpResponse check/logger statement in SOManager and RestManager
Issue-ID: POLICY-438
Change-Id: I5f414ba69b60b5565cca9073b47f4c4835e5abbf
Signed-off-by: Hockla, Ali (ah999m) <ah999m@att.com>
Diffstat (limited to 'controlloop/common/simulators/src/test/java')
-rw-r--r-- | controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java index 090236c40..3e5af3891 100644 --- a/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java +++ b/controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java @@ -86,7 +86,7 @@ public class SoSimulatorTest { // request.requestDetails.modelInfo.modelType = "vfModule"; request.requestDetails.modelInfo.modelInvariantId = "f32568ec-2f1c-458a-864b-0593d53d141a"; - request.requestDetails.modelInfo.modelNameVersionId = "69615025-879d-4f0d-afe3-b7d1a7eeed1f"; + request.requestDetails.modelInfo.modelVersionId = "69615025-879d-4f0d-afe3-b7d1a7eeed1f"; request.requestDetails.modelInfo.modelName = "C15ce9e1E9144c8fB8bb..dnsscaling..module-1"; request.requestDetails.modelInfo.modelVersion = "1.0"; // @@ -111,7 +111,7 @@ public class SoSimulatorTest { relatedInstanceListElement1.relatedInstance.modelInfo.modelType = "service"; relatedInstanceListElement1.relatedInstance.modelInfo.modelInvariantId = "4fcbc1c0-7793-46d8-8aa1-fa1c2ed9ec7b"; - relatedInstanceListElement1.relatedInstance.modelInfo.modelNameVersionId = + relatedInstanceListElement1.relatedInstance.modelInfo.modelVersionId = "5c996219-b2e2-4c76-9b43-7e8672a33c1d"; relatedInstanceListElement1.relatedInstance.modelInfo.modelName = "8330e932-2a23-4943-8606"; relatedInstanceListElement1.relatedInstance.modelInfo.modelVersion = "1.0"; @@ -121,7 +121,7 @@ public class SoSimulatorTest { relatedInstanceListElement2.relatedInstance.modelInfo.modelType = "vnf"; relatedInstanceListElement2.relatedInstance.modelInfo.modelInvariantId = "033a32ed-aa65-4764-a736-36f2942f1aa0"; - relatedInstanceListElement2.relatedInstance.modelInfo.modelNameVersionId = + relatedInstanceListElement2.relatedInstance.modelInfo.modelVersionId = "d4d072dc-4e21-4a03-9524-628985819a8e"; relatedInstanceListElement2.relatedInstance.modelInfo.modelName = "c15ce9e1-e914-4c8f-b8bb"; relatedInstanceListElement2.relatedInstance.modelInfo.modelVersion = "1"; |