aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-07-21Upgrade CDS dependencyk.kedron6-16/+16
- New CDS client libraries. - Update code to use new CDS BlueprintProcessingService Change-Id: I00fb044908774a48755ff8d9ebb32e055a74c819 Issue-ID: POLICY-3507 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2021-07-19Add attributes to Decision ResponseDragosh, Pamela (pd1248)1-0/+1
In order to support returning specific attributes, this field will be needed. Issue-ID: POLICY-2865 Change-Id: I9901e89abeb2fd375d6e218d4d39e736ff8829da Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2021-07-13Merge "Delete extra simulator docker images"Ram Krishna Verma39-1987/+42
2021-07-13Update Pam's email INFO.yamlDragosh, Pamela (pd1248)1-1/+1
Issue-ID: POLICY-3484 Change-Id: Ibbba0d4c981df0b27ac76aed97a64dab27871750 Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2021-07-12Delete extra simulator docker imagesJim Hahn39-1987/+42
The policy-models-simulator docker image, built from models-sim/packages, subsumes the functionality of the other simulator images. Deleted the other images. This simulator still needs some of the code from the dmaap-sim modules, so only deleted the code from the latter that is not needed by this simulator. Also modified the simulator launch script to use sh instead of bash. Issue-ID: POLICY-3474 Change-Id: Ie7f69b327a18c3e07f154124ae38975d5e6924f0 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-12Add default min records for policy auditRam Krishna Verma2-3/+6
Adding default min records as 10 for policy audit provider. This is inline with our discussions and design doumented here https://wiki.onap.org/display/DW/PAP+REST+API+changes+for+Istanbul+release Issue-ID: POLICY-3340 Change-Id: I5bab5f186f2591b1a2f2c42e9851ad88f73c8dfb Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-12Merge "Handle numRecords default setting when built as 0."Jim Hahn2-119/+23
2021-07-12Handle numRecords default setting when built as 0.adheli.tavares2-119/+23
Check the numRecord to be set as DEFAULT_MAX_RECORDS when not added to the auditFilter (builder set it to 0). Issue-ID: POLICY-3340 Change-Id: I25ad83bbea71ddd82064aec3069ffa4cbce5aac1 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-07-12Remove unused DAO statistics methodsJim Hahn2-71/+0
The PDP statistics provider had several filter methods, at least one of which has now been subsumed by another and is no longer being used. Issue-ID: POLICY-3405 Change-Id: If603eaf3df36fd4e6e3555376bf1b95144ec8eb1 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-07Update pdp statistics to count deploy/undeploy separately.adheli.tavares4-11/+46
Issue-ID: POLICY-3383 Change-Id: I41e2668bdebd732149db0ccbe160b67b9952a8d9 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-06-28Update policy-models for checkstyle 8.43liamfallon3-10/+12
Issue-ID: POLICY-3209 Change-Id: Ic45f889ab4d0ed24f6c1fc1aaece0601636e7a10 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-23Add "source" to PAP-PDP messagesJim Hahn4-4/+18
Added a "source" field to the PdpStateChange and PdpUpdate messages so that PAP can record a unique name in the message, for logging purposes. In a separate review, planning to add a method in policy-common for creating the unique name. Once that has been created, it will be used by PAP, to populate the "source" field, and all PDPs, to populate the "name" field in the PdpStatus messages. Issue-ID: POLICY-3409 Change-Id: I86c97702abe62a5672720330df50b7b106187661 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-22Merge "Add example for pnf policy chaining"Pamela Dragosh2-2/+83
2021-06-22Add timestamp to Pdp recordsJim Hahn7-42/+85
To support the case where multiple PAPs are running, added a timestamp to the PDP records so the PAPs can all be kept in sync as far as when a PDP was last responsive. Issue-ID: POLICY-2898 Change-Id: Ia7e0fd17363ff5827564cbc1537e516156b7f53a Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-21Add example for pnf policy chainingRam Krishna Verma2-2/+83
Adding example for policy chaining in drools-pdp for PNF. This will be later referenced in the documents in upcoming review. Issue-ID: POLICY-3382 Change-Id: Ifce5cf17e869566725a8e15fd391fb130c115e0f Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-21Fix new checkstyle issues in modelsJim Hahn9-18/+13
The new version of checkstyle identified new issues. Fixed those. Issue-ID: POLICY-3094 Change-Id: I85314bc0249cba0020a0aefbc250851a2b646dd9 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-21Merge "Use lombok for errors pap, pdp, sim-dmaap, sim-pdp"Jim Hahn8-72/+30
2021-06-21Use lombok for errors pap, pdp, sim-dmaap, sim-pdpJim Hahn8-72/+30
Issue-ID: POLICY-3396 Change-Id: Ib2c9bc5dc199e15ae9ca077031c0f2cfbc5b6a81 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-21Use lombok for events, base, daoJim Hahn15-143/+49
Issue-ID: POLICY-3396 Change-Id: I7b37efc13a25e0e27d63a85a3ee291e91a4e1682 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-18Merge "Use lombok annotations for sdnr, simulators"Jim Hahn15-162/+57
2021-06-18Merge "Use lombok annotations for so, vfc"Jim Hahn27-176/+43
2021-06-18Merge "Use lombok annotations for aai, appc, appclcm, cds"Jim Hahn17-145/+61
2021-06-18Merge "Use lombok annotations for tosca, rest, sdnc"Jim Hahn19-101/+28
2021-06-18Merge "Use lombok annotations for actors"Jim Hahn11-81/+46
2021-06-17Use lombok annotations for actorsJim Hahn11-81/+46
This is the last one for policy-models! Issue-ID: POLICY-3396 Change-Id: I05b114a57a720a6ae8ae073b80c8bded36d0d06d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-17Use lombok annotations for aai, appc, appclcm, cdsJim Hahn17-145/+61
Issue-ID: POLICY-3396 Change-Id: I81b6b0c7929809ffaeadadd6144e9b9f394bfdc8 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-17Use lombok annotations for tosca, rest, sdncJim Hahn19-101/+28
Issue-ID: POLICY-3396 Change-Id: I3c9e5ee7ea6da2bab4fe37504d39f7ce63868887 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-17Use lombok annotations for sdnr, simulatorsJim Hahn15-162/+57
Issue-ID: POLICY-3396 Change-Id: I16787f72b0529417c58b9e83a21880baaba92a3d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-17Use lombok annotations for so, vfcJim Hahn27-176/+43
Issue-ID: POLICY-3396 Change-Id: I33781c72dd1c0b9a7a525c23e81c4259fa32384f Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-17Add example for policy chainingRam Krishna Verma1-0/+81
Adding example for policy chaining in drools-pdp. This will be later referenced in the documents in upcoming review. Issue-ID: POLICY-3382 Change-Id: If2189422cb7e9ac35fb93e0fd9ae44f1cd412686 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-15Replace method parameters with filter parametersJim Hahn8-104/+127
Added more methods taking filter parameters instead of individual method parameters. Removed the old methods. Added genOrderClause(). Issue-ID: POLICY-3094 Change-Id: Ie9d8c13a8d4a7f81e284f07fce3d96a35918a114 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-15Fix sonar in policy/modelsRam Krishna Verma2-3/+5
use "var" for local variables Issue-ID: POLICY-3077 Change-Id: Ia1ea62e03c016d336c9b11b07b0ea941ba905497 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-14Fix sonars in policy-modelsJim Hahn13-177/+451
Fixed: - too many parameters in method call Fixed it by introducing PfFilterParameters. However, classes having the Builder annotation are not easily subclassed, so introduced an interface, too. Issue-ID: POLICY-3094 Change-Id: Ida99522a542b1296b367c55b7e8f8e83783c2e4f Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-03Merge "Exposing the Audit provider through Models provider."Liam Fallon10-2/+133
2021-06-03Fix junits for new bean validation field namesJim Hahn1-2/+2
Issue-ID: POLICY-3333 Change-Id: I339024677a2d090f61cc55d1b056b832c87d231a Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-03Exposing the Audit provider through Models provider.adheli.tavares10-2/+133
Change-Id: I4a3a28b6dbbfbad533a69cf46c545ece7e0b147e Issue-ID: POLICY-2899 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-06-03Merge "Upgrade CDS dependency"Liam Fallon1-52/+5
2021-06-02Merge "Handling Policy deploy/undeploy audit models"Jim Hahn10-8/+842
2021-06-01Upgrade CDS dependencyRashmi Pujar1-52/+5
CDS client libraries are exposed by a different maven module making is much more cleaner to use. The only drawback is we need to go back to older version of grpc-testing artifact due to conflicts. Issue-ID: POLICY-3338 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: I98c79de7f12feefbae7c42c4c8f26357801b44f9
2021-05-28Merge "No-sonar on the wrong line"Ram Krishna Verma1-2/+2
2021-05-28Merge "Remove policies field from PdpUpdate message"Jim Hahn5-25/+35
2021-05-28No-sonar on the wrong lineJim Hahn1-2/+2
Tried putting NOSONAR comment at the end of the statement, because it seems like checkstyle/sonar doesn't like comments in the middle of a statement. Nonetheless, sonar still reports an issue on the line with the "SELECT" statement, so I guess there's no choice but to move NOSONAR to the end of that line. Issue-ID: POLICY-3094 Change-Id: If26ad0b1e7dcc9c7aa963da10a9c5160a8fe272d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-28Handling Policy deploy/undeploy audit modelsadheli.tavares10-8/+842
Added a new Entity to store information when a Pdp Policy is deployed or undeployed and its create/retrieve methods. Change-Id: I35b3608c878bbfbbee0a99a124d100a48fe08131 Issue-ID: POLICY-2899 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-05-27Fix more sonars in modelsJim Hahn2-2/+9
Fixed sonars: - SQL injection - use re2j instead of regex Issue-ID: POLICY-3094 Change-Id: I553bd6aa5832d71a5ac33320e2d0d022f9a00e98 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-27Remove policies field from PdpUpdate messagewaynedunican5-25/+35
Issue-ID: POLICY-3323 Change-Id: I14dafe4a20f95e2ebe4279e5b6ae141e2ee4fc48 Signed-off-by: waynedunican <wayne.dunican@est.tech> Signed-off-by: WayneDunican <wayne.dunican@est.tech>
2021-05-24Adjust indexes for Op History tableJim Hahn1-4/+4
Reordered one index to put requestId first, as that should significantly reduce the number of index entries to be examined. Added endtime to another index, which should also reduce the number of index entries to be examined for look-ups by time. Issue-ID: POLICY-2874 Change-Id: I29c10fb9cabb22b3520ed1b14d7fe3fd9db40a15 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-12Fix sonars in policy modelsJim Hahn14-79/+71
Fixed: - a few other "var" cases - use re2j instead of java.util.regex - use correct class for constants - remove unused constants Issue-ID: POLICY-3094 Change-Id: Ifcb2b0623e8df0527f0a279e666d062422978ded Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-11Merge "Fix sonars in policy models"Liam Fallon38-99/+95
2021-05-11Merge "Fix sonars in policy-models impls & simulators"Liam Fallon36-160/+153
2021-05-10Fix sonars in policy modelsJim Hahn38-99/+95
Fixed: - use "var" Issue-ID: POLICY-3094 Change-Id: Id5ea7ab049c2018744afa75a55d44e47f216d5bc Signed-off-by: Jim Hahn <jrh3@att.com>