aboutsummaryrefslogtreecommitdiffstats
path: root/dmi-plugin-demo-and-csit-stub/dmi-plugin-demo-and-csit-stub-service/src/main/resources
AgeCommit message (Collapse)AuthorFilesLines
2024-08-06Remove dmi stub from CPS repoegernug12-333/+0
DMI Stub has been relocated to the DMI Plugin repo. Removing from this repo Issue-ID: CPS-2145 Change-Id: I957e89231d537985ff1b42cee611a6dac6ef93c4 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-07-16Separate dmi delay for passthrough operationshalil.cakal1-1/+2
- set dmi delay to 670 ms for passthrough write (CUD) - set dmi delay to 300 ms for passthrough read Issue-ID:CPS-2285 Change-Id: I7a4294d3ed04c89aeb5988a9975516135317af12 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-03-06Advance DMI Stub to change module set (tags) used by cm handlesourabh_sourabh12-51/+24
- Renamed json response file name based on module set tag into Dmi plugin stub. - Added in memory map to hold the information of cm handle per module set tag int dmi plugin stub. - Exposed a REST api to perform diff. operations on memory map to replicate dmi plugin stub. Issue-ID: CPS-2079 Change-Id: I7818fa4c47be9a02068976fd116a1dbc36b134ef Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-02-28Log all incoming HTTP requests to NCMP with Authorization Headersourabh_sourabh1-0/+8
- Enabled configuration to log NCMP request header and payload. - Enabled the DEBUG level log into application.yml. Issue-ID: CPS-2131 Change-Id: I458b1148894b8f460b013f0fa93032231ac47938 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-02-26Merge "Limit max connections in DMI stub"Priyank Maheshwari1-0/+3
2024-02-23Limit max connections in DMI stubdanielhanrahan1-1/+4
DMI plugin in a real deployment could only handle a limited number of parallel connections. From CPS-1968 of testing in a realistic deployment, 25 max connections is chosen as a reasonable default. This allows us to simulate rate limiting with DMI stub. Functionality has been verified by changing the max connections and registering 5000 CM-handles. It takes: - 120 seconds with 8 max DMI connections - 80 seconds with 16 max DMI connections Issue-ID: CPS-2117 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I6aaf43f721d6f2e6dcff45929fc9699e26980cdb
2024-02-23Add health check endpoint to DMI stubdanielhanrahan1-1/+7
DMI stub health check endpoint /actuator/health is needed for NCMP to set trust level. Can be verified using: curl "http://localhost:8784/actuator/health" which reports: {"status":"UP"} Issue-ID: CPS-2118 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I4477a389a585280d36028b72d280028705e0f8f2
2024-02-12Add a configurable delay to the DMI stubJvD_Ericsson1-0/+5
Added realistic default delay to application.yaml Added realistic default delay to docker-compose.yml Issue-ID: CPS-2053 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I756774e9538926aa341f1338fcb6882951ce3e69
2024-02-06moduleSetTag and cmhandle upgrade functionalities fixsourabh_sourabh6-0/+72
- Insert only unmapped yang resources - In case of removed module call dmi plugin service to get modules. Issue-ID: CPS-2027 Change-Id: Ic1903c20169a913c835a3eee909357daec45f51e Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-01-11Improve dmi plugin csit stubsourabh_sourabh4-3/+53
- Modified dmi plugin stub to return diff. modules based on cm handle id Issue-ID: CPS-2006 Change-Id: I61a0fd11b8f41ceb69dac296ad3570b91137cdcd Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-12-13Introduce Schema Set upgrade methodsourabh_sourabh1-9/+9
- Incl. integration test - Prod code is changed to use new method that update yand module. - updated module resource to return multiple modules. Issue-ID: CPS-1806 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I751d9393ce78a3be9daeaff6d0252738c02115e0 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-07-13Introduced a dmi rest demo csit stubsourabh_sourabh4-0/+215
- Introduced a new response code 0 for data operational success response. - Created a new dmi plugin rest stub for demo and performance testing. - Removed dmi plugin stub of wiremocked. - Updated parent pom to add newely created demo stub. - updated docker compose to add neww demo stub with profile for CSIT, demo and performance testing. - Removed target id list from unsupported operation/datastore from REST response. Issue-ID: CPS-1560 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Ie8198366df820e7d4b8b6e8a85ff9cdb0fce7435 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>