summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-02-28Release policy/models9.0.1-ONAP2.5.2jenkins-releng43-43/+43
2022-02-28update parent,common references in policy/models pomliamfallon1-2/+2
updated the parent and common references in the policy/models pom *** This commit is generated by a PF release script *** Issue-ID: POLICY-3958 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I91f2488550830dcb51a479d1491db809af1d93f6
2021-10-25Point to Istanbul snapshot dependency9.0.0-ONAPRam Krishna Verma1-2/+2
Issue-ID: POLICY-3788 Change-Id: I84dee86920006f66e0c371af99b027849521c470 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-10-14Change policy-models default branch on istanbula.sreekumar1-1/+1
Change-Id: Ifbef0dbf0290d025896b694c73360edc84dad439 Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-10-13Bump policy/models to 2.5.2-SNAPSHOTliamfallon44-44/+44
Issue-ID: POLICY-3696 Change-Id: Idbdbbe56e5daac2ce8ce780d2c8ce5ff54b8e006 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-13Release policy/models artifacts for version 2.5.1liamfallon1-0/+4
Issue-ID: POLICY-3696 Change-Id: Iee534442d6132be4ae760f47f742927defd401dc Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-13Point at released policy/common and docker imagesliamfallon3-4/+4
Issue-ID: POLICY-3696 Change-Id: I438f998a2f93ab1f00509a56f918216b50787fb7 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-06Support in_range TOSCA Constraintliamfallon4-3/+134
The TOSCA in_range constraint is not supported, causing errors to be thrown in TOSCA control loop constraint edits. Issue-ID: POLICY-3695 Change-Id: I95dec4118ce8572c5b76d528878c6782856e0a53 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-20Revert ignoring tests in modelsRam Krishna Verma1-14/+0
Reverting ignoring of tests in models as the staging job has been marked to skip tests. Issue-ID: POLICY-3587 Change-Id: Ia5946d3b9402ba7810815e73eb207ac5c57a6c74 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-15Bump policy-models to 2.5.1-SNAPSHOTliamfallon44-45/+45
Issue-ID: POLICY-3587 Change-Id: Idca2237777c1f7bda3fab89934dc97b9360fbc3d Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-14Release policy-models 2.5.0liamfallon1-0/+4
Issue-ID: POLICY-3587 Change-Id: I7fab026ee4f58baf73f960aba0d35f77fbd41257 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-13Work around test failure in staging jobliamfallon1-0/+14
The "keytool" program does not exist in the Jenkins staging job environment, so the test case that checks for a keytool error message fails because an unexpected error message is received. Other tests also break so the tests are morked with @Ignore for now. Issue-ID: POLICY-3587 Change-Id: Ic43e5043c769ff6d2cf604f2a0f29fd4f6931b4b Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-13Use policy-common released version in policy-modelsliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: I609d0657aa1991ed7d3c1022af2ade25a6905f8f Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-09Point at released policy-parentliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: I799b3f36d6d362ba82dd359feb57accd9a7b53ae Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-09Merge "Update INFO.yaml"Pamela Dragosh1-10/+13
2021-09-08Update INFO.yamlliamfallon1-10/+13
Update the INFO.yaml file with latest information. Issue-ID: POLICY-3552 Change-Id: I95b9164e7a208ca38dca31f5e71c65bc30531b84 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-02Add check for null for policies and policy typessaul.gill1-3/+10
Add check when reading policies and policy types from db Issue-ID: POLICY-3606 Change-Id: I7a1d96e4be1841243619e89c31dabc3e761dd17a Signed-off-by: saul.gill <saul.gill@est.tech>
2021-08-31Add topics end point to dmaap simRam Krishna Verma4-3/+75
Add "/topics" end point to dmaap simulator. It will be used in CSIT tests to verify consolidated health check. Issue-ID: POLICY-3605 Change-Id: I6814d6dd021e0d98bd99754d4e68f789ef405353 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-20Fix sonars in modelsJim Hahn7-4/+12
Fixed: - use "var" - change constructor to protected - add equals() to subclasses Issue-ID: POLICY-3094 Change-Id: Ia62716b1a740b4475e54e496330f50aa7fb404d7 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-18Add PDP-TOPIC-CHECK messageJim Hahn5-6/+119
Added a new PdpMessage subclass that a PDP can use to verify its ability to send/receive to/from the PDP-PAP topic before it sends its first registration message. Issue-ID: POLICY-3531 Change-Id: Ied61caa805e93e25732385bf91272b4fc248fd69 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-02Upgrade to cds 1.1.5-SNAPSHOTRam Krishna Verma5-15/+15
Upgrading policy components to cds 1.1.5-SNAPSHOT to verify the contract and fixes coming up in the next released version. Issue-ID: POLICY-3516 Change-Id: I93602c392a5f917e68a7a1a74eaf0f188f520c39 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-29Merge "Add "configure" operation to xacml"Ajith Sreekumar13-33/+444
2021-07-28Add junit test for empty statistics filterJim Hahn2-1/+13
Also removed the version field from the filter, as it is not applicable to the PDP instance name. Issue-ID: POLICY-3511 Change-Id: I17e8d2d6646a27736a827b9e9e17881d6b0a3795 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-27Add "configure" operation to xacmlJim Hahn13-33/+444
Added "configure" operation to xacml simulator and actor.xacml. Issue-ID: POLICY-3502 Change-Id: Ia206303c65ce4e54187d818da9253dabfe864d62 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-26Remove actor.guard from modelsJim Hahn18-1301/+0
Replaced by actor.xacml. Issue-ID: POLICY-3506 Change-Id: I41b6a9918df31b251eb93105fc9413deda04daf3 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-23Remove unused statistics methodsJim Hahn8-96/+6
The getPdpStatistics method should be removed as they're functionality has been subsumed by getFilteredPdpStatistics. Issue-ID: POLICY-3511 Change-Id: I98da98ac483705bea46ebaa0619257195be6b518 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-23Limit the number of statistics records returnedJim Hahn3-82/+158
Added limit of MAX records (100). Also, if unspecified, or negative, it defaults to MAX records. Issue-ID: POLICY-3511 Change-Id: I0170951cd79818af5944adf5d29480bad4de815b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-22Refactor GuardOperationJim Hahn4-115/+308
Extracted DecisionOperation superclass out of GuardOperation. Issue-ID: POLICY-3502 Change-Id: Ice766e9c33756a5780726c75a0283f89c85cabad Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-21Added Xacml actorJim Hahn23-21/+1335
Cloned the guard actor to use as a starting point for creating a more generic actor for interacting with the xacml-pdp. Also renamed various classes. Issue-ID: POLICY-3501 Change-Id: I9bd0107845de41a349d56259e6cfa6a3180efa25 Signed-off-by: Jim Hahn <jrh3@att.com>
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