aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources
AgeCommit message (Collapse)AuthorFilesLines
2021-02-17Modify Backend for listing the policiessebdet1-3/+2
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>
2021-02-15Add New UI component for policies listsebdet1-1/+1
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>
2021-02-08Add new Camel routesebdet5-1419/+1511
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
2021-02-08Remove test usage of the AAF certificatesebdet3-2/+2
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>
2021-01-25Policy list and Pdpgroup merger codesebdet1-3/+3
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>
2021-01-22First integration of Policy model PdpGroupssebdet1-2/+36
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>
2021-01-14Fix sonarsebdet1-1/+1
Fix sonar report by re-enabling the jacoco in integration test phase (this is set in the policy integration parent) Issue-ID: POLICY-2922 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I283aca6bc0e8b2518b72854fad0289bbc082b78d
2021-01-07Remove previous releases + fix clamp leftoverssebdet1-8/+17
Remove clamp releases from that new policy project and fix also additional clamp leftovers Issue-ID: POLICY-2922 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I25cc246c4ec6b44dd105b03800c915c9c05c5f0b Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-01-05Change the java package namesebdet10-387/+387
Rename java package name to org.onap.policy.clamp instead of org.onap.clamp Issue-ID: POLICY-2922 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ic3255b90fd52a7b2689ae7a55f55ee7841abebac Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-10-15Fix creds issue with AAFsebdet2-3/+3
Fix the permissions not returned by AAF due to wrong code the clamp servlet. Issue-ID: CLAMP-956 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I06fac82fb04421f154b67b625e910853ade8583f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-10-09Fix the DCAE querysebdet4-566/+570
The DCAE deployment URL can contain URI parameters that crashes the URL used by HTTP4 Camel. Also the parameter connectionTimeToLive is removed as it is transmitted in each call. The SDC client is also updated to 1.4.1 Issue-ID: CLAMP-954 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ieebdfe009f4339188c75c7a3365546779a087561 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-10-08Fix issue with isLegacy()sebdet2-26/+6
Method has been removed, this must be removed from the policy camel code Issue-ID: CLAMP-948 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ic37db72c2499c2d56c08bd71ed900c0d939aa64b
2020-09-28Remove legacy operational Policysebdet2-2/+2
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> Change-Id: I0767d3da6d227d788e957a0fd50c4548b7c6290c
2020-09-15Fix the ssl configsebdet1-0/+1
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> Change-Id: Ic4483d56c86f52249b09b386cdbe505f2f2f2a66 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
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 dependenciessebdet1-14/+10
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-27Fix audit, metric and error logs as per logging specificationAshwin Sharma1-9/+41
Issue-ID: CLAMP-900 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com> Change-Id: Ia911e16ecd4a5a03f44c45d32ebc874ff8882895
2020-07-09Fix delete flow bugxuegao2-4/+22
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-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-05-27Create SVG in UIsebdet1-65/+0
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-18Add info in the SVGsebdet1-76/+76
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-04-23Merge "Fix entityId bug"Christophe Closset1-4/+15
2020-04-23Merge "Fix refresh action"Christophe Closset2-2/+24
2020-04-23Fix entityId bugsebdet1-4/+15
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 actionsebdet2-2/+24
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-22Guard policy clean upxuegao4-317/+5
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 "Remove legacy password encryption"Sébastien Determe2-25/+25
2020-04-21Remove legacy password encryptionJulienBe2-25/+25
This makes it easier to have a clean password policy on oom Issue-ID: CLAMP-796 Change-Id: Ib02e65e32daeeaeaa8faa10631dc62604734ab8c Signed-off-by: JulienBe <jb379x@att.com>
2020-04-20Fix the get statussebdet3-13/+41
The policy status goes to unknown because the status code returned is not good in some cases (failure with dcae comm) Issue-ID: CLAMP-827 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iae189f62b4c7061949ffd4c842465bf5e379b669
2020-04-16Remove policy from PEF when removing op policysebdet2-511/+583
The operational policy must be removed from the PEF when the user remove an operational policy (at least attempt to purge the PEF) Issue-ID: CLAMP-824 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I442c0890c391d43e8fcbdb89189d6ad2581db3af
2020-04-15Fix bug in delete policy due to changesebdet1-1/+1
Fix the delete policy that now fails due to isLegacy test Issue-ID: CLAMP-820 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ib21ffd419953b329feeb7c2199b7d661120178e2
2020-04-15Merge "Fix legacy policy submit issues"Xue Gao2-261/+84
2020-04-14Merge "CDS attributes are not shown properly in UI"Sébastien Determe1-12/+18
2020-04-15Fix legacy policy submit issuessebdet2-261/+84
Operational legacy policy does not support semantic versionin for get status and delete policies, it has to be changed to integer Issue-ID: CLAMP-820 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I78ff69b7502900d96fcc605fe997dd564dfa3e98
2020-04-14CDS attributes are not shown properly in UIVidyashree-Huawei1-12/+18
Handled for legacy and operational policy Change-Id: I504c4aa2531b19b09965ad1dbc03c9944931f77b Issue-ID: CLAMP-809 Signed-off-by: Vidyashree-Huawei <vidyashree.rama@huawei.com>
2020-04-08Update delete loop flowxuegao2-25/+39
Updating the delete loop flow. Issue-ID: CLAMP-816 Change-Id: I9ad5001b00f5f92a8ecc1f84379ee0e8ae2d196b Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-01Rework the CDS Json schemasebdet2-2/+2
Rework a bit the CDS Json schema, so that the payload info is good now Issue-ID: CLAMP-805 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I807e00536befe53d266b2dee279bde29b0f7d0cb
2020-04-01Rework the logssebdet6-168/+379
Rework the logs so that it's easier to debug the issues on a lab Issue-ID: CLAMP-804 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9cff98205c2135a759e7e6156ab39f8af8129927
2020-03-26logback can't be configured with both scan and springPropertyJulienBe1-4/+1
No proper fix available yet source: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-logback-extensions Issue-ID: CLAMP-794 Signed-off-by: JulienBe <jb379x@att.com> Change-Id: If2145e18583ccecf96e126e8f73ddfd251eff656
2020-03-24Improve metadata supportsebdet3-79/+78
Improve the metadata support for CDS and default values Issue-ID: CLAMP-786 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I8a24e31a93ff1e288ec8f0f6d522b1b15d39a8d2
2020-03-23Fix the CDS callssebdet1-135/+216
Fix the CDS calls for generic tosca policies, the new tosca parser must be interrupted so that clamp can do json schema enrichment Issue-ID: CLAMP-786 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ib7e85a6cc3849f614a3025779d29e8024f7a2ef2
2020-03-23Populate deployment parametersxuegao1-2/+2
Create deployment parameters while creating loops. Issue-ID: CLAMP-788 Change-Id: Icb4ebc786b87468846692744f27b697734015401 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-19Fix loop submit bugsxuegao1-4/+4
Update the payload for policy creation and pdp group activation and update the policy url accordingly. Issue-ID: CLAMP-787 Change-Id: If39eeaccf780f1222b99ffc4dd5d7ef1460c4962 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-18Fix pdp group bugxuegao1-1/+1
Update the url used to get the pdp group info from Policy. Issue-ID: CLAMP-782 Change-Id: I283f4296ea0efaea475e1c142979a0754feb1a19 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-16Fix the policy synchrosebdet1-2/+2
Fix the periodic policy synchro issue due to wrong format expected. Issue-ID: CLAMP-781 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I97d1ac28b5427378b6c4a0fa67415cc728f46b87
2020-03-16Rework the policy refreshsebdet1-9/+44
Rework the policy refresh for the new unique dialog policyModel Issue-ID: CLAMP-578 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ie8c91223e92c1e344d7ead5784ffea33d4f6a00f
2020-03-16Fix the legacy policiessebdet2-525/+506
Fix the legacy policies not displayed in the UI properly due to the new PolicyModal dialog. Issue-ID: CLAMP-779 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I8070d8c57e43c9a386e09475f0d377f91104aef1
2020-03-13Fix the new tosca convertersebdet5-230/+719
Fix the metadata section analysis and make the tosca parser more configurable (in applications.properties) Issue-ID: CLAMP-580 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9068bd9dc89861c640660a7f78fae2cb70bdc178 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-03-13Merge "Fix the tosca converter"Xue Gao4-17/+7
2020-03-13Merge "Add remove op policy option"Sébastien Determe1-0/+30