summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2020-10-07Point to model 2.3.2Taka Cho1-1/+1
Issue-ID: POLICY-2839 Change-Id: I6110baaf281b82cbbfc384693dd5dc30c6c6d19b Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-09-30Fix new sonars in drools-pdpJim Hahn7-482/+309
Addressed the following sonar issues: - extract common test method - too many assertions in test method - don't always return the same value Issue-ID: POLICY-2616 Change-Id: Iab836cdcd667b35e2db9db7d6ffc7896df33e1c8 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-24update default keystoresjhh1-0/+0
Issue-ID: POLICY-2827 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: If74e7eeb0ab8ff35accbfddb719bd477cd889b06
2020-09-18Fix more sonars in feature-server-poolJim Hahn8-32/+57
Addressed the following sonars: - move fields from "interface" to "class" - don't always return the same value - remove commented-out code - make constants "final" - don't synchronize on parameters Issue-ID: POLICY-2546 Change-Id: If2d410664d956a7efabf3a4dbef96bbf7d24de5e Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-14Use alpine base image 2.1.1Jim Hahn1-1/+1
Issue-ID: POLICY-2819 Change-Id: I5722330bff9c37ee9dd89d3fce0bd7fbdf975f1b Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-11Handle CR in pom property filesJim Hahn1-0/+1
Fixed deploy-artifacts to strip carriage returns from pom.properties files before attempting to extract variables from them. Switched to using 'sed' instead of dos2unix. Issue-ID: POLICY-2823 Change-Id: I1114af13a3262e49b87fb270d5c78cda4de9e5c9 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-08bump to 1.7.2-SNAPSHOTjhh27-27/+27
Issue-ID: POLICY-2789 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I0fb5ead444c23882454e3a48efea9d936a84e455
2020-09-08docker release 1.7.1jhh1-0/+8
Issue-ID: POLICY-2789 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I4271ce650490afbe9023f71f6c0ced0194e8d624
2020-09-08maven release 1.7.1jhh1-0/+5
Issue-ID: POLICY-2789 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I807f85c5ab4398146ddb50a5942623a49eadbd26 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2020-09-08Update common and models to 1.7.1 and 2.3.1jhh1-2/+2
Issue-ID: POLICY-2789 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I9ecd6b7d5cc741be5ed304d4a2a181f47c25a391
2020-09-04point to 2.1.0 policy-alpine base - droolspdpTaka Cho1-1/+21
In G-rel, using 2.1.0 base. Issue-ID: POLICY-2789 Change-Id: I3b0b3d98b8915d7e45ec1231f41a7b97836d80c1 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-08-31Fix more sonars in drools-pdpJim Hahn13-109/+133
Fixed more sonars in drools-pdp: - remove commented code - don't throw generic Exception - unused field (made it protected instead of private) - log conditionally - cognitive complexity - too many break/continue - return empty list instead of null - Random() is not secure Fixed more eclipse warnings: - parameterize generic types Issue-ID: POLICY-2616-sonars3 Change-Id: Ia5ad769b2ea763568cfae3d81807926d89153b09 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-31Merge "Fix sonars in server-pool"Pamela Dragosh10-346/+474
2020-08-28Fix sonars in server-poolJim Hahn10-346/+474
Addressed the following sonars in feature-server-pool: - re-interrupt after catching an InterruptException - reduce cognitive complexity - cognitive complexity - not enough arguments for logger message - use UnaryOperator instead of Function - update static fields via static methods - too many break/continue in for-loop Also fixed some Eclipse warnings: - add parameter to generic types - useless assignments - newInstance() has been deprecated - close streams Issue-ID: POLICY-2616 Change-Id: Ibf6c20e6c2a7eb8c60e1b38f388d86a0f9b8804b Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-28Fix sonar issue in distributed lockingJim Hahn1-1/+2
Fixed sonar issue: - Refactor the code of the lambda to have only one invocation throwing an exception Issue-ID: POLICY-2616 Change-Id: I8d96b95d0da9a780daacec7a4de17167642b03c1 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-26Remove commons-io dependencyPamela Dragosh1-6/+0
Policy parent has this declaration to the latest 2.7 version of commons-io which fixes a sonatype security issue. There is no reason that drools-pdp should be declaring this. Issue-ID: POLICY-2798 Change-Id: Ie7dbe14458be4ead395dfcbebbc1c0cd3ccc4ea6 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-25Address more sonars in drools-pdpJim Hahn17-71/+81
Addressed the following sonars: - either log or rethrow - call "remove()" for thread-local-storage - use assertEquals - only one method call in exception test - swap arguments in assertEquals - add assertion to assertThatThrownBy() - explain @Ignore Also addressed eclipse warnings: - unused fields and methods Issue-ID: POLICY-2616 Change-Id: I6590c0d2b103885bc933014d48bf5fd92401cd80 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-25block status operations until controllers readyjhh7-27/+74
Status messages to the PAP won't be send until all mandatory resources specified in the lifecycle.pdp.policytypes property are functional. Issue-ID: POLICY-2669 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ia9d4c678fcfbdb232059d0827235845ee11f1201 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2020-08-24exit jvm when detecting configuration problemsjhh3-2/+97
It follows the same approach that in other policy components by throwing a runtime-exception vs System.exit(x). Issue-ID: POLICY-2752 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iba508fc7095b060373742849e394c8fdd2a2334f Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2020-08-24Merge "remove legacy operational policies support"Jim Hahn20-442/+50
2020-08-21move to alpine from debianTaka Cho1-9/+9
moving to alpine-jdk base for drool-pdp apps csit drools/apps tested in windriver labs: http://10.12.6.96:8080/tmp/tmp.yxBE30uD1m-robot-workdir/report.html 1, httpie has to install via apk 2, http-prompt has to install via pip Issue-ID: POLICY-2787 Change-Id: I3d1bd86c7c2c3c48e9ac2a823b988bb9b1bdf98f Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-08-20remove legacy operational policies supportjhh20-442/+50
Issue-ID: POLICY-2765 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I6066b8040add53ed32572a71854f3f7094bc41d6
2020-07-30Update INFO.yaml in policy-drools-pdpTaka Cho1-12/+16
Verified with Jessica W that the "type" should still be "Addition", even when updating the PTL. Updated to Mature, per TSC. Issue-ID: POLICY-2738 Change-Id: I3a90f3dff643f89cc5eba3a46ba4570dc756bfef Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-07-27Remove more jackson dependencies from drools-pdpJim Hahn2-10/+0
Issue-ID: POLICY-1528 Change-Id: I9b4054cbfd41ec1abe61d6fe459ebb29adaa7a45 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-07-24Add Ajith to policy/drools-pdp infoJim Hahn1-17/+11
Issue-ID: POLICY-2738 Change-Id: Ib40ad93e6c0562fa60c99c9c6eff5072e355c062 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-07-21Merge "Support multiple Policy/Controller types using 'controller.type' ↵Jorge Hernandez11-18/+311
property"
2020-07-21Support multiple Policy/Controller types using 'controller.type' propertyStraubs, Ralph (rs8887)11-18/+311
It provides a feature base to allow for custom Policy and Drools Controllers. Issue-ID: POLICY-2415 Change-Id: Ibe3f11e3ecd925537ffd03d2420bb3b8214029c9 Signed-off-by: Straubs, Ralph (rs8887) <rs8887@att.com> Signed-off-by: jhh <jorge.hernandez-herrero@att.com>