summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-05-26Create secondary indicesJim Hahn1-2/+8
Modified the sql script to create the secondary indices. Issue-ID: POLICY-2581 Change-Id: If0bdaa9d8769e99bd47b8780251d96dba172b3e2 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-05-26Change CLC logic for updated OPHist DB entries.pramod.jamkhedkar10-440/+54
Change the CLC policy logic to match the udpate Operations History DB rules. Now if a record has outcome = Started, it is considered to be in progress. Else it is considered to be complete. Issue-ID: POLICY-2583 Change-Id: If3f626bfec2d0656e43a26929107f68ff27af020 Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
2020-05-21Add secondary indices to operationshistory tableJim Hahn1-4/+5
Queries to the operationshistory table will degrade substantially as more records are added to the DB. The Dbao class should be moved to policy-models, but for now we'll just update it in both places (i.e., drools-apps and xacml-pdp). Issue-ID: POLICY-2581 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: Icc4529e56968ceda4d9b63a8ccea6ba219250506 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-05-21Bump xacml-pdp master to 2.3.0-SNAPSHOTa.sreekumar17-18/+18
Change-Id: I4e2a3a7a89eb3e59111c0a2bff70624d9f987abb Issue-ID: POLICY-2514 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-05-21Bump xacml to 2.2.3-SNAPSHOTa.sreekumar17-17/+17
Change-Id: I753851b22200de1f69489d13a283832c469fab22 Issue-ID: POLICY-2514 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-05-21Release xacml 2.2.2 docker image6.0.0-ONAPa.sreekumar1-0/+8
Change-Id: I8d3ba3c01708ed0876bfc1c135be7e9106803ce8 Issue-ID: POLICY-2514 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-05-20Release xacml-pdp 2.2.2 artifactsa.sreekumar1-0/+5
Change-Id: I1538a4c7eede93ae2c9e8274d9bb228546c26cf6 Issue-ID: POLICY-2514 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-05-20Changed cd path.pramod.jamkhedkar1-1/+1
Changed the path of coordination directive by removing src/main/resources Issue-ID: POLICY-2573 Change-Id: I46613e50ef464e0a61e0f177008520575c391c00 Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
2020-05-20Merge "Removing unused imports."Ram Krishna Verma1-5/+0
2020-05-19Removing unused imports.pramod.jamkhedkar1-5/+0
Issue-ID: POLICY-2573 Change-Id: I0fd392cb7027c56bb8fd4a6d9a0b3fd558dba495 Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
2020-05-19Point to released artifactsPamela Dragosh1-3/+3
Issue-ID: POLICY-2514 Change-Id: I4b4e68ced59d0ece261ec2f33f71f4f12494c699 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-05-19Change CLC granularity to CL level.pramod.jamkhedkar7-30/+21
Change CLC granularity from target level to CL level. Remove the target matching for the db query at PIP level. Issue-ID: POLICY-2573 Change-Id: If9ba1a4d22c3b8bc5dfce0632f7037ad085f6ea6 Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
2020-05-08Final blacklist fix for multiple entriesPamela Dragosh3-3/+12
The last change wasn't quite right, this has multiple AndOf's under a single AnyOf. Multiple AnyOf's are treated as AND's, but what we really want is a set of OR's. Issue-ID: POLICY-2490 Change-Id: I7336643302ccf7982c91a9c082d17bcf0adb4ac8 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-05-07type_version is now mandatoryPamela Dragosh6-0/+8
Per this review: https://gerrit.onap.org/r/c/policy/models/+/107250 Issue-ID: POLICY-2538 Change-Id: I0b7711c1adc73295092996cd3a1ec7979fd2b4ba Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-05-01Update S3P tests for xacml-pdpJim Hahn3-343/+2571
Modified jmeter S3P tests per new tosca models. Also added tests for "default" guard, naming, and optimization policies. Issue-ID: POLICY-2455 Change-Id: I4607fa0fb5bec1949c6daae6a00948310e1b5531 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-04-27Point to latest SNAPSHOTSPamela Dragosh1-3/+3
Pull in glassfish security fix and latest models/common/parent updates. Issue-ID: POLICY-2510 Change-Id: I9fb587781a37142f6c386db940d48bf74cd9d35e Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-15Bump xacml-pdp 2.2.2-SNAPSHOTPamela Dragosh17-17/+17
Issue-ID: POLICY-2378 Change-Id: I542884aed2acbef7e1c7e431f209ea61108e2048 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14Release xacml-pdp 2.2.1 docker imageRam Krishna Verma1-0/+8
Issue-ID: POLICY-2378 Change-Id: Ib5d2b16592f2f056f2f22cd3ce267457b660a3e2 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-04-14Release xacml-pdp 2.2.1 artifactsRam Krishna Verma1-0/+4
Issue-ID: POLICY-2378 Change-Id: Ib2ccb326b32f38c2c336df74c402318b5b836f57 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-04-14Point to released common/modelsPamela Dragosh1-2/+2
Issue-ID: POLICY-2378 Change-Id: I363d097abb35cfdf1cbb703be31a78e2748b0334 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14Fix blacklist translator and vs orPamela Dragosh2-12/+30
The blacklist entries should be treated as an or (AnyOf) vs an and (AllOf). Issue-ID: POLICY-2490 Change-Id: Id4eb823e18c59d84d4ca28b13f6a09794d36365f Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-13Fix integer converted to doublePamela Dragosh2-4/+7
Use policy/common map double converter to ensure integers saved in policy content do not get converted to doubles. Issue-ID: POLICY-2486 Change-Id: I887c6b5c337e2594c425b645af4b2668d06715bd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-11Point to released parent, common modelsPamela Dragosh1-3/+3
Issue-ID: POLICY-2378 Change-Id: Iacc2b01e7136ea9126bdb4943d1984a83c805a68 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-08Build tarball with default profilejhh1-0/+3
Issue-ID: POLICY-1479 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I03c81bf67326f9b1a67cd04378e53814b6944718
2020-04-07Point to parent SNAPSHOTPamela Dragosh1-1/+1
Issue-ID: POLICY-2378 Change-Id: I91adcb852d414bc7949795740ab0b7da0b55eab1 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-01Fix optimization supported typesPamela Dragosh2-5/+7
To support 5G slicing use cases, we will support any policy type that derives from onap.policies.optimization Similar in functionality to monitoring Issue-ID: POLICY-2460 Change-Id: I48b071a64b917cea44eb64149539875ba33e2ef5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-27Point to latest snapshotsPamela Dragosh1-2/+2
Issue-ID: POLICY-2378 Change-Id: Ib7304c9c5ae552505fdad267bd0e94df9b35e950 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-25Point to models 2.2.2Pamela Dragosh2-4/+3
Issue-ID: POLICY-2378 Change-Id: Iecf281253baae6548575890f0c919dedc36a3787 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-24Bump xacml-pdp to 2.2.1-SNAPSHOTJim Hahn17-17/+17
Issue-ID: POLICY-2378 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I819c9a356ca09e9baf75662bb6cd574540f41206
2020-03-24Merge "Release 2.2.0 xacml-pdp docker image"Pamela Dragosh1-0/+8
2020-03-24Release 2.2.0 xacml-pdp artifactsJim Hahn1-0/+4
Issue-ID: POLICY-2378 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I29210f82ac30f5a5e92d7308a93c3cb652b0bcd3
2020-03-24Release 2.2.0 xacml-pdp docker imageJim Hahn1-0/+8
Issue-ID: POLICY-2378 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I82b3ca9dc3a7c875bf8f3438a3c05a77b72eeddc
2020-03-23Point to released artifacts and use operationPamela Dragosh4-43/+43
Minor fix to use "operation" vs "recipe" in the guard request. parent, common and models are released. Issue-ID: POLICY-2378 Change-Id: I4c5005c08fef2e184ce2dccefdef0c2c2ea2dc08 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-20use shutdown to clear handle leakPamela Dragosh10-8/+111
The XACML github was released with a new method to allow context factories and PIP engines to release any handles before releasing the PDP engine. This review includes that artifact and adds tests to support it. In addition, added more tests to get code coverage over 90% for both PIPs in ONAP. Some cleanup in the Matchable types based on last review. Issue-ID: POLICY-2242 Change-Id: I312f06380ff4d2e16bcfd25b6d1f36ce5dd030e6 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-19Merge "Re-factor matchable to reduce complexity"Jim Hahn24-542/+1641
2020-03-19Re-factor matchable to reduce complexityPamela Dragosh24-542/+1641
This solution is much cleaner than what is in StdMatchableTranslator. Over 90% code coverage on it - utilizes a callback to retrieve DataType and PolicyTypes. Support for missing timestamp TOSCA type. Also can do a better job differentiating between a property contained in the policy vs a schema. Changed StdMatchableTranslator to utilize these classes. And removed the old spaghetti. Added some JUnit coverage for ToscaPolicyTranslatorUtils. Removed duplicate code in the XACML Native Exception classes. Issue-ID: POLICY-2242 Change-Id: I18f898d9e65f6da28e3b27517d40f8d389de18a0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-18renew policy certs till 03/17/2021jhh2-0/+0
Issue-ID: POLICY-2402 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I111f60b9ef60ee9524808653be020f94ae9db170
2020-03-16Missing support for PolicySetTypePamela Dragosh16-45/+178
Adds support for PolicySetType specifically for Native policies. When/If the other applications change to support they can easily do so. Adding some more code coverage for Native application and translator. Issue-ID: POLICY-2433 Change-Id: I463ca9f04928d759624a2176598b463057d386bd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-14Add code coverage XacmlPolicyUtilsPamela Dragosh2-2/+33
Fix spelling error and add code cover >95% for the XacmlPolicyUtils. Issue-ID: POLICY-2242 Change-Id: I21f239e6bd42073ff84883d04f2b8bee1466b8e0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-13Bump XacmlPdpApplicationManager code coveragePamela Dragosh2-3/+213
From under 50% to over 90%. Issue-ID: POLICY-2242 Change-Id: Ie061bddbdd2fcdb37bed608847449e5bc92173b5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-12Better error handling for decisionsPamela Dragosh19-87/+78
Throw exceptions when requests cannot be created and return error information back. Consolidated some code to avoid sonar duplication issues. Companion review to https://gerrit.onap.org/r/c/policy/models/+/103548 Issue-ID: POLICY-2242 Change-Id: Ic873af933dab82e3aeef6335f55939666be20385 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-11Merge "Added support for application/xacml+json in native app"Pamela Dragosh5-25/+115
2020-03-11Added support for application/xacml+json in native appChenfei Gao5-25/+115
Issue-ID: POLICY-2182 Change-Id: I13246e08afdc2f5a380b5737c72851f271211d46 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2020-03-11Fix sonar logging bugsPamela Dragosh8-14/+14
These did not show up locally - sonarqube must have a new version or rules to pick these up. Issue-ID: POLICY-2242 Change-Id: I3df5aee84f696cde6b07c68913bbd55e95c8ba3b Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-10Misc XACML code coveragePamela Dragosh11-215/+329
Removed duplicate code from operations history classes. added code coverage to other classes. cleared sonar in main for args Issue-ID: POLICY-2242 Change-Id: Ief548c96a180c132a3f17681d9cbc018c62e42ac Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-10Bump monitoring app code coveragePamela Dragosh3-33/+108
Cleaned up some code to remove unnecessary branches. Add more test cases specifically for query parameters. Coverage should be above 90% for this repo. Issue-ID: POLICY-2242 Change-Id: I20a75aacd75f9b8c87abb47e88b81ab8f2d30626 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-10Fix optimization bug add coverage plusPamela Dragosh13-87/+406
Fix a NPE bug and add more code coverage. Also is missing returning of context details for subscriber policies. This code is a bit ad-hoc and there is a separate JIRA POLICY-2147 to support re-factoring this codebase. Added scanning for advice to be returned. For optimization, because of the need for some changes in XACML github dependency, we are stuck with a little narly code to get it to fully work. POLICY-2417 is created to address this in Guilen. Upgraded to released XACML artifact - this has been tested locally for a few weeks with naming, guard and this optimzation code. It removed Jackson in lieu of Json, cleaned up some security fixes, upgraded dependencies, and added more code coverage. Issue-ID: POLICY-2066 Change-Id: I3cae99de265c815200ec2ce71e471338772bdb5b Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-09Updates to support fixed guard policy typesPamela Dragosh23-1101/+1321
Because the new TOSCA compliant policy types support required fields, we can simplify the guard translator to utilize Match in the target vs the previous complicated Condition usage. Added test coverage to bump above 90% specifically for the guard and coordination code. Added a sonar exclusion for the test module. Issue-ID: POLICY-2244 Change-Id: Ia90d117bd7b86d28a2268fd5ab8315dce7bf0c12 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-05Added xacml.properties to packages for native appChenfei Gao4-28/+46
Issue-ID: POLICY-2182 Change-Id: Ife38e989aeda445c9fc2531bb92426f2d28bb818 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2020-03-01Point to docker 2.0.1Pamela Dragosh1-1/+1
policy/docker is released Issue-ID: POLICY-2378 Change-Id: I1ca967d48dca59d72d3490044ee499770d04f286 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>