aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Add Commissioning ProviderERIMROB6-11/+665
This commit adds commissioning provider code, creating functionality with rest controller code to follow Issue-ID: POLICY-2983 Change-Id: I393c527a58bc1151c347e3cc182cb955fa8f9f49 Signed-off-by: ERIMROB <robertas.rimkus@est.tech>
2021-03-04Merge "ControlLoop participant basic structure" into tosca-pocJorge Hernandez9-106/+277
2021-03-04Add new delete policy endpointsebdet2-33/+104
Refactor the camel code so that the policy delete can be called "by loop" related flows and "by policy only" related flows. A new endpoint for policy deletion has been added as well. This one will be called by the UI Issue-ID: POLICY-2927 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3c4bd2e22200788360575aa61a0122b7ed4e608d (cherry picked from commit f12066418c402d3a7fe34667a9fc87295a347b8a)
2021-03-03ControlLoop participant basic structureSirisha_Manchikanti9-106/+277
Issue-ID: POLICY-2987 Change-Id: I2b603ea64d16fee003c60fea710842e2bb59b51e Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
2021-03-03Merge "Bump snapshot versions for TOSCA PoC" into tosca-pocLiam Fallon6-15/+13
2021-03-03Bump snapshot versions for TOSCA PoCliamfallon6-15/+13
Issue-ID: POLICY-2971 Change-Id: Ie53756ce55ce6c5bae4f0fd63e71bdba2a6151f5 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-03-02Merge "Add Instantiation Provider" into tosca-pocLiam Fallon11-0/+1109
2021-03-01Add Instantiation ProviderFrancescoFioraEst11-0/+1109
Issue-ID: POLICY-2980 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech> Change-Id: I957f947ece23fbd5f1745e18f909754c5945f465
2021-02-26Merge "Update tosca-poc models for changed messages" into tosca-pocJim Hahn13-33/+58
2021-02-25Fix the Junit issue for 6.0.1sebdet1-2/+3
Fix the Junit issue (tests not executed at all) in the release 6.0.1 + bump up Camel version to latest & Spring boot as well. Issue-ID: POLICY-3084 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I051cfadbdb360505c3979ef8ce02ab31d1089c13 (cherry picked from commit 3664078317de1bfc75f0bf427e859daa2070fb35)
2021-02-25Merge "Update clamp to 6.0.1" into tosca-pocLiam Fallon6-41/+41
2021-02-25Merge "Rearrange the UI menu" into tosca-pocLiam Fallon2-29/+37
2021-02-25Merge "Change PAP Urls called" into tosca-pocLiam Fallon2-4/+7
2021-02-25Merge "Update info.yaml in clamp" into tosca-pocLiam Fallon1-2/+2
2021-02-25Update info.yaml in clampRam Krishna Verma1-2/+2
Issue-ID: POLICY-3028 Change-Id: I893076e93f26285983673479f9f18795c4f91bd7 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca> (cherry picked from commit 7e60677c8fba9aa4bc2007b780cfa335c88bd35d)
2021-02-25Update clamp to 6.0.1sebdet6-41/+41
- Update to 6.0.1 so that images can be released next week - Fix classNotFound due to update of policy models libs from 2.3.5 to 2.4.0 (ToscaPolicyIdentifier renamed to ToscaConceptIddentifier and ToscaPolicyTypeIdentifier deleted) Issue-ID: POLICY-3084 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ic2d3e6eb25f125ba472c77f0683081214680fafb Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit eeaef28f78a23881e2f5cf0380fa1ad34472435d)
2021-02-25Change PAP Urls calledsebdet2-4/+7
Due to the changes done on the PAP Url (+return code), the camel flows must be adapted. There is no change required for the return code PAP change as Camel already catches all non 2XX code. Issue-ID: POLICY-3068 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I77549f944d28acd5e39e4d9e7e47688146db3681 (cherry picked from commit dadac06a2eef145528d548aa78b89227a86f3520)
2021-02-25Rearrange the UI menusebdet2-29/+37
Rearrange the UI menu to improve the usability Issue-ID: POLICY-2925 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Icb56655b8b9300fa78d004a8fe88d64e54f42279 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 6e4225c1c684b6dacfd465485d989dd846defa99)
2021-02-25Add code in UI to create new policy versionsebdet5-120/+219
Add code to call the policy create backend endpoint + alert box to show status of the creation + Fix backend + Issue-ID: POLICY-2928 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia8f2506ecc692ad68111ebe7a55a92579b951908 (cherry picked from commit c427e6459d066859e6da068bf50c78a0d120080a)
2021-02-24Update tosca-poc models for changed messagesliamfallon13-33/+58
The models of REST and DMaaP messages are updated as are the moels for the database as we evolve the functionality of the TOSCA PoC. POLICY-2995 Change-Id: I490f7033bf41080d1b0b1123541ea884afc5f29e Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-02-23Merge "Introduce a new endpoint to create policy" into tosca-pocLiam Fallon8-141/+317
2021-02-23Merge "Refactoring java packages" into tosca-pocLiam Fallon4-8/+4
2021-02-23Merge "Added Main initial code" into tosca-pocLiam Fallon17-4/+1200
2021-02-23Added Main initial codeFrancescoFioraEst17-4/+1200
Issue-ID: POLICY-2995 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech> Change-Id: I6f7da312f00341be8928fb66875c309c6933f194
2021-02-23Refactoring java packagessebdet4-8/+4
Get rid of *.target java package to avoid confusion with maven target folder Issue-ID: POLICY-3091 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id9501713bf13346b2842abffa7dd6b01b8e26206 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-02-23Introduce a new endpoint to create policysebdet8-141/+317
One first part of the update is to create a policy version from an existing one (this is similar as the create new policy). The policy-flow.xml has been refactored so that the same policy query is done for policies and loop related flows. A code has been added to remove fields from the UI that could be present (the PDP group info json enrichment) Issue-ID: POLICY-2926 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia60c656a9b5100296042d3346d5c97c8dad5d041 (cherry picked from commit a0a3a03686a386bf6def6f7da6de4d3f6a11ce61)
2021-02-22Merge "Fix the Tosca Converter to Json Schema" into tosca-pocJim Hahn4-5/+25
2021-02-22Fix the Tosca Converter to Json Schemasebdet4-5/+25
The backend had to be slightly fixed so that the json generation without being in a loop is not an issue. This is required for the policies listing feature Issue-ID: POLICY-2926 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia6a9e034f888384999a8ea557ce550c87c65c4be (cherry picked from commit 08ed2240b2389fbf83e9ed67cc65cc6fc628ea72)
2021-02-22Improve the policy list react componentsebdet1-12/+75
Add feature to the new policy list component, like grouping, sorting, CSV export, add delete/update button for future use Issue-ID: POLICY-2925 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I5f6141eca43d750a7e8e8edf9b59cc6b1e53f0bb (cherry picked from commit 3728547710dee7d4cbd02d8e6cfed2c1708e263c)
2021-02-22Convert Date to Instant in TOSCA PoCliamfallon12-52/+40
Issue-ID: POLICY-3069 Change-Id: I9efbc42c4fcc97f79799f3e09ed3424dcc86a891 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-02-19Modify Backend for listing the policiessebdet27-66/+479
Improve Ui components to list policies + changes an existing camel route to expose the policy json schema properly. New files added to emulator for testing + comments added. Now the Ui can show the policy config Issue-ID: POLICY-3061 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iacf9577a4ab2cc927d05ff267e7356d8410eb77a Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 3718a16bedbc4a5ecf2593abcb2075238fa99767)
2021-02-19Merge "Add New UI component for policies list" into tosca-pocAjith Sreekumar17-881/+1427
2021-02-19Add New UI component for policies listsebdet17-881/+1427
Add new Ui components to list policies + the small refactoring of React Routes Issue-ID: POLICY-2925 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I784d7c144a3a3af98a9d62b5d40b5172dbdaed47 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit eb8e3f1dd891ac98f1bbaf35a2a0679146785236)
2021-02-19Switching parent to stablesebdet1-1/+1
Removing the parent snapshot as the build is not reproductible if the snapshost changes. Moreover a change occurred and the tests are even not executed. Issue-ID: POLICY-3073 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I1be96ea0b4cd8f721b17c623a62a1892dcf05062 (cherry picked from commit 25f228a730563c414bce5d65cdb3210ce9eae4c6)
2021-02-12Point at correct POM for tosca control loop buildliamfallon1-1/+1
The plugin configuration caused all the sub POMs to be run as separate builds. The build for the TOSCA POC code should just point at the single POM for the POC code and not run all the sub POMs. THis change just runs thebottom POM for the control loop code, which in turn calls all the sub POMs. Issue-ID: POLICY-2971 Change-Id: I9cab9fc862c89a037b12894fb5bfb3b2c9a4e9f9 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-02-11Add common and models initial codeliamfallon94-1/+8727
This review brings inthe initial common and models code for the TOSCA control loop PoC Changes are made to the model that were required to implement the working demo. Unit test are now added that brings coverage above 90% Issue-ID: POLICY-2995 Change-Id: I22e484a6e6195b2b74087b62fb3bc51d541b171e Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-02-11Merge "Enable building of the tosca PoC code" into tosca-pocLiam Fallon7-53/+92
2021-02-11Enable building of the tosca PoC codeliamfallon7-53/+92
At the moment, because the code in the tosca-controlloop directory is not linked to the CLAMP pom, it is not built by the Jenkins jobs. This commit makes a change to the pom.xml file on the tosca-poc branch only so that the tosca-controlloop code is built. The maven-invoker-plugin runs a build of the code in the tosca-controlloop subdirectory by invoking a build of its pom.xml. The output artifacts are placed in target/tosca-controlloop and do not interfere in any way with the main CLAMP build. However, if there are compile erors/test fails/maven errors in the tosca-controlloop coode, the build wil and should fail. Issue-ID: POLICY-2995 Change-Id: Ie4d3e3189af6afe0a046ab565a7cc2703afa503d Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-02-10Add new Camel routesebdet15-1476/+1824
Add the new rest endpoint in camel + add new permission type + add robot test for that route + small refactoring of trst files Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I623cc8ec1724513cdb92eeea000adca5c2433bae (cherry picked from commit 9d04a9cc8c6f4b12ae60cc0d4d42f71085f72328)
2021-02-09Policy list and Pdpgroup merger codesebdet11-231/+541
Draft code of the policy list/pdpgroup merger + tests, this code will most likely be called by a camel Rest route and the answer will be returned to the client/ui. The policies listing is enriched with new fields pdp group info, like: 1. In which Pdp group/Subgroup the policy is currently deployed 2. What are the potential pdpgroups/subgroups where the policy can be deployed These info will be shown in the policy clamp UI to the user. Also some refactoring has been done for the sake of clarity. Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iba1ab6fea90735551d7d2e2bbff9ab2efdee093e Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 76a0b386bcf5f30533c85f6d26c559bea19ce0fb)
2021-02-08Remove test usage of the AAF certificatesebdet8-91/+88
Fix the broken build by removing the need of the useless certificate, a new one is now generate during the build for the tests. Issue-ID: POLICY-3036 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I11c2ff5aac8a99c7a2b7e676d6c11bbc861a1de4 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit d2178bc9f7d6c06f60a3a8afecd83e428d84cd78)
2021-01-22First integration of Policy model PdpGroupssebdet14-1672/+1519
Replacement of the PdpGroups clamp code by the one from policy model dependency. Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I12c77704bba1c769dc2f307d91b759a3b645013f Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 078c34d0c2e439d8a148a2cd4d7545c6b7f56acb)
2021-01-22Add policies list and PDP responses in the emulatorsebdet11-36/+716
- Add some specific answers to the emulator so that the backend list code can be tested - add guilin tca blueprint to the integration tests so that the test.sql contains a new template. Issue-ID: POLICY-2924 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I716cfbaa1a084df1455da25470d86b903ef7c936 (cherry picked from commit dabd6db614abf78508add7cdbef2120120ce3d9b) Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia8e7a80a3adb205de2bdb4a1a9051a734b424980
2021-01-20Add tosca-controlloop directory for TOSCA-POC devliamfallon40-320/+1269
The module structure is: ./tosca-controlloop (maven module) ./tosca-controlloop/common (maven module, could be moved to policy-common) ./tosca-controlloop/design (maven module, control loop design time component) ./tosca-controlloop/models (maven module, should be moved to policy-models) ./tosca-controlloop/participants (maven modue for control loop participants) ./tosca-controlloop/runtime (maven module, control loop run time component) This patch also updates the repo to the current status of the master branch Issue-ID: POLICY-2971 Change-Id: I98c7e25f592cc7d9783d5daff3e9e3ad2e7b5214 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-01-08Update INFO.yaml in policy/clamp repoliamfallon1-20/+66
Issue-ID: POLICY-2922 Change-Id: I753bbf5e871350a45af9231ab7d1ec8a444d0b24 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit f1841463cd3431e699dfa201286f42a4018087ff)
2021-01-06Merge clamp master into tosca-poc branchliamfallon247-5275/+5204
This change mreges changes in clamp master into the tosca-poc branch because the two banches have diverged. Issue-ID: POLICY-2971 Change-Id: Iea4efe90204c98eeaae0b112ad5c964f722afdb0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-09-30Remove legacy operational Policysebdet13-668/+19
As it has been removed from policy engine, legacy operational policy code must be removed as well Issue-ID: CLAMP-948 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit f01d3e8377fa4e5a9c1b129fe446575d132f91c2) Change-Id: I4a7f6741417abd55f2568bd8e39ce7c9d753dd37
2020-09-30Unit test fails due to cleanupliamfallon1-0/+8
When building CLAMP, a test failure was noticed on the LoopRepositoriesItCase test case. THe root cause was because the LoopRepositoriesItCase did not clean up its test configuraiton. When the test order randomly changed, this test was run before the LoopRepositoriesItCase test case, causing that test case to fail due to test data residue. Issue-ID: CLAMP-946 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit 909be39ba9b573b9b77e9b3543fa6ffa7bd63cbb) Change-Id: I6886843555b97a7ffe66e6d2166c08ca29d62d01
2020-09-30Update clamp version to 5.1.1sebdet2-2/+2
Prepare for new release 5.1.1 Guilin Issue-ID: CLAMP-943 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit a279cd787769a8faa6fedfbd6c099c0425d6d25d) Change-Id: I18a6a8f108dbff4824aa5b48e58fb062511e352e
2020-09-30Use the onap imagesebdet1-14/+3
Use the baseline image for onap: onap/integration-java11:7.1.0 Issue-ID: CLAMP-943 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit eaf160bfec1b3b615cbc7912cb029d9a6eb887e7) Change-Id: Ifc136348b398186d8e5932a43e3325a3975ce74f