summaryrefslogtreecommitdiffstats
path: root/dmi-plugin-perf-stub/mappings
diff options
context:
space:
mode:
authorkissand <andras.zoltan.kiss@est.tech>2022-09-16 09:57:52 +0200
committerAndras Zoltan Kiss <andras.zoltan.kiss@est.tech>2022-09-20 13:26:00 +0000
commiteb56e918aa4ad92e2962e916a26e2d533bbedb30 (patch)
tree4d6c118bcc7c2cadada30f6300407f425b684804 /dmi-plugin-perf-stub/mappings
parentfd1572fc8e792d95f99cda1a79de47dc3b7e47a1 (diff)
Create dmi-plugin performance stub
Issue-ID: CPS-1270 Change-Id: I0252a693a5209434fa2a2ada83d404ee658b5a48 Signed-off-by: kissand <andras.zoltan.kiss@est.tech>
Diffstat (limited to 'dmi-plugin-perf-stub/mappings')
-rw-r--r--dmi-plugin-perf-stub/mappings/module.json13
-rw-r--r--dmi-plugin-perf-stub/mappings/moduleResources.json13
2 files changed, 26 insertions, 0 deletions
diff --git a/dmi-plugin-perf-stub/mappings/module.json b/dmi-plugin-perf-stub/mappings/module.json
new file mode 100644
index 0000000000..a1b35ba132
--- /dev/null
+++ b/dmi-plugin-perf-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-perf-stub/mappings/moduleResources.json b/dmi-plugin-perf-stub/mappings/moduleResources.json
new file mode 100644
index 0000000000..4efb9b0886
--- /dev/null
+++ b/dmi-plugin-perf-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"
+ }
+ }
+}