summaryrefslogtreecommitdiffstats
path: root/dmi-plugin-stub/mappings
diff options
context:
space:
mode:
authorleventecsanyi <levente.csanyi@est.tech>2023-04-05 12:57:14 +0200
committerleventecsanyi <levente.csanyi@est.tech>2023-04-05 12:57:35 +0200
commitbecc9cee3a19f4c3d34d3cd6c564754c7c70861c (patch)
treeb52e4ea8d77abc912d12467309094fe518c99a04 /dmi-plugin-stub/mappings
parentdd3643411ed8bb581a3147e07606919c3b1675d3 (diff)
Expose endpoint to accept bulk request
- added wiremock mapping for testing/demo Issue-ID: CPS-1555 Change-Id: I82af6c43e80a346efcd84aae8945572aa37a6875 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Diffstat (limited to 'dmi-plugin-stub/mappings')
-rw-r--r--dmi-plugin-stub/mappings/batchCmHandles.json13
-rw-r--r--dmi-plugin-stub/mappings/module.json13
-rw-r--r--dmi-plugin-stub/mappings/moduleResources.json13
3 files changed, 39 insertions, 0 deletions
diff --git a/dmi-plugin-stub/mappings/batchCmHandles.json b/dmi-plugin-stub/mappings/batchCmHandles.json
new file mode 100644
index 0000000000..2018516b4c
--- /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-stub/mappings/module.json b/dmi-plugin-stub/mappings/module.json
new file mode 100644
index 0000000000..a1b35ba132
--- /dev/null
+++ b/dmi-plugin-stub/mappings/module.json
@@ -0,0 +1,13 @@
+{
+ "request": {
+ "method": "POST",
+ "urlPattern": "/dmi/v1/ch/.*/modules"
+ },
+ "response": {
+ "status": 200,
+ "bodyFileName": "moduleResponse.json",
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ }
+}
diff --git a/dmi-plugin-stub/mappings/moduleResources.json b/dmi-plugin-stub/mappings/moduleResources.json
new file mode 100644
index 0000000000..4efb9b0886
--- /dev/null
+++ b/dmi-plugin-stub/mappings/moduleResources.json
@@ -0,0 +1,13 @@
+{
+ "request": {
+ "method": "POST",
+ "urlPattern": "/dmi/v1/ch/.*/moduleResources"
+ },
+ "response": {
+ "status": 200,
+ "bodyFileName": "moduleResourcesResponse.json",
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ }
+}