summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-08-05Rename name column in yang resource tableDylanB95EST11-19/+30
- Rename name column in yang_resource table to file_name - Refactor instances where it occures in code and tests - Add new changelog file to rename occurance Issue-ID: CPS-529 Change-Id: I2aff97410bdb041b90d8ceaeff75e562ef8d9238 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-08-05Upgrade Postgres Cps-CoreDylanB95EST2-2/+3
Upgrade postgres version to 14 in accordance with Seccom Issue-ID: CPS-897 Change-Id: I332c88f3c3e1ec3dd55afe31af5714b690b6bd07 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-08-05State Model RTDDylanB95EST1-0/+14
Add Read The Doc documentation for CM-Handle state model Briefly explain all 5 potnetial cm handle states Issue-ID: CPS-1162 Change-Id: Iee52f9c280929337abf4aac2f5c9bbfb1edde30f Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-08-04Document DataStore Sync State(RTD)bmiklos1-0/+10
Added a CM-Handle data sync state description section under Cps-Modelling -> NCMP-Modelling -> Basic Concepts -> Cm Handle Issue-ID: CPS-1164 Change-Id: Ia53a1ccbacda388ec98a3de936af0913edad1c58 Signed-off-by: bmiklos <miklos.baranyak@est.tech>
2022-08-04Merge "Query CM Handles RTD"Joseph Keenan7-52/+299
2022-08-04Query CM Handles RTDlukegleeson7-52/+299
Updates to RTD for CM Handles Querying Removed documented limitation in CPS path which has since been implemeneted Updated dmi-registry file in RTD modeling Issue-ID: CPS-1161 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I19ff09dadb43a46e14844e198278949f059c6e68
2022-08-04LcmEvent state handler refactoringmpriyank9-38/+475
- State handler will now handle new structure of LcmEvent. - We have 3 types of events i.e create, update and delete. - Introduced the LcmEventCreatorHelper to delegate some of the responsibility of event creation based on event type and the state. - New tests and existing refactoring - Code rebased - Refactored name as per group code review - Code rebase with other commits - Used copy constructor for deep copy operation of NcmpServiceCmhandle and CompositeState - UPCOMING : Related user stories to trigger the event publishing using state handler. Issue-ID: CPS-1128 Change-Id: I94b5a87d37d6a174c017ee0aa37cd0f0f74ba084 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-08-02Merge "Enable/Disable Data Sync for Cm Handle"Joseph Keenan20-58/+230
2022-08-02Merge "Incorrect response to {} for cmhandle id-searches"Joseph Keenan2-3/+3
2022-08-02Merge "Query CmHandles using CPS path"Joseph Keenan19-327/+699
2022-08-02Incorrect response to {} for cmhandle id-searcheslukegleeson2-3/+3
An empty body for the CmHandles id-searches api returns an anchor instead of all cm-handles Now returns all childnode ids for the dmi-registry Issue-ID: CPS-1175 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I358970170a4eb7905e9646605f0f373fbcd78945
2022-07-29Merge "Upgrade Liquibase to Version 4.14.0"Joseph Keenan2-18/+2
2022-07-29Merge "LCM events RTD"Joseph Keenan3-1/+246
2022-07-29LCM events RTDemaclee3-1/+246
Issue-ID: CPS-1165 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Ib6743bc73b260b4345a1bedf0de2ef892a6b3c87
2022-07-29Query CmHandles using CPS pathlukegleeson19-327/+699
Added withCpsPath condition parameter Validated to prevent misuse and blocking of querying using private properties Updated OpenAPI with examples and links to documentation Moved methods related to cmHandle querying using cps path from InventoryPersistence to CmHandleQueries Renamed private method deleteSchemaSetAndListElementByCmHandleId to deleteCmHandleByCmHandleId Issue-ID: CPS-977 Change-Id: I83827215b7e58de74f8f62cd0140516d217d93f1 Signed-off-by: lukegleeson <luke.gleeson@est.tech>
2022-07-28Enable/Disable Data Sync for Cm HandleDylanB95EST20-58/+230
-Create API Which will enable/disable data sync enabled flag -Default functionality of module sync watchdog is to set to false -Remove global config param -Will set initial sync state based on data sync enabled flag -Throws an Exception if the same data sync enabled flag tries to be set -Throws Exception if state is not in READY -Data Sync enabled must be true to complete data sync process - Delete all resource data within fragment table related to synced cm handle when data sync is set to false Issue-ID: CPS-1133 Change-Id: Ib47bbd8293f083c1d705d91bd0def74e6a105c72 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-07-27Upgrade Liquibase to Version 4.14.0lukegleeson2-18/+2
liquibase-core 4.14.0 has been separated from commercial liquibase As such, license should be resolved Issue-ID: CPS-963 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I319c4e33741164b509ed770b1ca095a763ef9fcb
2022-07-27Distributed datastore solution for Module Sync Watchdogkissand4-24/+56
- use semaphore map in ModuleSyncWatchdog - increase test timeout, because it needs more time for hazelcast initialization Issue-ID: CPS-1015 Change-Id: I71feed8fbbd047af9fabba29a5f762a1f17a1c78 Signed-off-by: kissand <andras.zoltan.kiss@est.tech>
2022-07-25CmHandle creation performance degradationsourabh_sourabh9-37/+153
- Created a dedicated threadpool for scheduler. - Tuned async threadpool of notification executor from setting RejectedExecutionHandler and application.yml. Issue-ID: CPS-1126 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I2afe3c76c1aec78751777df0d2f08ddb8dcee102
2022-07-25De-registration: send event(s) using central statesourabh_sourabh5-34/+102
- refactored method "parseAndRemoveCmHandlesInDmiRegistration" - added method to send events for DELETING and DELETED - introduced private method in state handler - updated unit tests for registration spec - added unit test to cover new private method in state handler Issue-ID: CPS-1003 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Ifc1d1e94b7103d85b6352b196edf7075257c211a Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2022-07-20Refractor code to use the new LcmEvent schemabmiklos11-185/+124
-Old schema deleted and comments from tests are removed -EventDateTimeFormatter utility added -From LcmEventsCreator.populateLcmEvent the NcmpServiceCmHandle param removed and tests are fixed accordingly -Changes made in test of the LcmEventsCreator for payload testing to make it more clear Issue-ID: CPS-1147 Change-Id: Id87c81f2755a6617a0fc68ba92a3d0e3170fd20f Signed-off-by: bmiklos <miklos.baranyak@est.tech>
2022-07-18Update dependencies (release task)ToineSiebelink1-5/+0
Removed unnecessary direct dependency - spring-context Issue-ID: CPS-1106 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I4c3b2e8ffb16504f442f2eda5553c185dc290f4b
2022-07-14Update dependencies (release task)ToineSiebelink1-2/+2
Update to latest dependencies (minor) releases -spring-boot-dependencies 2.6.9 -spring-cloud-dependencies 2021.0.3 Issue-ID: CPS-1106 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I4780ca9a6f87d257d430b6c6fefd2c0621aeeec4
2022-07-14Remove ALL Docker File Versionssourabh_sourabh3-9/+3
Issue-ID: CPS-1095 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I11790e271ec784dfa9dbdaea497d50e95f884600
2022-07-14Merge "Code Refactoring Ncmp* to Lcm* as per new scope"Toine Siebelink15-95/+104
2022-07-14Merge "Refactor unit test for Notification Error Handler"Toine Siebelink1-7/+24
2022-07-14Code Refactoring Ncmp* to Lcm* as per new scopempriyank15-95/+104
- Refactored code to reflect the LcmEvents scope now. - Test cases updated and dependencies reviewed. - You can find few occurences of NcmpEvent for now but that will be cleaned up once we implement CPS-1104 which is for LcmEvent schema - UPCOMING: LcmEvent schema and then the code to publish the events on cmHandleStates - LATER : LcmEvents based on public properties update. Issue-ID: CPS-1137 Change-Id: I9f395ed733b4028e706205894c36a38412e3452e Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-07-13Refactor unit test for Notification Error Handleremaclee1-7/+24
Issue-ID: CPS-1146 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Idd1c1236b9574c1d070c3dc4111ebcce8d800b23
2022-07-13Agree LCM Event Schema(s)bmiklos1-0/+106
New schema was created according to discussion with minor fixes 2 Issue-ID: CPS-1104 Change-Id: I1809b679b2cc4d17c278f9e3a6fbd477ea2f3c84 Signed-off-by: bmiklos <miklos.baranyak@est.tech>
2022-07-12Merge "Updating docker-compose version from 3.3 to 3.8"Toine Siebelink1-1/+1
2022-07-12Updating docker-compose version from 3.3 to 3.8JosephKeenan1-1/+1
Issue-ID: CPS-1095 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: I31601a1f486a4925ed880283c160cd827fe2255b
2022-07-08CmHandleState Handlermpriyank6-40/+367
- State handler taking care of ADVISED, READY and LOCKED state transition at the moment. - For now I have not removed the actual code but eventually state handler will take care of persisting the state and publishing of the events - Rebased code to add the global parameter related to dataSyncCache - UPCOMING : The classes will be prefixed/renamed with LCM once we have the LcmEvent created with new schema Issue-ID: CPS-1118 Change-Id: Ic45d95169eb0c06cfb35c907d34380dbcbf2da11 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-07-07Merge "Define Initial Data Sync Enabled Flag and state"Joseph Keenan3-7/+28
2022-07-07Define Initial Data Sync Enabled Flag and stateDylanB95EST3-7/+28
- Define the initial Data Sync Cache enabled through configuration parameter - Set the data sync enabled flag based on this - And in turn define the initial sync state of the Data Sync Issue-ID: CPS-1119 Change-Id: I43bf03c79481291bf47c9b672f7bf408d789df61 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-07-07Merge "Improve test coverage on CompositeStateBuilder"Toine Siebelink1-0/+22
2022-07-07Update cps-ncmp info.yamlJosephKeenan1-6/+1
Issue-ID: CPS-1134 Change-Id: I093eeb6e6f70bf82ba7868eb8985be91eb1d1c24 Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-07-07Improve test coverage on CompositeStateBuilderbmiklos1-0/+22
Issue-ID: CPS-475 Change-Id: Id24f2b0c6fe95ca9c7559a8dbd160c4566ddc32f Signed-off-by: bmiklos <miklos.baranyak@est.tech>
2022-07-06Merge "Move persistence methods from NCMPproperty handler"Joseph Keenan7-71/+93
2022-07-06Merge "Distributed map setup for Module and Data Sync"Toine Siebelink4-0/+126
2022-07-06Distributed map setup for Module and Data Syncmpriyank4-0/+126
- Introduce the hazelcast dependency and check how the builds react to it. - Data Sync and Module Sync Map config. - Added basic test scenarios. - Updating the artifact-id from hazelcast-all to hazelcast-spring and version is 4.2.5. (5.1.2 is latest but has known vulnerabilities) - Refactored the code as per the onsite review session - Upcoming : Actual sub-task which will use the distributed maps in respective use cases. Issue-ID: CPS-1050 Change-Id: I60314c4ff95c267b186b20862aef93a5c389a971 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-07-05Move persistence methods from NCMPproperty handleremaclee7-71/+93
Issue-ID: CPS-1117 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: If6a0c620970a2a34a601267c6610f85e4bc07f60
2022-07-05Coverage for NotificationErrorHandleremaclee1-0/+41
Issue-ID: CPS-475 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Iadcb89c83aaa72afa0839d53a31799316c5966c5
2022-07-04Move persistence related methodsemaclee9-118/+247
-created new method in inventory persistence service for getting module references Issue-ID: CPS-1117 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Ic1f3c180a62a7211e19982d8f3570829db58370e
2022-07-04Merge "Fix: cps-ncmp-rest-stub implement new methods"Toine Siebelink1-0/+12
2022-07-04Fix: cps-ncmp-rest-stub implement new methodslukegleeson1-0/+12
Override getModuleDefinitionsByCmHandleId Override getModuleReferencesByCmHandle Issue-ID: CPS-1094 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I3e4f91602f338e6f22eaf89212cf31a1e7af0c33
2022-07-04Merge "Simplified 'External' lock reason Mapping"Joseph Keenan15-51/+85
2022-07-04Simplified 'External' lock reason Mappinglukegleeson15-51/+85
Refactored LOCKED_MISBEHAVING -> LOCKED_MODULE_SYNC_FAILED CompositeStateMapper will change internal reason LOCKED_MODULE_SYNC_FAILED to external reason LOCKED_MISBEHAVING for client payloads Changed openapi description of lock-reason to reflect only enum currently available LOCKED_MISBEHAVING Issue-ID: CPS-1099 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I9cda45f6c30b94684ee1c8ad0c49e35a3a824d52
2022-07-04Merge "Add Logging to specify next retry"Joseph Keenan1-3/+7
2022-07-01Add Logging to specify next retryDylanB95EST1-3/+7
Adding logging to specify the next time in minutes until the retry mechanism will attempt to unlock the cm handle if it is not yet ready to be unlocked Issue-ID: CPS-1076 Change-Id: Ic2b011966c779f13ad8380ebfd7d4b4354e6b3e1 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-07-01Merge "Modify Unit test for module definition"Toine Siebelink1-3/+3