Add passthrough read operation (synchronous) to DMI stub 67/137367/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Wed, 29 Nov 2023 18:51:16 +0000 (18:51 +0000)
committerDaniel Hanrahan <daniel.hanrahan@est.tech>
Mon, 26 Feb 2024 10:38:57 +0000 (10:38 +0000)
commit5543875f9f3a6a772a09c17f7f0b1a3939c78292
tree6e0eb14a73a867cc0251dca671fa5b94f7e796d3
parenta167ab14ed2fdaeded5e1a7a9a22614353f47269
Add passthrough read operation (synchronous) to DMI stub

- Implement DMI stub endpoint needed for for NCMP passthrough data
  operation, returning a fixed JSON response and adding delay.
    POST /dmi/v1/ch/{cmHandleId}/data/ds/{datastoreName}
- Add script to measure average overhead for many requests

Test results indicate the NCMP adds up to 150ms per request.

Issue-ID: CPS-2099
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2aba8285f8a52f3570fc1699a8687caffa9d9c77
dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java
test-tools/perf-test-ncmp-passthrough-read.sh [new file with mode: 0755]