diff options
author | 2023-04-12 12:57:52 +0000 | |
---|---|---|
committer | 2023-04-12 12:57:52 +0000 | |
commit | fabc72d633468d2f94346896bc8b09687248731e (patch) | |
tree | d86d0cbdc857193bd01c63dd0b9d5faedf8d8b30 | |
parent | b99ae09807a2893e0678d2209b4ee08194f95fe8 (diff) | |
parent | becc9cee3a19f4c3d34d3cd6c564754c7c70861c (diff) |
Merge "Expose endpoint to accept bulk request"
-rw-r--r-- | dmi-plugin-stub/files/batchResponse.json | 40 | ||||
-rw-r--r-- | dmi-plugin-stub/files/moduleResourcesResponse.json (renamed from dmi-plugin-perf-stub/files/moduleResourcesResponse.json) | 0 | ||||
-rw-r--r-- | dmi-plugin-stub/files/moduleResponse.json (renamed from dmi-plugin-perf-stub/files/moduleResponse.json) | 0 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/batchCmHandles.json | 13 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/module.json (renamed from dmi-plugin-perf-stub/mappings/module.json) | 0 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/moduleResources.json (renamed from dmi-plugin-perf-stub/mappings/moduleResources.json) | 0 | ||||
-rwxr-xr-x | dmi-plugin-stub/start.sh (renamed from dmi-plugin-perf-stub/start.sh) | 0 | ||||
-rw-r--r-- | docker-compose/docker-compose.yml | 4 |
8 files changed, 55 insertions, 2 deletions
diff --git a/dmi-plugin-stub/files/batchResponse.json b/dmi-plugin-stub/files/batchResponse.json new file mode 100644 index 000000000..b0615df94 --- /dev/null +++ b/dmi-plugin-stub/files/batchResponse.json @@ -0,0 +1,40 @@ +{ + "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.BulkResponseEvent", + "eventSchema": "urn:cps:org.onap.cps.ncmp.event.model.BulkResponseEvent", + "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-perf-stub/files/moduleResourcesResponse.json b/dmi-plugin-stub/files/moduleResourcesResponse.json index 69eb9da92..69eb9da92 100644 --- a/dmi-plugin-perf-stub/files/moduleResourcesResponse.json +++ b/dmi-plugin-stub/files/moduleResourcesResponse.json diff --git a/dmi-plugin-perf-stub/files/moduleResponse.json b/dmi-plugin-stub/files/moduleResponse.json index ef49eb488..ef49eb488 100644 --- a/dmi-plugin-perf-stub/files/moduleResponse.json +++ b/dmi-plugin-stub/files/moduleResponse.json diff --git a/dmi-plugin-stub/mappings/batchCmHandles.json b/dmi-plugin-stub/mappings/batchCmHandles.json new file mode 100644 index 000000000..2018516b4 --- /dev/null +++ b/dmi-plugin-stub/mappings/batchCmHandles.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPattern": "/dmi/v1/ch/batch/data/ds/.*" + }, + "response": { + "status": 200, + "bodyFileName": "batchResponse.json", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/dmi-plugin-perf-stub/mappings/module.json b/dmi-plugin-stub/mappings/module.json index a1b35ba13..a1b35ba13 100644 --- a/dmi-plugin-perf-stub/mappings/module.json +++ b/dmi-plugin-stub/mappings/module.json diff --git a/dmi-plugin-perf-stub/mappings/moduleResources.json b/dmi-plugin-stub/mappings/moduleResources.json index 4efb9b088..4efb9b088 100644 --- a/dmi-plugin-perf-stub/mappings/moduleResources.json +++ b/dmi-plugin-stub/mappings/moduleResources.json diff --git a/dmi-plugin-perf-stub/start.sh b/dmi-plugin-stub/start.sh index ffa8ce882..ffa8ce882 100755 --- a/dmi-plugin-perf-stub/start.sh +++ b/dmi-plugin-stub/start.sh diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index 5c785873d..720761d49 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -112,8 +112,8 @@ services: ports: - ${DMI_PORT:-8783}:8080 volumes: - - ../dmi-plugin-perf-stub/mappings:/home/wiremock/mappings - - ../dmi-plugin-perf-stub/files:/home/wiremock/__files + - ../dmi-plugin-stub/mappings:/home/wiremock/mappings + - ../dmi-plugin-stub/files:/home/wiremock/__files restart: unless-stopped profiles: - dmi-stub |