aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-02-23Introduce a new endpoint to create policysebdet6-130/+300
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-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-19Modify Backend for listing the policiessebdet25-56/+415
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-19Add New UI component for policies listsebdet5-211/+213
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-10Add new Camel routesebdet13-1440/+1788
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 certificatesebdet6-90/+42
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 PdpGroupssebdet13-494/+322
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 emulatorsebdet8-3/+678
- 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 devliamfallon5-27/+41
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-06Merge clamp master into tosca-poc branchliamfallon240-1938/+2015
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-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 AAFsebdet5-10/+0
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_dp0013-0/+87
Issue-ID: CLAMP-930 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: Ic00c2cdf9ac23b69c6b58aadb24ccf6cf24a64c8
2020-08-03Update some direct dependenciessebdet1-71/+71
Update vulnerable dependencies tomcat Issue-ID: CLAMP-850 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Idf72aa9155fda422bd58013b6eaf888d67557e68
2020-08-03Update some direct dependenciessebdet6-19/+15
Update vulnerable dependencies, camel + Spring boot + Mariadb Issue-ID: CLAMP-850 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9850a07037d7bab0f303c69d5682b1f9de282425
2020-07-29Merge "Attempt to fix the verify job problem"Gervais-Martial Ngueko2-2/+4
2020-07-29Attempt to fix the verify job problemsebdet2-2/+4
Remove the parallel execution of the Integration tests Issue-ID: CLAMP-899 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia4d60941821f1e5363d5ba5e734a0d9a5ec9186d
2020-07-27Fix audit, metric and error logs as per logging specificationAshwin Sharma7-124/+290
Issue-ID: CLAMP-900 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com> Change-Id: Ia911e16ecd4a5a03f44c45d32ebc874ff8882895
2020-07-10Merge "Fix delete flow bug"Sébastien Determe3-4/+25
2020-07-09Fix delete flow bugxuegao3-4/+25
Fix the bug in delete flow, when the loop is already undeployed. Issue-ID: CLAMP-864 Change-Id: I6ca52b260bf2229b8ed28d8ebac93eef65d12d96 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-07-03add robotframework to integration testsJulienBe5-0/+321
Issue-ID: CLAMP-844 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com> Change-Id: Ie5c40477f42fcf26f5fef6c1742e34a2eee7f73d
2020-06-06optimize size and time using "--no-cache-dir"Pratik Raj1-1/+1
Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages by pip don't cached on system . This is a best practise which make sure to fetch ftom repo instead of using local cached one . Further , in case of Docker Containers , by restricing caching , we can reduce image size. In term of stats , it depends upon the number of python packages multiplied by their respective size . e.g for heavy packages with a lot of dependencies it reduce a lot by don't caching pip packages. Further , more detail information can be found at https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6 Issue-ID: CLAMP-861 Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: I7e7a7799ae48901c289d07bc07e7c96f24f5d078
2020-06-04Remove logoutxuegao1-3/+1
Remove the logout option from UI. Issue-ID: CLAMP-860 Change-Id: I711b8a7eaf523195f0534044efd3dd74c3f1e0be Signed-off-by: xuegao <xg353y@intl.att.com>
2020-06-03Merge "Add check to maven pom.xml for verifying integrity of ui-react-lib"Sébastien Determe1-0/+122
2020-06-03Update sql filessebdet1-277/+129
Update sql files and swagger due to svg removal Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I90b9ea58c63733d6b7a8ed7354469a68e9f914cf
2020-06-03Add check to maven pom.xml for verifying integrity of ui-react-libTed Humphrey1-0/+122
A new shell script is introduced for verifying that ui-react-lib/libIndex.js is faithfully synchronized with components maintained in ui-react/src, in order to provide an NPM onap-clamp-ui-lib Issue-ID: CLAMP-669 Change-Id: I48eb979e3fbe110b718b96c0fcee08a2ced7a36b Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-06-03Removal of useless test filessebdet9-813/+174
Removal of useless test files used by previous tests Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I4172427046250fed52984c2b97532370727f0fa0
2020-06-02Removal of useless test filessebdet23-9142/+0
Removal of all useless test files not used anymore by any test Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ic273c2f2ef0eac4ae42174b954ebd4d3d70e5e23
2020-06-02Removal of useless test filessebdet4-268/+0
Removal of useless test files inherited from old tests removed. Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I2f906c724b8e98ba40afbea8482a93e6b263ef29
2020-05-28Fix crash at SDC deploysebdet4-11/+31
If CDS properties are not there, it can crash a standard VF resource blueprint deployment. Issue-ID: CLAMP-857 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I4172427046250fed52984c2b94531370727f0fa0
2020-05-27Create SVG in UIsebdet53-5051/+86
Remove the SVG generation from the backend and put it in the UI. Backend removal code + clean up of test resources Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ie9d6cd20f0135b459dbc85901b9a66f65002a85c
2020-05-20Create SVG in UIsebdet1-0/+1
Remove the SVG generation from the backend and put it in the UI Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Icfa9e107d83bb244ac3d87300d013555bfa0b037
2020-05-18Add info in the SVGsebdet6-90/+114
Add two additional fields in the SVG for the UI so that components can easily get the data without the need to access the models Issue-ID: CLAMP-852 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I872d3c8b0336d813e1a1cf590f6c8a06cccbe230
2020-05-05Add unit testxuegao4-6/+254
Add unit tests to improve code coverage. Issue-ID: CLAMP-844 Change-Id: I7792212d476103086e063cf8fe4a9abed1294fd6 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-28Fix VNF entityId in policiessebdet4-4/+4
Fix the VNF entity IDs value in json schema for each policies (in UI) Issue-ID: CLAMP-843 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9515b01422acdfc0ec36f10cc70994145e561d7f
2020-04-27Fix bugs reported by sonarsebdet2-5/+0
Fix bugs reported by sonar as critical, major, ... Issue-ID: CLAMP-841 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I7c33f83bc79be0b3b14b4f58f50a59471f3ab11d
2020-04-27Merge changes Id525d532,I91723b83Xue Gao1-1/+1
* changes: Fix bugs reported by sonar Fix bugs reported by sonar
2020-04-23Fix bugs reported by sonarsebdet1-1/+1
Fix bugs reported by sonar as critical, major, ... Issue-ID: CLAMP-841 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I91723b83289e25d6e27b0c925107e50314f441fc
2020-04-23Merge "Fix entityId bug"Christophe Closset5-5/+39
2020-04-23Merge "Fix refresh action"Christophe Closset11-77/+221
2020-04-23Fix entityId bugsebdet5-5/+39
A user defined entry has been added to the entity id by default, so that json editor falls back to that value when re-editing the policies Issue-ID: CLAMP-829 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I593163f87df9f97a19964428bf2016154dc9576d
2020-04-23Fix refresh actionsebdet11-77/+221
Fix the refresh action so that it well retriggered cds call when required, otherwise the refresh button is useless + get out the cds code from service installer Issue-ID: CLAMP-818 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia5784d75e1bd158ff775674fe6bf0c2c39b55ad4
2020-04-22Remove bugs and vulnerabilitiesxuegao2-46/+56
Remove bugs and vulnerabilities based on the sonar report Issue-ID: CLAMP-841 Change-Id: I49d0eeeedf69a0cbe3adf49cf115ab25aec7adfd Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-22Guard policy clean upxuegao12-709/+10
Remove guard policy related code, so that it will not be shown or created in the legacy policy UI. Issue-ID: CLAMP-825 Change-Id: I6c654fef9fd9df810fd48600c91ffef96db371cd Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-21Merge "Payload is expected as string in operational policy"Sébastien Determe10-524/+405