summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-02-22support policy execution counts in lifecyclejhh2-2/+28
Issue-ID: POLICY-3033 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ic9150b9b76a04ee39cb0c0a78081ad22b21dcd02
2021-02-22convert date to instant for statisticsjhh1-2/+2
Issue-ID: POLICY-3069 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I72f9db0cd70fc24a21425ad071717fc0e704bb59
2021-02-19remove TransMetric - not neededjhh9-129/+22
Issue-ID: POLICY-3033 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I626de45b528bb891c79900085bfe783fe248b3fa Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-02-18Merge "deploy stats in lifecycle module"Jorge Hernandez10-54/+221
2021-02-18Merge "Upgrade dependencies in drools-pdp for IQ issues"Ram Krishna Verma4-6/+6
2021-02-18deploy stats in lifecycle modulejhh10-54/+221
Issue-ID: POLICY-3033 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iaa78aa48064e8288265aeb498279e9d8324538d8 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-02-17expose metric from mdctransactionjhh2-100/+106
Issue-ID: POLICY-3033 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I484174ae3a09e6706a36984aa2708f8ffef17808
2021-02-17Upgrade dependencies in drools-pdp for IQ issuesJim Hahn4-6/+6
IQ reports identified a couple of vulnerabilities in various dependencies. Upgraded to the latest version of them per SECCOM. Issue-ID: POLICY-3005 Change-Id: I52f1137bfaeee0d715ee438b69e98f2d06849d38 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-12Merge "Fix sonars from dependency upgrade"Pamela Dragosh8-35/+31
2021-02-12Merge "support transaction reports in engine"Ram Krishna Verma14-66/+472
2021-02-12Fix sonars from dependency upgradeJim Hahn8-35/+31
The dependency upgrades in policy-parent caused some new sonars. In particular, initMocks() has been deprecated - replaced with calls to the Mockito Runner. Changed one to openMocks() because using the Runner caused it to fail on jenkins, but not in the local eclipse. Also fixed a type safety issue with EMPTY_LIST. Issue-ID: POLICY-2909 Change-Id: Iea9420190f208d7de3bf3ad531515c92e0fab83f Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-11support transaction reports in enginejhh14-66/+472
Issue-ID: POLICY-3033 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Id1f02c86be491d5145e74725f76953e294e2975c Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-02-10More sonars in drools-pdpJim Hahn3-5/+5
Addressed the following issues: - log user-controlled data; moved the "NOSONAR" to a different line - make constructors protected Issue-ID: POLICY-2909 Change-Id: Ic69c100af777779e791c38cc444dd2ea726258f2 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-09Merge "Upgrade dependencies"Ram Krishna Verma20-49/+101
2021-02-09Upgrade dependenciesJim Hahn20-49/+101
Changes to eclipselink are incompatible with javax-persistence-api so removed the latter. Also added target-database property. Also replaced string constants with eclipselink constants. Per review comments, moved target-database values to property files. Issue-ID: POLICY-3005 Change-Id: I043203a952d54406a5996c1e8b5ba8936bf558c0 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-08pull generic code from mdctransaction into metricjhh6-301/+665
created generic metric classes that would be used now for 2 purposes: 1) existing logging framework of metrics and transactions, 2) generic metric tracking to be use to report pdp statistics. Issue-ID: POLICY-3033 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I8f5d773f27871e19c8796d1fe2f3972b4c21fe67 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-01-29small perf improvement passing policy map argumentjhh1-14/+19
Issue-ID: POLICY-2762 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I85aeba2e710f6637a6e6bdfd62e1bc8b70f4d19f Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-01-28sonars - protected constructors and typecastingjhh10-20/+21
Issue-ID: POLICY-3017 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I7e7e384db26e244e2514aec3c3579b7b7f92f8a1
2021-01-27sync policies when native artifact policies addedjhh16-113/+1055
interoperability between native and non-native policies present several difficulties. The code submitted operates in deltas where deploy and undeploy operations are performed on the deltas of the updates. In order to support interoperability, policies not part of a delta update may need to be reapplied. For example, in the case when the delta is just a new native controller artifact, we should go through the set of already deployed policies and reapply non-native policies as long as the policy types that the native artifact policy supports. Issue-ID: POLICY-2762 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ieb8e5e17862e9d607433a1d4e86a026725d73498 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-01-14add methods to check if a fact exists.jhh7-20/+110
Issue-ID: POLICY-2762 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ic00d2a548dbc904e044d2310c7d5439a1cb708a5 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-01-11Merge "sort deploy and undeploy policy lists"Jorge Hernandez2-3/+235
2021-01-11sort deploy and undeploy policy listsjhh2-3/+235
An order is imposed in the deployment and undeployment actions when the list of active policies is retrieved from PAP. This is to ensure that the operations are applied in a sane way, for example to try to prevent to undeploy policies before deleting a controller, etc .. The deployment order is 1) native controller, 2) native rule, and 3) non-native policies. The undeployment order is 1) non-native, 2) native rule, and 3) native controller policies. Issue-ID: POLICY-2762 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Icb15dcec87fd5d9917ee152ab15ca7277e13590a
2021-01-07drools-pdp docker build failTaka Cho1-2/+1
after official jre 2.2.0 released there is no /root/.cache exist based on jenkins build Issue-ID: POLICY-2999 Change-Id: I6c7db9dce3269bdcd26016d4049364bc72310dac Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-01-06Merge "Changed identifiers to concept identifiers"Jim Hahn17-87/+102
2021-01-05use jdk base 2.2.0 - droolsTaka Cho1-1/+1
use jdk base 2.2.0 Issue-ID: POLICY-2917 Change-Id: Ib7692dd05290dcb672a30174ed90441d364a4b83 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-01-04Changed identifiers to concept identifiersliamfallon17-87/+102
The policy models tosca classes ToscaPolicyIdentifier and ToscaPolicyIdentifierOptVersion can be used to identify any TOSCA concept, not just TOSCA policies so they are renamed to ToscaConceptIdentifier and ToscaCinceptIdentifierOptVersion respectively. The class ToscaPolicyTypeIdentifier is redundant and is replaced by ToscaConceptIdentifier. Issue-ID: POLICY-2900 Change-Id: I677cc1f8730001b300ab2041f2d57c2485cbc4ed Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-12-30[docker] use `--no-cache-dir` flag to `pip` in dockerfiles to save spacePratik raj1-2/+2
using "--no-cache-dir" flag in pip install ,make sure downloaded packages by pip don't cached on system . This is a best practice which make sure to fetch from repo instead of using local cached one . Further , in case of Docker Containers , by restricting caching , we can reduce image size. In term of stats , it depends upon the number of python packages multiplied by their respective size . e.g for heavy packages with a lot of dependencies it reduce a lot by don't caching pip packages. Further , more detail information can be found at https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6 Issue-ID: POLICY-2948 Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: I0c4c6ba511bca93a1389c53a91bae9b2d4546ee6
2020-12-04Merge "remove all GPL-3.0 and plus license package - drools pdp"Ram Krishna Verma1-1/+1
2020-12-02Merge "move all bash to ash shell scripts"Jim Hahn26-2012/+1961
2020-11-30move all bash to ash shell scriptsTaka Cho26-2012/+1961
this gerrit would be the first step to not to use any GPL-3.0 and plus license Issue-ID: POLICY-2847 Change-Id: I09a571f14ef8c6983f9051068c2bad5acc173787 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-11-19remove all GPL-3.0 and plus license package - drools pdpTaka Cho1-1/+1
this gerrit would be the second step to not to use any GPL-3.0 and plus license Issue-ID: POLICY-2847 Change-Id: I67f9f4be6aba6e91e53a7462db79e60c73e58144 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-11-18verify schema validation for any policy typejhh7-25/+204
Issue-ID: POLICY-2880 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I0cc6e8967d42d347415857dc77976f2b8ab86516 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2020-11-17support for not validated policy typesjhh3-24/+67
Issue-ID: POLICY-2880 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Id816bb3edd44c34a342cd7ada95dd8f2f9d1b0a6 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2020-11-02Make feature-pooling-dmaap work without filteringJim Hahn39-3135/+172
As DMaaP server-side filtering has been deprecated, modified feature-pooling-dmaap to work without it. The new design assumes that each pdp gets its own unique consumer group, thus all pdps receive all events. Each pdp then uses the bucket assignments to determine whether or not to process the event. Note: this means that events no longer have to be forwarded to the correct host, thus the "Forward" class has been deleted. Other than that, the code already did post-filtering of events so most of it still works even without server-side filtering. As a result, most of the effort was in simply removing code that no longer applies. Per review comments: Modified code to use the event hash code instead of the request ID has code when routing events. This eliminated the need for the extractor classes and related properties. Replaced amsterdam and beijing properties with usecases properties. Issue-ID: POLICY-2881 Change-Id: I87e4f98c14f419593879c278d7da053c80575553 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-29Re-encrypt drools-pdp propertiesJim Hahn2-7/+43
To satisfy sonar, the algorithm for policy/common CryptoUtils has been changed, necessitating the properties be re-encrypted. Issue-ID: POLICY-2801 Change-Id: I59e63d68c1c7f62e321aa729e11fe41e13efd396 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-27Bump drools-pdp master to 1.8.0-SNAPSHOTJim Hahn27-31/+31
Bumping minor version now that guilin branch has been created. Also repointed to snapshot versions for dependencies. Issue-ID: POLICY-2875 Change-Id: Ic3d5b96e610db0487ce316a9397d2f9ecb04bda6 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-20Bump drools-pdp to 1.7.5 SNAPSHOTJim Hahn27-27/+27
Issue-ID: POLICY-2869 Change-Id: Id2fcbfcb5435f79b5ebb74a403fd6133d1b79a7c Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-20Release drools-pdp 1.7.4 docker7.0.0-ONAPJim Hahn1-0/+8
Issue-ID: POLICY-2869 Change-Id: I4e92d996dc55d000c4150c9e983bdc4904c30699 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-20Release drools-pdp 1.7.4 artifactsJim Hahn1-0/+5
Issue-ID: POLICY-2869 Change-Id: I4121fefa2ddcefb0f8c2cca15990a1d494c64827 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-20Point drools to models 2.3.5Pamela Dragosh1-1/+1
Issue-ID: POLICY-2869 Change-Id: I00931ad9b9df9c1f9ca893e0967693356c9eccfa Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-10-12enforce httpie 1.0.3 installedTaka Cho1-0/+2
http-prompt has a compatibility issue with httpie 2.x.x enforce to use httpie 1.0.3 Issue-ID: POLICY-2864 Change-Id: Ibfdd9afb48d0f755051516edb9ab790f12331cdc Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-09bump drools-pdp to 1.7.4-SNAPSHOTTaka Cho27-27/+27
Issue-ID: POLICY-2839 Change-Id: I85d286a012d7b54b8c847d94951703d2e6462e13 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-09release policy-drool 1.7.3 dockerTaka Cho1-0/+8
Issue-ID: POLICY-2839 Change-Id: I496b7b992a5c2843e3e9fac933e1f376f03feb0f Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-09release drools-pdp 1.7.3 artifactTaka Cho1-0/+5
Issue-ID: POLICY-2839 Change-Id: I1088f94022e370a9d4029fb47666b776c5ccd979 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-09Point to model 2.3.4Taka Cho1-1/+1
Issue-ID: POLICY-2839 Change-Id: Ifbc8239f9f5912eb7d1074424cf7c8060f71fdda Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-09Point to model 2.3.3Taka Cho1-1/+1
Issue-ID: POLICY-2839 Change-Id: I0bab7451436d5f76c19b743fe384cc0303a41228 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-09Use models 2.3.3-SNAPSHOT in drools-pdpJim Hahn1-1/+1
Issue-ID: POLICY-2863 Change-Id: Iaffc87711f33e4a5c35d1fdcaa21f8ec0d742baf Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-07Bump drools-pdp to 1.7.3 snapshotTaka Cho27-27/+27
Issue-ID: POLICY-2839 Change-Id: I750b5130c421dafd95dc4f323e891384a7815841 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-07release drools-pdp 1.7.2 dockerTaka Cho1-0/+8
Issue-ID: POLICY-2839 Change-Id: I687bd06a5fd1f56348b08f3866a0e18eef6bb848 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-07Release drool-pdp 1.7.2 maven artifactsTaka Cho1-0/+5
Issue-ID: POLICY-2839 Change-Id: Ia80368ae6632779451e9a3f9a595fa235906ac4b Signed-off-by: Taka Cho <takamune.cho@att.com>