From 9bd821d6a2b49dacb7286d58f11d5cd1cc7e0aa2 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 2 Mar 2020 16:17:36 -0500 Subject: Fix path issues A&AI tenant query is prepending the target entity with "/", but it should not. Fixed it. Modified A&AI and SO actors to get path prefixes from parameters. Fixed a bug in an A&AI simulator response (extra "}" at the end. Issue-ID: POLICY-2349 Signed-off-by: Jim Hahn Change-Id: I71f8b1e5fb8a4bd29b4f616a7757d366c7d58127 --- .../src/main/java/org/onap/policy/simulators/AaiSimulatorJaxRs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models-interactions/model-simulators') diff --git a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/AaiSimulatorJaxRs.java b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/AaiSimulatorJaxRs.java index 3b1772342..8c96ee533 100644 --- a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/AaiSimulatorJaxRs.java +++ b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/AaiSimulatorJaxRs.java @@ -73,7 +73,7 @@ public class AaiSimulatorJaxRs { return "{\"result-data\":[{\"resource-type\": \"vserver\",\"resource-link\":\"/aai/v15/" + "cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants" + "/tenant/3f2aaef74ecb4b19b35e26d0849fe9a2/vservers/vserver/" - + "6c3b3714-e36c-45af-9f16-7d3a73d99497\"}]}}"; + + "6c3b3714-e36c-45af-9f16-7d3a73d99497\"}]}"; } else { return null; } -- cgit 1.2.3-korg