aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-09-04[Cps Path Parser] Move NCMP-specific logic to NCMPdanielhanrahan6-27/+44
Some special case code to disable ancestor-axis was added for CM-handle search (see CPS-2308). It is now relocated to NCMP. This makes other needed improvements of Cps Path Parser easier. - Move special case code into NCMP - Add integration test to ensure CM-handle search works Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I168d6156be559166f115aa42e21cd987d98b7d41
2024-09-04Merge "Support alternate id for CPS-E05 GetCmHandleDetailsById"Daniel Hanrahan5-18/+25
2024-09-04Merge "[Cps Path Parser] Refactoring leaf conditions"Priyank Maheshwari4-55/+38
2024-09-04Merge "K6 Performance Graph fails frequently"Daniel Hanrahan1-0/+1
2024-09-04K6 Performance Graph fails frequentlysourabh_sourabh1-0/+1
- Overrides initial processing delay of every new module set tag for DMI plugin stub from 2 min (default) to 0 as a temp. solution. Issue-ID: CPS-2395 Change-Id: Ic875262314406ec55457e31a69c00d55293c1b74 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-04[Cps Path Parser] Remove unneeded validation in grammardanielhanrahan2-17/+2
The invalid prefix/postfix is not needed; existing tests show that PathParsingException is thrown in for invalid paths. Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I202f0ca0bc5eb768fc3af711180405882dafc22d
2024-09-04Merge "Support Alternate-id for CPS-E05 module search"Daniel Hanrahan4-11/+17
2024-09-04Merge "Remove event notifications when removing trust level entries"Priyank Maheshwari3-24/+7
2024-09-04Support Alternate-id for CPS-E05 module searchseanbeirne4-11/+17
Issue-ID: CPS-2370 Change-Id: I0ca3a1df232ad9fd9f76695cd6ea21d36919130d Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-09-04Merge "Support Alternate-id for CPS-E05 module definition"Priyank Maheshwari5-24/+40
2024-09-03Support alternate id for CPS-E05 GetCmHandleDetailsByIdmpriyank5-18/+25
- added support for alternate id when retreiving cmhandle details by id - Note : The performance for alternate id fetching will be taken care as part of a separate story. Issue-ID: CPS-2385 Change-Id: I019b85d128e4b0a1f1d61623c92e1a2381c406c0 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-09-03Merge "Remove unused and duplicate dependencies in poms"Sourabh Sourabh2-17/+1
2024-09-03Merge "Fix huge logs produced when errors occur in k6"Daniel Hanrahan1-1/+3
2024-09-02Merge "[k6] Report failure rate for all tests in a single plot"Priyank Maheshwari2-16/+2
2024-09-02Remove event notifications when removing trust level entrieshalil.cakal3-24/+7
Issue-ID: CPS-2315 Change-Id: I4f0cb7c2066e0ab9c62ac9cdb0fc39ce7de7791b Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-09-02Support Alternate-id for CPS-E05 module definitionseanbeirne5-24/+40
Issue-ID: CPS-2379 Change-Id: Idd180c5792575522ceaaa094b94c8f5b36790186 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-09-02Remove unused and duplicate dependencies in pomsdanielhanrahan2-17/+1
- remove duplicate dependencies from cps-service pom - remove unused spring security dependency from cps-application pom Issue-ID: CPS-2390 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Id49705e8790df7d7e98d80fa0ccb639eb4f1995f
2024-09-02Policy Executor: pass Change request as Objectsourabh_sourabh3-14/+35
- Added unit test for new exception handling Issue-ID: CPS-2335 Change-Id: I5517c91edf505932d0a94165c19420922b3f5f51 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-09-02Merge "Support alternate id interface for CPS-E-05 - publicProperties"Daniel Hanrahan6-26/+43
2024-08-31[Cps Path Parser] Refactoring leaf conditionsdanielhanrahan4-55/+38
Instead of DataLeaf and ComparativeOperators classes, we more simply have LeafConditions class with all info. Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I8fd18bb56b8ed9d26a3f9d36f487d00a9274c8bc
2024-08-30[k6] Report failure rate for all tests in a single plotdanielhanrahan2-16/+2
Instead of separate plots of test failures for each test case, we have one single plot showing failures. Issue-ID: CPS-2347 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ie79b75c34903a7df2037474b3536d4867c1a61e0
2024-08-30Merge "Support 2 CPS instances in Prometheus/Grafana"Priyank Maheshwari8-8/+3642
2024-08-30[k6] Fix k6 tests after DMI stub changesdanielhanrahan2-6/+6
A change to DMI stub has broken k6 module search due to module rename and increased registration time. - increase setupTimeout by 2 minutes to factor in DMI startup delay - module search uses module common to all module set tags - only record times for searches returning number of CM-handles Issue-ID: CPS-2353 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I9067dc73015cfb475cdce1e7a3cc2d5401449caf
2024-08-30Fix huge logs produced when errors occur in k6sourabh_sourabh1-1/+3
- Changed k6 config to ignore all the error logs. Issue-ID: CPS-2344 Change-Id: Iad7be43ae5bb909518f9f7d8e386a97c96c349e3 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-08-30Support alternate id interface for CPS-E-05 - publicPropertiesmpriyank6-26/+43
- added alternate id support for the existing endpoint - Incorporated previous comments on the indendation - Added new component cmHandleReferenceInPath in openapi docs to depict the correct example Issue-ID: CPS-2378 Change-Id: I63e752fbb6cb0bde49d1ced53f063743d904d74e Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-08-29Merge "[k6] Exclude timings when error occur"Priyank Maheshwari2-28/+37
2024-08-29Correctly report trust level if DMI is downdanielhanrahan7-64/+35
Current trust level should factor in both CM-handle and DMI trust levels (effective trust level). Issue-ID: CPS-2375 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ib531633a0e79af2bf9cf73d2b0b02d7a58777458
2024-08-29Merge "Invoke Policy Executor and handle not-allowed response"Sourabh Sourabh23-81/+542
2024-08-29Invoke Policy Executor and handle not-allowed responseToineSiebelink23-81/+542
- Execute Policy Executor REST request - Act (and log) on response from Policy Executor - Add dispatcher(mock) in integration test FWK - Add integration test for allow/non allowed and no authorization use cases - disabled PolicyExecution feature by default (only enabled for testware) Issue-ID: CPS-2247 Change-Id: I111ba9ba89cc91649b63b20f88414aa33721dbeb Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-08-27[k6] Exclude timings when error occurdanielhanrahan2-28/+37
If an error occurs during k6 test, e.g. tcp connection refused, the timing of failed response is included in the average response time. This can lead to incorrect plots when errors occur, e.g. operations appear to be faster when really the operations are failing. - use custom Trend metrics for all measurements - only log results when operations return expected response codes Issue-ID: CPS-2345 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Iab1db5e5ca9530f33da239187348cabcd0605648
2024-08-27Merge "Plot request failures for each k6 test"Daniel Hanrahan3-37/+52
2024-08-27Merge "Cleanup unused yang models from CPS core"Daniel Hanrahan6-380/+0
2024-08-27Support for alternate-id for CPS-E-05 i/fmpriyank6-17/+27
- Added support for alternateId for CREATE , UPDATE, DELETE and PATCH operation for CPS-E05 passthrough running datastores Issue-ID: CPS-2362 Change-Id: Ie4db1d84dba795e9650949cab3374e0b2570beba Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-08-27Support for alternate-id CPS-E05 composite statempriyank5-17/+30
- Added support for alternate id for the composite state API for CPS-E05#15 Issue-ID: CPS-2377 Change-Id: I1af41efb8cec762be68250cae7c1e98fbc61a4f5 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-08-27Merge "Remove trust level from cache when cm handles deleted"Daniel Hanrahan11-81/+157
2024-08-27Merge "[k6] Always pull latest cps and dmi stub images"Priyank Maheshwari1-1/+7
2024-08-27Merge "Install dependencies for k6 and csit"Priyank Maheshwari5-7/+92
2024-08-27Cleanup unused yang models from CPS coredanielhanrahan6-380/+0
Yang models and generated CSVs are no longer used in CPS liquibase, rather Inventory model loader does this. Issue-ID: CPS-2382 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I0944c3778716450a88355c669ac806fd07b85193
2024-08-27Install dependencies for k6 and csitdanielhanrahan5-7/+92
- install docker-compose in csit and k6 tests - install k6 with kafka extension in k6 tests Issue-ID: CPS-2376 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I8a67813a96dc7f321d4abe0aa91e236fd1060f3e
2024-08-26Policy Executor, refactor(move) common http classesToineSiebelink19-54/+54
Issue-ID: CPS-2343 Change-Id: Ia9655364462826a794a2af78214311cb38c40de9 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-08-26Policy Executor and DMI WebClient configurationsToineSiebelink18-185/+449
- separated dmi and policy executor http client configuration Issue-ID: CPS-2324 Change-Id: Ib4e757da188673e163abe6078dfd6ddae447eaab Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-08-26Plot request failures for each k6 testhalil.cakal3-37/+52
- add request failures to plot for each tests - simplify setup and teardown function Issue-ID: CPS-2347 Change-Id: I81226518af7bda12b0489ec46de08e27c96cc16d Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-08-26[k6] Always pull latest cps and dmi stub imagesdanielhanrahan1-1/+7
Presently, k6 tests are using old cached DMI stub version in the Jenkins job. This commit ensures latest images are pulled by cleaning old images if a variable is set. Issue-ID: CPS-2368 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I66a749c7cdeb7daee06a00b06dff50ead6854f28
2024-08-26Remove trust level from cache when cm handles deletedhalil.cakal11-81/+157
- handle removal of device trust levels from the cache when cm handles deleted - handle initial dmi registration inside trust level manager Issue-ID: CPS-2315 Change-Id: I605ed78f164d7534069de8352dc3b0a81a4ce22c Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-08-23Support 2 CPS instances in Prometheus/Grafanadanielhanrahan8-8/+3642
- Specify both cps-and-ncmp instances in Prometheus config - Add default JVM Micrometer dashboard to Grafana, taken from https://grafana.com/grafana/dashboards/4701-jvm-micrometer/ Issue-ID: CPS-2314 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I24a42b8b4771a7d9341e920fbd85fa72e1a3518e
2024-08-21Bump CPS to 3.5.3-SNAPSHOTdanielhanrahan23-23/+52
- bump CPS to 3.5.3-SNAPSHOT - updated the release notes and prepared for the next release Issue-ID: CPS-2374 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I60ea5f5864f5818d1ed5078e375cf07b8d713dde
2024-08-21container yaml for 3.5.2danielhanrahan1-0/+8
Issue-ID: CPS-2374 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Idb3ea5abce2a9bb56fa44408688a4bb87106d14b
2024-08-21maven stage yaml for 3.5.2danielhanrahan1-0/+4
Issue-ID: CPS-2374 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I1bc1458c91ce360c1f770790ad379821e32ce665
2024-08-21Update openapi for 3.5.2danielhanrahan6-29/+64
- update info.version to 3.5.2 for openapi yamls - update read-the-docs copies of openapi docs Issue-ID: CPS-2374 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I7f726f610fe8eff43e281edfe2fc6d9b08f5fc15
2024-08-21Merge "Release notes for moduleSetTag perf improvement"Priyank Maheshwari1-0/+1