aboutsummaryrefslogtreecommitdiffstats
path: root/runtime-controlloop/src/test
AgeCommit message (Collapse)AuthorFilesLines
2021-11-09Merge "Removed some elements from testing yaml"Liam Fallon1-50/+2572
2021-11-03Merge "Clamp code coverage"Liam Fallon1-1/+24
2021-11-02Clamp code coveragelapentafd1-1/+24
Issue-ID: POLICY-3452 Change-Id: I35c10562c5e11698491a5d93adcf417784395534 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-11-02Remove code smells in controlloop runtimeSirisha_Manchikanti1-9/+8
Remove code-smells reported by sonar cloud https://sonarcloud.io/project/issues?id=onap_policy-clamp&resolved=false Issue-ID: POLICY-3540 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I8ed1c4599e7eeebbc3a31e74cea4148eb0435847
2021-10-22Add support startPhase in all state transitionsFrancescoFioraEst5-45/+256
Issue-ID: POLICY-3785 Change-Id: I1b5821cc42cdbb63e3172596431dc561ced09c55 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-10-12Removed some elements from testing yamlsaul.gill1-50/+2572
Some elements that were being used to test inherited common/instance properties were removed Added a policy to the yaml Issue-ID: POLICY-3673 Change-Id: I5742a4402bf88bb8af34ffef958d3debad4aa5a2 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-10-05Handle ParticipantRegisterFrancescoFioraEst3-19/+22
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-05Merge "Register participant in ParticipantRegister message"Liam Fallon1-0/+270
2021-10-04Fix startPhase delayFrancescoFioraEst6-103/+115
Issue-ID: POLICY-3624 Change-Id: Ie7e25ddc3796324246f267dd0c92b9bc1fe15aa2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-10-04Register participant in ParticipantRegister messageFrancescoFioraEst1-0/+270
Issue-ID: POLICY-3688 Change-Id: I7ac14dace8e936ac4329b55866bfbf8b7c45da63 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-29Merge "Added service template to be used for smoke tests"Liam Fallon1-0/+966
2021-09-28Added service template to be used for smoke testssaul.gill1-0/+966
Added K8s types and templates Added pmsh policy types and templates Added examples of common properties Added participant_id as well as participantType Issue-ID: POLICY-3648 Change-Id: I5435f58ada655e988477720dde8ed191cf475e3b Signed-off-by: saul.gill <saul.gill@est.tech>
2021-09-27Add validation participants registered in issue ControlLoop CommandFrancescoFioraEst5-133/+107
Issue-ID: POLICY-3681 Change-Id: I80ad2c3b9a3b46aed01a0255b9791fa4f148ea4b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-23Merge "Add participantType to participant class"Liam Fallon1-0/+1
2021-09-22Fix startPhase in runtime and participantsFrancescoFioraEst1-12/+20
Issue-ID: POLICY-3677 Change-Id: I78635928086cc39fc3539925052e06b657b249c2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-22Add participantType to participant classSirisha_Manchikanti1-0/+1
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-14Add Priming flag per controlloopSirisha_Manchikanti1-0/+10
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 Fallon4-61/+31
2021-09-09Fixed Delete Instance Properties Endpointbrunomilitzer1-19/+0
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 messagesFrancescoFioraEst4-61/+31
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 Fallon1-1/+19
2021-09-07Fix parsing of type heirarchy for nodetypesSirisha_Manchikanti1-1/+19
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 eclipse warnings in clamp"Pamela Dragosh1-4/+4
2021-09-03Merge "Fix sonars in clamp #2"Pamela Dragosh1-1/+3
2021-09-03Merge "Fix sonars in clamp"Ajith Sreekumar7-22/+25
2021-09-02Fix eclipse warnings in clampJim Hahn1-4/+4
Fixed some of these warnings, just in policy-clamp-runtime: - equals() with wrong argument type in junit - remove unneeded "SuppressWarning" - unused fields - deprecated classes/methods Fixed some sonars, too: - use isEqualByComparingTo() - method complexity: used eclipse to auto-extract methods Fixed checkstyle issues: - indentation level Did not address all deprecation issues (e.g., SSLSocketFactory). Issue-ID: POLICY-3200 Change-Id: Ibd92e5326854002dc0ca2d7b3b777699cafb5e98 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-09-02Merge "Verify alignment with Definition of TOSCA Control Loop Types"Jim Hahn4-32/+54
2021-09-02Fix sonars in clamp #2Jim Hahn1-1/+3
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-01Fix sonars in clampJim Hahn7-22/+25
Fixed some sonars: - no assertion in test case - unused fields - unthrown exception - define a constant - use boolean instead of Boolean - remove unused parameter Fixed some eclipse warnings: - unused imports - unused methods - suppress warnings - add type parameter Renamed directory from "org.onap.policy..." to "org/onap/policy/...". Issue-ID: POLICY-3200 Change-Id: I76f7cd4a508ac421c37e457fdca6894e6100c802 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-09-01Send ToscaServiceTemplateFragment with policies, policy-typesSirisha_Manchikanti2-1/+6
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 TypesFrancescoFioraEst4-32/+54
Issue-ID: POLICY-3612 Change-Id: I818f80cdc1db98752a7791ef4aba7377add66516 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-30Export basic prometheus metrics from clampFrancescoFioraEst3-3/+135
POLICY-3557: Export basic prometheus metrics from clamp Change-Id: Ica71d089255e2a8881f668ceeb578993996f9a38 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-27clamp sonar fix on test code and the restTaka Cho2-4/+8
- 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 participantsFrancescoFioraEst1-2/+3
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-26Merge "Updated handling of ack messages"Liam Fallon1-1/+1
2021-08-25Merge "Intermittent issue in event handling between Cl runtime and participants"Jim Hahn1-13/+18
2021-08-25Updated handling of ack messagesSirisha_Manchikanti1-1/+1
Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I5784debf2e17fd1018b3feb7c9e2ae08d5f93d23
2021-08-25Added dmaap messages on commission/decommissionsaul.gill7-45/+143
Added dmaap message trigger to commissioning endpoint Added dmapp message trigger to decommissioning endpoint Issue-ID: POLICY-3415 Change-Id: I37ab580c9713d1002becd3bc3af674c2ca17b3c9 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-08-24Intermittent issue in event handling between Cl runtime and participantsFrancescoFioraEst1-13/+18
Issue-ID: POLICY-3544 Change-Id: I40c5dc537b17986d01ab0d213e7ea7c9cdb7d59e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-23Add Create Instance Rest Endpointbrunomilitzer1-1/+22
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-20Merge "Added New Commissioning Unit Tests"Jim Hahn3-0/+3769
2021-08-19Added New Commissioning Unit Testssaul.gill3-0/+3769
Adding new tests for CommissioningController Adding new tests for CommissioningProvider Issue-ID: POLICY-3439 Change-Id: I4a59b971389a2bf35ec3df13b653a1c964f552c0 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-08-18Updated ControlLoop component messagesSirisha_Manchikanti4-25/+108
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 ParticipantsFrancescoFioraEst1-9/+8
Issue-ID: POLICY-3536 Change-Id: I72207ba8b3894238412bf19c32b799b661a23c21 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-04Support for Retry and Timeout handling on ParticipantStatusFrancescoFioraEst3-0/+310
POLICY-3464: Support for Retry and Timeout handling on ParticipantStatus Change-Id: Iecf8bc9921cb92987bc75b6938efc543350a1543 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-07-26Add Retry and Timeout handlingFrancescoFioraEst2-3/+3
Implementaton of Supervision, Retry and Timeout handling on all Participant messages Issue-ID: POLICY-3455 Change-Id: Idfd53ea0b8f5bb1272703256b983a6cbeeb4fdf4 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-07-23Rename ParticipantControlLoopStateChange messageSirisha_Manchikanti2-3/+3
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_Manchikanti2-2/+0
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_Manchikanti2-3/+3
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-20Refactor Control Loop Parameters in SpringFrancescoFioraEst17-345/+47
Issue-ID: POLICY-3461 Change-Id: I54351d02da9bfa2b775f40fad0a12a4f32994cd9 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>