summaryrefslogtreecommitdiffstats
path: root/models
AgeCommit message (Collapse)AuthorFilesLines
2021-10-14Bump policy/clamp to Jakarta 6.2.0-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3696 Change-Id: I4dfc0532e30106478c89182f7c2cd573c168a634 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-14Bump policy/clamp to 6.1.4-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3696 Change-Id: Icef72d76b53fa09c0f88d71431ae5a13d441c787 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-06Merge "Handle ParticipantRegister"Liam Fallon3-0/+1353
2021-10-05Handle ParticipantRegisterFrancescoFioraEst3-0/+1353
Send ParticipantUpdate to participant after registration if commissioning has already been created Issue-ID: POLICY-3689 Change-Id: Iccc4fc1c0b95e1f270b6810c5b5f130726f24650 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-10-05Code coverage in clamp/modelslapentafd4-19/+3480
Issue-ID: POLICY-3452 Change-Id: I4c24c85edd7a22b05ae81ee7779da13974127164 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-09-23Merge "Add participantType to participant class"Liam Fallon9-8/+48
2021-09-22Fix startPhase in runtime and participantsFrancescoFioraEst2-0/+15
Issue-ID: POLICY-3677 Change-Id: I78635928086cc39fc3539925052e06b657b249c2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-22Add participantType to participant classSirisha_Manchikanti9-8/+48
Add participantType to participant class, cascade common and instance properties from runtime to participants Issue-ID: POLICY-3576 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ic9205aafe269ccc6dae0b3463fc6df5c47129e5d
2021-09-15Bump policy-clamp snapshot version to 6.1.3-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: Ie3e6aba3a2dd64f36fcf5cbd860fe9b63ee4e8aa Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-14Add Priming flag per controlloopSirisha_Manchikanti5-0/+92
This commit adds a Priming flag per controlloop which indicates whether a controlLoop is primed or deprimed. There is a rest end-point added to depict in GUI Issue-ID: POLICY-3577 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ie81a41505ab1eafda9515733e0b895421803ea8a
2021-09-10Merge "Verify participant Simulator and messages"Liam Fallon2-3/+84
2021-09-09Fixed Delete Instance Properties Endpointbrunomilitzer3-8/+32
Fixed issue regarding that control loops was not getting instantiated Fixed issue regarding state change that was not receiving paramaters Added appropriate Camel Endpoints Unit tests will be applied on POLICY-3568 and POLICY-3567 Issue-ID: POLICY-3558 Change-Id: I11a1093bdb16651fe1c0ad8e267ded5390267a30 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-09-09Verify participant Simulator and messagesFrancescoFioraEst2-3/+84
Add missing ControlLoopElementHandler in participant Simulator and fix some message issues. Issue-ID: POLICY-3628 Change-Id: I9f058c19aa18e070bac6ccaf98fdf7600d66d71e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-08Merge "Fix parsing of type heirarchy for nodetypes"Liam Fallon3-2/+13
2021-09-07Fix parsing of type heirarchy for nodetypesSirisha_Manchikanti3-2/+13
Fixed an issue where a ControlLoopElement with type defined in node-types is not parsed. This commit also includes changes to save the state of a controlLoopElement coming from ControlLoopAck message into runtime database. Issue-ID: POLICY-3575 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I1249cf2cabd4a499d80b401f94f7f42f08b350e3
2021-09-03Merge "Fix sonars in clamp #2"Pamela Dragosh1-1/+1
2021-09-02Merge "Verify alignment with Definition of TOSCA Control Loop Types"Jim Hahn5-2/+9
2021-09-02Fix sonars in clamp #2Jim Hahn1-1/+1
Fixed sonars: Fixed eclipse warnings: - unused imports - unused fields - add serialVersionUID Issue-ID: POLICY-3200 Change-Id: Ieaab6e85f65fb5eed6db337060961ba831628905 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-09-01Send ToscaServiceTemplateFragment with policies, policy-typesSirisha_Manchikanti2-3/+4
ToscaServiceTemplateFragment contains policies, policy-types and respective datatypes to be sent to Policy participant, and there on to Policy Framework to create new policies or policy-types that doesnot exist in the database. https://wiki.onap.org/display/DW/The+CLAMP+Policy+Framework+Participant Issue-ID: POLICY-3607 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I2b98d7dc6946b0c27763f1a150d1bf4adca90a2f
2021-09-01Verify alignment with Definition of TOSCA Control Loop TypesFrancescoFioraEst5-2/+9
Issue-ID: POLICY-3612 Change-Id: I818f80cdc1db98752a7791ef4aba7377add66516 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-31Fix ControlLoopAck and remove circular dependencyFrancescoFioraEst4-10/+56
Issue-ID: CLAMP-1028 Change-Id: I23b6806bf9a22449c7709b619a20f3412e3e3742 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-27clamp sonar fix on test code and the restTaka Cho2-3/+5
- rename files to "...ItTestCase" to comply SONAR and checkstyle - surefire plugin include *Test.java files - failsafe plugin include *ItTestCase.java files - use assertEquals etc. - replace to "var" - remove unused import Issue-ID: POLICY-3452 Change-Id: I2e6e829726c4585f5f8bc985f4e8f2b88d17aef1 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-26Fix issue in event handling in participantsFrancescoFioraEst4-19/+88
Fix issue in event handling in participants and refactor Participant Publisher and Listener Issue-ID: POLICY-3544 Change-Id: Ic92ffa79d303adfb1c3319fbfefb1faef911a9d4 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-25Updated handling of ack messagesSirisha_Manchikanti1-2/+0
Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I5784debf2e17fd1018b3feb7c9e2ae08d5f93d23
2021-08-24Merge "Add Create Instance Rest Endpoint"Liam Fallon2-0/+62
2021-08-23Add Create Instance Rest Endpointbrunomilitzer2-0/+62
Added Camel Endpoint Will Apply Unit Tests on POLICY-3537, since focus is to get the functionalities completed. Issue-ID: POLICY-3436 Change-Id: I8305896b24c30fc0403c57b3925af983065a5ec2 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-08-20sonar fix for clampTaka Cho4-7/+11
- bug: added InterruptedException for sleep - vulns: two false positve - removed some unused import - changed to use var for local variable Issue-ID: POLICY-3452 Change-Id: I8b4be1378a2aad8f68562b63f70853832673ce97 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-20ADD Change State Control Loop Definitionbrunomilitzer3-0/+111
Issue-ID: POLICY-3425 Change-Id: I0898feefd0d63802e90c1c191d1ac1f14f7df389 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-08-18Updated ControlLoop component messagesSirisha_Manchikanti14-113/+209
Updated controlloop messages (ParticipantUpdate, ControlLoopUpdate, ParticipantStatus) according to the following Wiki and added implementation for the corresponding updates in runtime-controlloop and participant components https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I80d96a7553a89ca47de2aa35e09df5a5c792acfa
2021-08-11Fix serialization of messages in Control Loop and ParticipantsFrancescoFioraEst14-23/+83
Issue-ID: POLICY-3536 Change-Id: I72207ba8b3894238412bf19c32b799b661a23c21 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-06Merge "Support for Retry and Timeout handling on ParticipantStatus"Ram Krishna Verma2-5/+6
2021-08-04Update controlloop messagesSirisha_Manchikanti9-172/+163
Updated controlloop messages according to https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ied32ea5bb63a6b69286d03f1a7b2b86e3acad7a7
2021-08-04Support for Retry and Timeout handling on ParticipantStatusFrancescoFioraEst2-5/+6
POLICY-3464: Support for Retry and Timeout handling on ParticipantStatus Change-Id: Iecf8bc9921cb92987bc75b6938efc543350a1543 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-07-29Updates to participant messagesSirisha_Manchikanti12-33/+326
Updated participant messages according to https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3416 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Idef19bee05116f11690c7aca0493e731dd128e06
2021-07-23Rename ParticipantControlLoopStateChange messageSirisha_Manchikanti4-14/+14
This commit has no logical changes considered, except renaming ParticipantControlLoopStateChange message to ControlLoopStateChange message. According to following wiki ParticipantControlLoopStateChange message is renamed to ControlLoopStateChange message. https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I7eaf89ca3fe5ab685b222b604abfd99627776b18
2021-07-23Remove ParticipantStateChange messageSirisha_Manchikanti4-119/+2
ParticipantStateChange message is no longer needed, as Runtime is not allowed to change the state of the participant. Following Wiki doesnot list ParticipantStateChange message https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3510 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I06382efa52b1131394518c85d7bc6ce50dd2bbb5
2021-07-21Rename ParticipantControlLoopUpdate messageSirisha_Manchikanti3-12/+12
This commit has no logical changes considered, except renaming ParticipantControlLoopUpdate message to ControlLoopUpdate message. According to following wiki ParticipantControlLoopUpdate message is renamed to ControlLoopUpdate message. https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3416 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I73f2b6797393e3352f98db2234ab63b833d7f212
2021-07-15Convert Control Loop components to Spring and Supervision refactorFrancescoFioraEst4-0/+8
Issue-ID: POLICY-3463 Change-Id: Icc5b2ea576dbbe4cf954b51b8074f91884e93f56 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-07-09Add models for register,deregister and updateSirisha_Manchikanti22-13/+934
This commit adds models for ParticipantRegister, ParticipantDeregister and ParticipantUpdate messages. Handling of these messages will be taken care in a later commit. Issue-ID: POLICY-3414 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I622b98b03df09eecaac160ba564c8a21b449c642
2021-07-02Convert clamp-models unit tests to JUnit 5liamfallon28-145/+145
JUnit 4 tests do not fire when JUnit 5 is activated. Issue-ID: POLICY-3452 Change-Id: I5efb8ee996b06dc7f57107b8f77408adc1a4f22f Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-23Move parameters from config Json file to application.yamlFrancescoFioraEst1-4/+0
Issue-ID: POLICY-3343 Change-Id: Id78c00a5a241337f684a70feeee543f3a88fc01c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-06-17Clean up CLAMP Sonar and checkstyle issuesliamfallon10-59/+44
This commit cleans up sonar and checkstyle issues identified in the CLAMP repository. Issue-ID: POLICY-3206 Change-Id: I16b61bbe771cc17de15183a24b2a5e82a8d35872 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-16Fix CLAMP build failure and kub-participant module startup issue.rameshiyer272-4/+30
Initialising ParticipantK8sParameters in the constructor to fix Null pointer Exception in kub-participant module. Constructor cannot use autowired properties. Updated pfDao getFiltered method signature to align with latest code in policy models. Issue-ID: POLICY-3240 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I9405c1e050b31b153ee53829ffece9f4be27818e
2021-06-10Eliminate two fromAuthorative() calls in providersliamfallon6-139/+95
The current implementation of the providers makes two calls to the expensive fromAuthorative() method. This change changes the implementation to make a single call. Issue-ID: POLICY-3319 Change-Id: I6b7e016e91b07f567973d9e2af68514de0affddd Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-05-26Transfer tosca-poc onto masterliamfallon79-0/+7167
This is the third if three commits, this commit makes the content of the master branch the same as the tosca-poc branch. This commit adds the "src" files for TOSCA control loops to the modules in master. Difference between this commit and the current master: ------------------------------------------------------ diff -qr clamp clamp-master |diff_filter.sh Only in clamp/common: src Only in clamp/models: src Files clamp/participant/participant-impl/participant-impl-dcae/pom.xml and clamp-master/participant/participant-impl/participant-impl-dcae/pom.xml differ Only in clamp/participant/participant-impl/participant-impl-dcae: src Only in clamp/participant/participant-impl/participant-impl-policy: src Only in clamp/participant/participant-impl/participant-impl-simulator: src Files clamp/participant/participant-impl/pom.xml and clamp-master/participant/participant-impl/pom.xml differ Only in clamp/participant/participant-intermediary: src Files clamp/participant/pom.xml and clamp-master/participant/pom.xml differ Files clamp/pom.xml and clamp-master/pom.xml differ Files clamp/runtime/pom.xml and clamp-master/runtime/pom.xml differ Only in clamp: runtime-controlloop Difference between this commit and the current tosca-poc branch: ---------------------------------------------------------------- diff -qr clamp clamp-tp |diff_filter.sh Files clamp/INFO.yaml and clamp-tp/INFO.yaml differ Only in clamp/releases: 6.0.1-container.yaml Only in clamp/releases: 6.0.1.yaml Only in clamp/releases: 6.0.2-container.yaml Only in clamp/releases: 6.0.2.yaml Only in clamp/releases: 6.1.0-container.yaml Only in clamp/releases: 6.1.0.yaml Only in clamp/releases: 6.1.1-container.yaml Only in clamp/releases: 6.1.1.yaml Files clamp/runtime/src/main/resources/META-INF/resources/swagger.html and clamp-tp/runtime/src/main/resources/META-INF/resources/swagger.html differ Issue-ID: POLICY-3215 Change-Id: Ica1aa3fe5d6110df2396ea856703102e800fa770 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-05-13Modular structure of clamp including controlloopSirisha_Manchikanti1-0/+35
This commit is the first commit that puts in multi module structure while changing the existing CLAMP code as little as possible. It adds a structure where common, models, participant and runtime are direct children under clamp, and current clamp code is moved under runtime. This runtime directory will host controlloop runtime code in later commits. Issue-ID: POLICY-3215 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I15bc8be92ed020343bff4024c4718fec462c40d7 Signed-off-by: liamfallon <liam.fallon@est.tech>