summaryrefslogtreecommitdiffstats
path: root/dmi-plugin-demo-and-csit-stub
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2024-05-20 08:46:02 +0000
committerGerrit Code Review <gerrit@onap.org>2024-05-20 08:46:02 +0000
commitd17b32a61d54a07c8ee8b31235e48d127553df96 (patch)
tree907f5cf6062a590c7986543c52a2db070b242d0b /dmi-plugin-demo-and-csit-stub
parentfe8fe51f53871c73affe6e9dd7b197cd80050bf5 (diff)
parent074b38771081c22aa9b36def0bcfffe7ba6847e5 (diff)
Merge "CPS-2187 - #6 Add module Set Tag to ncmp (single cm handle) data request to dmi"
Diffstat (limited to 'dmi-plugin-demo-and-csit-stub')
-rw-r--r--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.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/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 b/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
index f154be6dae..08bcee732f 100644
--- a/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
+++ b/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
@@ -205,9 +205,12 @@ public class DmiRestStubController {
@RequestParam(value = "resourceIdentifier") final String resourceIdentifier,
@RequestParam(value = "options", required = false) final String options,
@RequestParam(value = "topic", required = false) final String topic,
+ @RequestParam(value = "moduleSetTag", required = false) final String moduleSetTag,
@RequestHeader(value = "Authorization", required = false) final String authorization) {
log.info("DMI AUTH HEADER: {}", authorization);
delay(dataForCmHandleDelayMs);
+ log.info("Module set tag received: {}", moduleSetTag);
+
final String sampleJson = ResourceFileReaderUtil.getResourceFileContent(applicationContext.getResource(
ResourceLoader.CLASSPATH_URL_PREFIX + "data/operational/ietf-network-topology-sample-rfc8345.json"));
return ResponseEntity.ok(sampleJson);