aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2020-09-30Revert lib required by AAFsebdet6-10/+6
This lib must be re-introduced for AAF otherwise at runtime there is a classnotfound Issue-ID: CLAMP-915 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 68af81034f311e6a25221648f48ae6db7c8e30b6) Change-Id: I34a72f627689c26ed665d9da61c23e85e4a3dfe0
2020-09-30Fix the ssl configsebdet33-246/+263
Fix SSL config so that clamp can access external files from the application.properties spring definition Issue-ID: CLAMP-884 Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 536db7b811eba341aef48a745b495da068d170eb) Change-Id: I3e0edee985f68499549866d43768c949f7af6107
2020-09-30CLAMP should not display all CDS workflow propertiesroot118-563/+1376
CLAMP should not display all CDS workflow properties Issue-ID: CLAMP-856 Signed-off-by: root1 <vidyashree.rama@huawei.com> (cherry picked from commit 2d9f989e0d37002c758bdf66a3f25fcfdac35b62) Change-Id: Icc07decf95a4e8977cd9559373bde9053ef6b8bb Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-09-22[CLAMP] TOSCA Defined Control Loop PoC Initial Checkinajay_dp0014-0/+102
Issue-ID: CLAMP-930 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: Ic00c2cdf9ac23b69c6b58aadb24ccf6cf24a64c8
2020-08-20Merge "Revert "Remove useless dep""Christophe Closset1-0/+5
2020-08-20Revert "Remove useless dep"Sébastien Determe1-0/+5
This reverts commit dc5e7d8cff0f06d54d28b6eb09a96dbaa89e6808. Reason for revert: Rollback Janino. Need to rollback this dep as it is in use by the log. Issue-ID: CLAMP-915 Change-Id: Ib84a6559eb0001995a468b9fe720f9baa103b32d Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-08-20Merge "Re-enable the test multi threading"Christophe Closset1-1/+1
2020-08-19Update Release noteChrisC1-8/+48
Update release note for Frankfurt maintenance Issue-ID: CLAMP-885 Signed-off-by: ChrisC <christophe.closset@intl.att.com> Change-Id: Ieb9a8b4c533cef82157f2f9b3c7414a72b25052d
2020-08-06Re-enable the test multi threadingsebdet1-1/+1
Re-enable the test multi threading with a new 16G ram node Issue-ID: CLAMP-899 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I52920f47796c8c459287168a048d1ccbe214c762
2020-08-03Remove useless depsebdet1-9/+5
Remove useless dependencies Issue-ID: CLAMP-915 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I83ad14ab2b70373e1679b7fd896bf983db948e3f
2020-08-03Remove useless depsebdet1-5/+0
Remove useless dependencies Issue-ID: CLAMP-915 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I6207cb5face63b350b3bdc8cbd792ce0687bdf41
2020-08-03Remove useless depsebdet1-10/+0
Remove useless dependencies Issue-ID: CLAMP-915 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I6d4ce09c31db50798b9b353383fe0ba2cc95838d
2020-08-03Remove useless depsebdet1-5/+0
Remove useless dependencies Issue-ID: CLAMP-915 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Idf58cbd12061b5c4d0140cd479ff5bd5c8f3a155
2020-08-03Remove useless depsebdet1-5/+0
Remove useless dependencies Issue-ID: CLAMP-915 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I355ff48bc3cf88da8e6dd67f73c9bb61d2e97d42
2020-08-03Update some direct dependenciessebdet1-1/+1
Update vulnerable dependencies tomcat Issue-ID: CLAMP-850 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia917b9ef2d5a65e4403a2ad60891151745f7c99a
2020-08-03Update some direct dependenciessebdet1-0/+5
Update vulnerable dependencies tomcat Issue-ID: CLAMP-850 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia384ad154529e4836ac0a4c0f97a5e4e3b1634e4
2020-08-03Merge "Clamp react ui to use url pathname dynamically instead of hardcoded ↵Sébastien Determe5-27/+27
prefix for calling apis"
2020-08-03Merge "Update some direct dependencies"Gervais-Martial Ngueko5-2512/+2497