diff options
author | sourabh_sourabh <sourabh.sourabh@est.tech> | 2023-06-30 12:21:09 +0100 |
---|---|---|
committer | Sourabh Sourabh <sourabh.sourabh@est.tech> | 2023-07-03 08:44:52 +0000 |
commit | 8b03b9a2899d1ab55706839562733c854678bf7f (patch) | |
tree | 07ebaaf298d6f1e4fb6007395b4db289f95c0ca6 /dmi-plugin-stub/mappings | |
parent | abc251870a167f28f0e2c802828ecba9bf57e874 (diff) |
Modify dmi plugin stub mapping of data operation
- Modifiying exising dmi stub behaviour to mock onap-dmi plugin to send response HTTP 501.
Issue-ID: CPS-1723
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I5dad5004ce69b29752821afdbb87839befa97cf5
Diffstat (limited to 'dmi-plugin-stub/mappings')
-rw-r--r-- | dmi-plugin-stub/mappings/batchCmHandles.json | 13 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/dataOperationRequest.json | 9 |
2 files changed, 9 insertions, 13 deletions
diff --git a/dmi-plugin-stub/mappings/batchCmHandles.json b/dmi-plugin-stub/mappings/batchCmHandles.json deleted file mode 100644 index 851959bf92..0000000000 --- a/dmi-plugin-stub/mappings/batchCmHandles.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "request": { - "method": "POST", - "urlPattern": "/dmi/v1/data?.*" - }, - "response": { - "status": 200, - "bodyFileName": "batchResponse.json", - "headers": { - "Content-Type": "application/json" - } - } -} diff --git a/dmi-plugin-stub/mappings/dataOperationRequest.json b/dmi-plugin-stub/mappings/dataOperationRequest.json new file mode 100644 index 0000000000..1df7363dd6 --- /dev/null +++ b/dmi-plugin-stub/mappings/dataOperationRequest.json @@ -0,0 +1,9 @@ +{ + "request": { + "method": "POST", + "urlPattern": "/dmi/v1/data?.*" + }, + "response": { + "status": 501 + } +} |