aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
AgeCommit message (Collapse)AuthorFilesLines
2021-05-13Modular structure of clamp including controlloopSirisha_Manchikanti139-17039/+0
This commit is the first commit that puts in multi module structure while changing the existing CLAMP code as little as possible. It adds a structure where common, models, participant and runtime are direct children under clamp, and current clamp code is moved under runtime. This runtime directory will host controlloop runtime code in later commits. Issue-ID: POLICY-3215 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I15bc8be92ed020343bff4024c4718fec462c40d7 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-04-26Remove dead codesebdet3-834/+2
Remove dead code due to change done to add tosca file to PEF directly. Issue-ID: POLICY-3229 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I4e48fd5401e304b131406b739268134dd7e7997f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-04-23ToscaFileSelectorsebdet2-3/+4
The UI code that manages the tosca file selector that will be sent to clamp be + fix Rest Camel endpoint that always want ot convert http body to JSON (due to Camel upgrade) Issue-ID: POLICY-3229 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I6148276d4c527f29db904a76655055c19d4e2023
2021-04-21Merge "Fix Sonar Crypto issues"S�bastien Determe6-223/+46
2021-04-21Fix Sonar bugssebdet1-1/+1
Fix bug introduced in AAF authentication due to changes done to fix Sonar issues Issue-ID: POLICY-3200 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I92aae94010cc8275bca5b1fe81bf54ab80f5f267
2021-04-21Fix Sonar bugssebdet1-4/+20
Fix sonar bugs reported in the ClampServlet Issue-ID: POLICY-3200 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I8d823d0b25d7379bb0fc8c87f31628bc63f51f5d
2021-04-21Fix Sonar Crypto issuessebdet6-223/+46
Fix this problem by removing the CryptoUtils that could be replaced by AAF cadi call (this was already in place in the code). The OOM sdc controller password will have to be modified as well. Issue-ID: POLICY-3201 Issue-ID: POLICY-3200 Change-Id: I6dfd9abb691afb3548d4e68c8759351ad02a30da Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-04-21Fix issue in log + Pdp payloadsebdet2-51/+59
Fix log issue that prevent the error to be reported properly + fix the pdp payload construction Issue-ID: POLICY-3205 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ic80ea4f679719378fc8134f7282b361306d797b0
2021-04-20Force issue in pdp dep to raise exceptionsebdet1-1/+3
Force the pdpDeployment call to raise exception in case of issues to have a better view of the problem in the prod Issue-ID: POLICY-3203 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I21ff763f9810bcfa68665f5105b0bff0e50b25ef
2021-04-16Fix Sonar security HotSpotsebdet4-15/+22
Fix sec issues reported by Sonar Issue-ID: POLICY-3200 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I6cdd3ff24d150333ab69e959bae39e3f0c30263f
2021-04-16Fix Sonar bugs & sec issuessebdet6-110/+133
Fix all bugs & sec issues reported by Sonar Issue-ID: POLICY-3200 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ifb3d0d3602586b8defb0826e799ef0e24742235c
2021-04-15Update dependenciessebdet10-129/+155
Update dependencies to remove some issues reported by Nexus-IQ. Issue-ID: POLICY-3169 Issue-ID: POLICY-3120 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia8939f0c85ac4087c3fc2c71b66914d6c7178347
2021-04-07Rework the backend to support PDP updatessebdet3-75/+150
Rework Pdp payloads builder so that we can integrate different actions in the same batch + Add a new endpoint to support pdp payload&query to PEF from UI Issue-ID: POLICY-2930 Issue-ID: POLICY-2931 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3c933272419770595b706f6950f821220a76f778
2021-04-01Rework the backend to support PDP updatessebdet5-135/+212
Add new mem structure so that we do not need to parse the same Json for each policy/type + rework the camel flows so that we use the same code for loop and policies related calls Issue-ID: POLICY-2930 Issue-ID: POLICY-2931 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3c30c4f87cf669b40511472d518fe5ccc89f56f0
2021-03-11Introduce a new json editor componentsebdet4-43/+102
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>
2021-02-23Update clamp to 6.0.1sebdet1-3/+3
- 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>
2021-02-23Refactoring java packagessebdet3-7/+3
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-19Add code in UI to create new policy versionsebdet1-1/+3
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
2021-02-18Introduce a new endpoint to create policysebdet2-3/+18
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
2021-02-17Fix the Tosca Converter to Json Schemasebdet3-4/+24
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
2021-02-17Modify Backend for listing the policiessebdet6-7/+54
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-6/+9
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 routesebdet1-3/+10
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 certificatesebdet1-3/+8
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 codesebdet6-41/+174
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 PdpGroupssebdet6-321/+124
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-05Change the java package namesebdet139-400/+393
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>
2021-01-05Align the clamp code on policy projectsebdet51-168/+102
Inherit from the policy integration parent + fix all checkstyle issues detected by policy checkstyle (google) config Issue-ID: POLICY-2922 Change-Id: I616846bbda8bb0f6250a842c248836c40e1068cf Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-11-09Fix blueprint installationsebdet3-28/+43
This fix crashes the blueprint installation when it contains a link to a microservice that does not exist in the policy engine. Issue-ID: CLAMP-977 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I659d864d202d9d77ef14560b1391397196ae1fbe
2020-10-23Fix the AAF loginsebdet1-6/+7
Current code does not check the right Principal class name Issue-ID: CLAMP-956 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I779d6c15ae7fc0240becf106ed40cd3c0b80f22e
2020-10-23Fix the AAF loginsebdet1-1/+1
Current code does not check the right Principal class name Issue-ID: CLAMP-956 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia69c68c7dfa69ce385ff2844e557fed722ae1bb6
2020-10-15Fix creds issue with AAFsebdet1-11/+9
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-12Fix sdc notif when already_deployedsebdet1-1/+1
Send also a notif when the deployment has already been done Issue-ID: CLAMP-955 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ic58a93d44506928166500d801891ebe8044adf28
2020-10-12Send sdc notifssebdet1-3/+50
Send the right COMPONENT_DONE_OK/COMPONENT_DONE_ERROR to SDC when transaction is complete, so that user can see that in the sdc UI. Issue-ID: CLAMP-955 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I2632f721819cf612a6816bd6caf5d961df6b3106 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-09-28Remove legacy operational Policysebdet5-398/+13
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-15Revert 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> Change-Id: I9e928512bf44924e179b8726b7665209a82fd94f
2020-09-15Fix the ssl configsebdet10-116/+130
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-28CLAMP should not display all CDS workflow propertiesroot13-50/+119
CLAMP should not display all CDS workflow properties Issue-ID: CLAMP-856 Signed-off-by: root1 <vidyashree.rama@huawei.com> Change-Id: I98fc46c9c9ba574a3606740921d74743cb6f38ea
2020-07-27Fix audit, metric and error logs as per logging specificationAshwin Sharma5-101/+235
Issue-ID: CLAMP-900 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com> Change-Id: Ia911e16ecd4a5a03f44c45d32ebc874ff8882895
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-05-28Fix crash at SDC deploysebdet1-5/+11
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 UIsebdet15-852/+14
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 SVGsebdet4-10/+27
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-28Fix VNF entityId in policiessebdet1-1/+1
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 Closset1-0/+11
2020-04-23Merge "Fix refresh action"Christophe Closset6-67/+186