From 125e445b650897d75967ed8d3710098a7702cf04 Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Fri, 15 Oct 2021 18:02:21 +0100 Subject: Improve AAI simulator by configuring responses Change-Id: Ide7f572dac91110a5d560fc388dd87246c9d195b Issue-ID: POLICY-3709 Signed-off-by: a.sreekumar --- .../org/onap/policy/simulators/aai/AaiGetPnfResponse.json | 12 ------------ .../resources/org/onap/policy/simulators/aai/demo-pnf.json | 12 ++++++++++++ .../org/onap/policy/simulators/aai/invalid-cq.json | 14 ++++++++++++++ .../org/onap/policy/simulators/aai/invalid-pnf.json | 14 ++++++++++++++ .../org/onap/policy/simulators/aai/invalid-vnf.json | 14 ++++++++++++++ 5 files changed, 54 insertions(+), 12 deletions(-) delete mode 100644 models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/AaiGetPnfResponse.json create mode 100644 models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/demo-pnf.json create mode 100644 models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-cq.json create mode 100644 models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-pnf.json create mode 100644 models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-vnf.json (limited to 'models-interactions/model-simulators/src/main/resources') diff --git a/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/AaiGetPnfResponse.json b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/AaiGetPnfResponse.json deleted file mode 100644 index ce8eb75a7..000000000 --- a/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/AaiGetPnfResponse.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "equip-vendor":"Vendor-A", - "ipaddress-v4-oam":"10.10.10.10", - "in-maint":false, - "pnf-ipv4-address":"3.3.3.3", - "resource-version":"1570746989505", - "nf-role":"ToR DC101", - "equip-type":"Router", - "equip-model":"model-123456", - "frame-id":"3", - "pnf-name":"demo-pnf" -} diff --git a/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/demo-pnf.json b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/demo-pnf.json new file mode 100644 index 000000000..ce8eb75a7 --- /dev/null +++ b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/demo-pnf.json @@ -0,0 +1,12 @@ +{ + "equip-vendor":"Vendor-A", + "ipaddress-v4-oam":"10.10.10.10", + "in-maint":false, + "pnf-ipv4-address":"3.3.3.3", + "resource-version":"1570746989505", + "nf-role":"ToR DC101", + "equip-type":"Router", + "equip-model":"model-123456", + "frame-id":"3", + "pnf-name":"demo-pnf" +} diff --git a/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-cq.json b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-cq.json new file mode 100644 index 000000000..b06e534ce --- /dev/null +++ b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-cq.json @@ -0,0 +1,14 @@ +{ + "requestError": { + "serviceException": { + "messageId": "SVC3001", + "text": "Resource not found for %1 using id %2 (msg=%3) (ec=%4)", + "variables": [ + "GET", + "v16/query", + "Node Not Found. Start URI returned no vertexes, please check the start URI", + "ERR.5.4.6148" + ] + } + } +} \ No newline at end of file diff --git a/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-pnf.json b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-pnf.json new file mode 100644 index 000000000..e3c981c21 --- /dev/null +++ b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-pnf.json @@ -0,0 +1,14 @@ +{ + "requestError": { + "serviceException": { + "messageId": "SVC3001", + "text": "Resource not found for %1 using id %2 (msg=%3) (ec=%4)", + "variables": [ + "GET", + "network/pnfs/pnf", + "Node Not Found:No Node of type pnf found at: network/pnfs/pnf", + "ERR.5.4.6114" + ] + } + } +} \ No newline at end of file diff --git a/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-vnf.json b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-vnf.json new file mode 100644 index 000000000..e636c6f96 --- /dev/null +++ b/models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/aai/invalid-vnf.json @@ -0,0 +1,14 @@ +{ + "requestError": { + "serviceException": { + "messageId": "SVC3001", + "text": "Resource not found for %1 using id %2 (msg=%3) (ec=%4)", + "variables": [ + "GET", + "network/generic-vnfs/generic-vnf", + "Node Not Found:No Node of type generic-vnf found at: network/generic-vnfs/generic-vnf", + "ERR.5.4.6114" + ] + } + } +} \ No newline at end of file -- cgit