aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources
AgeCommit message (Collapse)AuthorFilesLines
2021-05-20Merge master into tosca-poc branchliamfallon29-9026/+0
This review was created with the commands: git co master git pull git co tosca-poc git pull git merge -X theirs master With this merge, the CLAMP master branch is merged into tosca-poc, and, apart from the tosca-controlloop directory, they are identical Issue-ID: POLICY-3215 Change-Id: Iaa1c4894b33508f8bb75b7d1c0dd414964497625 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-03-16Introduce a new json editor componentsebdet2-15/+18
Add this a new react component so that the json editor can be called within the policies table + Add the tosca tab + Fix for Submit operation in clamp-api-v2.xml Issue-ID: POLICY-3106 Issue-ID: POLICY-3124 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I18ab3a6034cac719525774f11b2c17f0a14bc2aa Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 1e2760ea1ee4baa9db0e921907f3491fda795136)
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-02-25Merge "Change PAP Urls called" into tosca-pocLiam Fallon2-4/+7
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-25Add code in UI to create new policy versionsebdet1-103/+109
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-23Introduce a new endpoint to create policysebdet2-127/+223
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-19Modify 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> (cherry picked from commit 3718a16bedbc4a5ecf2593abcb2075238fa99767)
2021-02-19Add 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> (cherry picked from commit eb8e3f1dd891ac98f1bbaf35a2a0679146785236)
2021-02-10Add 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 (cherry picked from commit 9d04a9cc8c6f4b12ae60cc0d4d42f71085f72328)
2021-02-09Policy 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> (cherry picked from commit 76a0b386bcf5f30533c85f6d26c559bea19ce0fb)
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> (cherry picked from commit d2178bc9f7d6c06f60a3a8afecd83e428d84cd78)
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> (cherry picked from commit 078c34d0c2e439d8a148a2cd4d7545c6b7f56acb)
2021-01-20Add tosca-controlloop directory for TOSCA-POC devliamfallon2-9/+18
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 branchliamfallon12-869/+853
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 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> (cherry picked from commit f01d3e8377fa4e5a9c1b129fe446575d132f91c2) Change-Id: I4a7f6741417abd55f2568bd8e39ce7c9d753dd37
2020-09-30Fix 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> (cherry picked from commit 536db7b811eba341aef48a745b495da068d170eb) Change-Id: I3e0edee985f68499549866d43768c949f7af6107
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