diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2023-07-03 13:03:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-07-03 13:03:51 +0000 |
commit | ddb8fce4f4300bb7cd1f477d846269d93f5036ae (patch) | |
tree | da5aafec6abd74e6ec94e5e420e86f6da7a17bc5 /dmi-plugin-stub | |
parent | 5388f2299156f9a85202c746b790e8e2434eb2c1 (diff) | |
parent | 8b03b9a2899d1ab55706839562733c854678bf7f (diff) |
Merge "Modify dmi plugin stub mapping of data operation"
Diffstat (limited to 'dmi-plugin-stub')
-rw-r--r-- | dmi-plugin-stub/files/batchResponse.json | 40 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/batchCmHandles.json | 13 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/dataOperationRequest.json | 9 |
3 files changed, 9 insertions, 53 deletions
diff --git a/dmi-plugin-stub/files/batchResponse.json b/dmi-plugin-stub/files/batchResponse.json deleted file mode 100644 index 9181b64f21..0000000000 --- a/dmi-plugin-stub/files/batchResponse.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "eventId": "4cb32729-85e3-44d1-aa6e-c923b9b059a5", - "eventCorrelationId": "68f15800-8ed4-4bae-9e53-27a9e03e1911", - "eventTime": "2023-03-28T14:29:23.876+0000", - "eventType": "org.onap.cps.ncmp.event.model.BatchResponseEvent", - "eventSchema": "urn:cps:org.onap.cps.ncmp.event.model.BatchResponseEvent", - "eventSchemaVersion": "v1", - "event": { - "payload": [ - { - "cmHandle": "CmHandle5", - "additionalProperties": [ - { - "Shape": "cube", - "Size": "small", - "Color": "yellow" - } - ], - "state": { - "cmHandleState": "READY", - "lastUpdateTime": "2023-04-03T20:03:19.832+0000" - } - }, - { - "cmHandle": "CmHandle6", - "additionalProperties": [ - { - "Shape": "cube", - "Size": "small", - "Color": "yellow" - } - ], - "state": { - "cmHandleState": "READY", - "lastUpdateTime": "2023-04-02T20:01:19.832+0000" - } - } - ] - } -}
\ No newline at end of file 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 + } +} |