policy/drools-pdp.git
2 years agoDocker release 1.9.0 10/124210/1
jhh [Tue, 14 Sep 2021 22:17:20 +0000 (17:17 -0500)]
Docker release 1.9.0

Issue-ID: POLICY-3587
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I93e7ef3a4e50ed74982d75275a69335ab963834d

2 years agoRelease 1.9.0 maven artifacts 01/124201/1
jhh [Tue, 14 Sep 2021 20:11:48 +0000 (15:11 -0500)]
Release 1.9.0 maven artifacts

Issue-ID: POLICY-3587
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Id2e161b9defcc07c286573ee15253856be77c827

2 years agoUse released common and models 84/124084/1
liamfallon [Mon, 13 Sep 2021 15:42:51 +0000 (16:42 +0100)]
Use released common and models

Issue-ID: POLICY-3587
Change-Id: Ia686adb3f8e3b73ca6543b7c8b0b404811cff1fd
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUpdate INFO.yaml 00/124000/3
liamfallon [Wed, 8 Sep 2021 12:12:21 +0000 (13:12 +0100)]
Update INFO.yaml

Update the INFO.yaml file with latest information.

Issue-ID: POLICY-3552
Change-Id: If33f4de23325838a374f5b93b8347afa8d6e6471
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoPoint at released policy-parent 99/123999/1
liamfallon [Thu, 9 Sep 2021 12:56:03 +0000 (13:56 +0100)]
Point at released policy-parent

Issue-ID: POLICY-3587
Change-Id: I16547beccbce104d38395c8c0e5510c06731265b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoCorrect paths to logback filters 06/123906/1
jhh [Tue, 7 Sep 2021 00:26:29 +0000 (19:26 -0500)]
Correct paths to logback filters

Issue-ID: POLICY-3610
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Id3011e07045fd485df75184f4a766ca91274f56b

2 years agoMerge "Reduce coder verbosity in logs"
Jorge Hernandez [Fri, 3 Sep 2021 22:00:16 +0000 (22:00 +0000)]
Merge "Reduce coder verbosity in logs"

2 years agoReduce coder verbosity in logs 72/123872/3
Jim Hahn [Fri, 3 Sep 2021 14:15:32 +0000 (10:15 -0400)]
Reduce coder verbosity in logs

After switching to lombok ToString, the log messages for the coder class
have become very long.  Switched back to the original toString() method,
which only logs the keysets rather than the whole content of the coder
maps.
Left the other additions of lombok ToString in drools-pdp as is, because
they all looked appropriate, upon further review.

Addressed review comments:
- added comment about why lombok isn't used

Issue-ID: POLICY-3397
Change-Id: I08ea8c49908b33fc3b8c8ba6de4ac4bd1474660a
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoFix sonar security issues in drools-pdp 15/123815/3
Jim Hahn [Thu, 2 Sep 2021 14:39:35 +0000 (10:39 -0400)]
Fix sonar security issues in drools-pdp

Fixed sonar security issues:
- set permissions of temporary files; modified to use utility from
  policy-common

Issue-ID: POLICY-3289
Change-Id: I55b70175429052e0dfaf5939fa6b940f191d9267
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoDon't create world-writeable directory 76/123776/2
Jim Hahn [Wed, 1 Sep 2021 19:40:35 +0000 (15:40 -0400)]
Don't create world-writeable directory

Fix sonar:
- world-writeable directory

Issue-ID: POLICY-3289
Change-Id: I421dd9722d8642992ff8f5991f41a341c834ba1d
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoFix sonars in drools-pdp 42/123642/2
Jim Hahn [Thu, 26 Aug 2021 18:36:35 +0000 (14:36 -0400)]
Fix sonars in drools-pdp

Fixed sonars:
- use "var"
- override  "equals"
- unused imports

Also changed some of the JPA queries to make them typed queries.

Issue-ID: POLICY-3289
Change-Id: Ib3a00be322d8d00ba492673708439cacfe2c7fc4
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRemove GPLv3 components from drools-pdp 25/123525/4
Jim Hahn [Tue, 24 Aug 2021 21:30:57 +0000 (17:30 -0400)]
Remove GPLv3 components from drools-pdp

The drools-pdp docker image includes GNU tar, which is GPLv3 and is
therefore disallowed by ONAP.  Appears to be included with "dpkg", which
isn't needed anymore, so just removed it.
Switched to newer policy/docker image, which includes python3, thus no
longer need to install it.
Also stopped installing httpie via apk and only install it via pip, now.

Issue-ID: POLICY-2845
Change-Id: I08b97b90aef6820135b052c20f270f8b487c94a9
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd prometheus + https in https server configs 81/123481/2
jhh [Mon, 23 Aug 2021 23:03:31 +0000 (18:03 -0500)]
Add prometheus + https in https server configs

Issue-ID: POLICY-3553
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I9d5d36e35b69a7f47efd2cc4b2abfdd0ba8f2192

2 years agoFixing drools junits as per policy/common changes 40/123440/1
a.sreekumar [Mon, 23 Aug 2021 11:25:11 +0000 (12:25 +0100)]
Fixing drools junits as per policy/common changes

Change-Id: I2dc7f988654d8f7d1b822233e1fbe66e6fbf767d
Issue-ID: POLICY-3538
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMerge "Add SQL_PORT configuration"
Jorge Hernandez [Thu, 12 Aug 2021 15:33:32 +0000 (15:33 +0000)]
Merge "Add SQL_PORT configuration"

2 years agoAdd SQL_PORT configuration 10/123210/3
jhh [Tue, 10 Aug 2021 00:54:55 +0000 (19:54 -0500)]
Add SQL_PORT configuration

Issue-ID: POLICY-3533
Change-Id: I03fc41332d4739d5a4d6cee5f86ba823714336d6
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2 years agouse url resource for docker-tag -- drools-pdp 96/123196/1
Taka Cho [Mon, 9 Aug 2021 18:10:24 +0000 (14:10 -0400)]
use url resource for docker-tag -- drools-pdp

use groovy url resource from docker repo
to identify the tag for docker

Issue-ID: POLICY-3378
Change-Id: I1400967096a5b61b89c6298aee7377e2eeaaa47d
Signed-off-by: Taka Cho <takamune.cho@att.com>
2 years agoMerge "Use lombok in drools-pdp #4"
Ram Krishna Verma [Mon, 9 Aug 2021 13:11:22 +0000 (13:11 +0000)]
Merge "Use lombok in drools-pdp #4"

2 years agoMerge "Use lombok in drools-pdp #3"
Ram Krishna Verma [Mon, 9 Aug 2021 13:11:12 +0000 (13:11 +0000)]
Merge "Use lombok in drools-pdp #3"

2 years agoMerge "Use lombok in drools-pdp #2"
Ram Krishna Verma [Mon, 9 Aug 2021 13:10:52 +0000 (13:10 +0000)]
Merge "Use lombok in drools-pdp #2"

2 years agoUse slf4j Marker from common repo 74/123074/7
Taka Cho [Tue, 3 Aug 2021 17:28:28 +0000 (13:28 -0400)]
Use slf4j Marker from common repo

using slf4j Marker from common repo

Issue-ID: POLICY-3087
Change-Id: Iefbd6fa9ab2dfa6388508cb6ffd6cf1358b45ccc
Signed-off-by: Taka Cho <takamune.cho@att.com>
2 years agoUse lombok in drools-pdp #4 61/123161/2
Jim Hahn [Thu, 5 Aug 2021 20:24:50 +0000 (16:24 -0400)]
Use lombok in drools-pdp #4

Updated thru feature-eelf.

Issue-ID: POLICY-3397
Change-Id: Iad12f5f921374775fb5436cb7d13746256cd6d81
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse lombok in drools-pdp #3 60/123160/1
Jim Hahn [Thu, 5 Aug 2021 19:45:21 +0000 (15:45 -0400)]
Use lombok in drools-pdp #3

Updated feature-healthcheck thru feature-pooling-dmaap.

Issue-ID: POLICY-3397
Change-Id: Ia7b00a521cdb82ed0eb22bdaed03d02665fbbff1
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse lombok in drools-pdp #2 58/123158/2
Jim Hahn [Thu, 5 Aug 2021 18:53:19 +0000 (14:53 -0400)]
Use lombok in drools-pdp #2

Updated feature-session-persistence thru drools-domains.

Issue-ID: POLICY-3397
Change-Id: I0b1c6da8b2301c00dd792675e8cf1f49888edb9f
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse lombok in drools-pdp 52/123152/1
Jim Hahn [Thu, 5 Aug 2021 14:13:01 +0000 (10:13 -0400)]
Use lombok in drools-pdp

Updated policy-management thru policy-utils.

Issue-ID: POLICY-3397
Change-Id: Ie9498fe912e8338ddc32a40774c3cb63d84f079a
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse docker registry properties in drools-pdp 51/122751/1
Jim Hahn [Tue, 20 Jul 2021 13:52:25 +0000 (09:52 -0400)]
Use docker registry properties in drools-pdp

Issue-ID: POLICY-3374
Change-Id: I2439fd5680c7828f6d20e4a884167333aedf9f49
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate pdp statistics to count deploy/undeploy separately. 05/122505/4
adheli.tavares [Wed, 7 Jul 2021 15:21:51 +0000 (16:21 +0100)]
Update pdp statistics to count deploy/undeploy separately.

Issue-ID: POLICY-3383
Change-Id: If8f1555aa0c509a35f4dd1821ddc5dd2f7294d2f
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agonosonar on admin logging level function 91/122491/3
jhh [Wed, 7 Jul 2021 12:34:56 +0000 (07:34 -0500)]
nosonar on admin logging level function

Issue-ID: POLICY-3077
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ieae80c77db297271c9de3958d321bfe4b88acce3
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2 years agoMerge "Remove unused property from pom"
Ram Krishna Verma [Wed, 30 Jun 2021 17:20:52 +0000 (17:20 +0000)]
Merge "Remove unused property from pom"

2 years agoRemove unused property from pom 66/122366/1
liamfallon [Wed, 30 Jun 2021 11:10:23 +0000 (12:10 +0100)]
Remove unused property from pom

The swagger.version property is unused in drools-pdp.

Issue-ID: POLICY-3209
Change-Id: Ie64e8462bb316f71d555e3b394d3c615b5c6c3a1
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUse unique name in drools PdpMessages 39/122339/2
Jim Hahn [Mon, 28 Jun 2021 19:04:36 +0000 (15:04 -0400)]
Use unique name in drools PdpMessages

Also modified distributed locking to use the unique name, in case the DB
is shared.

Issue-ID: POLICY-3410
Change-Id: I046a9ffdcb62f3d84d7d388a1e64bcf025fbbf75
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate policy-drools-pdp for checkstyle 8.43 66/122266/1
liamfallon [Mon, 28 Jun 2021 09:50:01 +0000 (10:50 +0100)]
Update policy-drools-pdp for checkstyle 8.43

Updates are indentation changes on annotations.

Issue-ID: POLICY-3209
Change-Id: I7b55b2affa3e16afb0c0f8398b902a04f13c4db0
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoFix new checkstyle issues in drools-pdp 55/122055/2
Jim Hahn [Fri, 18 Jun 2021 18:47:59 +0000 (14:47 -0400)]
Fix new checkstyle issues in drools-pdp

The new version of checkstyle identified new issues.  Fixed those.
Also addressed sonar "var" issues.

Issue-ID: POLICY-3289
Change-Id: I3a18d3988202dca6f3c87f2aa1810bf803a9d14d
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agouse lombok NonNull instead of other leaked imports 99/121999/1
jhh [Thu, 17 Jun 2021 01:40:39 +0000 (20:40 -0500)]
use lombok NonNull instead of other leaked imports

Issue-ID: POLICY-3397
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ie0f2009e9c9d219405f5ccbdd648304c66460b1e

2 years agofilter logging input data per sonar security issue 37/121937/2
jhh [Tue, 15 Jun 2021 19:50:20 +0000 (14:50 -0500)]
filter logging input data per sonar security issue

Issue-ID: POLICY-3289
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iad22a581a6bd98e7e210162d30ec7741972669d2

2 years agoUse re2j pattern for sonar vulnerabilities 08/121908/1
jhh [Mon, 14 Jun 2021 22:20:51 +0000 (17:20 -0500)]
Use re2j pattern for sonar vulnerabilities

Issue-ID: POLICY-3289
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Id6d58b5c8ac5f7715286f21274ccf5eea9155fd2

2 years agoAdd global dmaap https flag for configuration 26/121726/1
jhh [Mon, 7 Jun 2021 20:34:43 +0000 (15:34 -0500)]
Add global dmaap https flag for configuration

Since drools-pdp and derived applications typicall share
the same dmaap, this map will make easy to toggle between
https and http for those systems that need it.
https remains the default.

Issue-ID: POLICY-3366
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib3556ed5f73e8a5485bc5c84a161753b1a50ce95

3 years agoRemove policies field references from tests 93/121593/1
waynedunican [Mon, 31 May 2021 10:21:07 +0000 (11:21 +0100)]
Remove policies field references from tests

Remove policies field references from drools-pdp as this has since been removed from the PdpUpdate class in policy-models

Issue-ID: POLICY-3339
Change-Id: Ib47408f54318a861fc569beed683e5cffcb2738e
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Signed-off-by: WayneDunican <wayne.dunican@est.tech>
3 years agoFix sonar vulnerabilities logging user input 08/121408/1
jhh [Tue, 18 May 2021 22:11:31 +0000 (17:11 -0500)]
Fix sonar vulnerabilities logging user input

Issue-ID: POLICY-3230
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I05fb50ef3c4b6da0603e75084554e061a27a2202

3 years agoMerge "fix telemetry related sonar security issues"
Jim Hahn [Fri, 14 May 2021 20:55:18 +0000 (20:55 +0000)]
Merge "fix telemetry related sonar security issues"

3 years agoRemove csit folder from policy/drools-pdp 49/121349/1
Ram Krishna Verma [Thu, 13 May 2021 19:33:18 +0000 (15:33 -0400)]
Remove csit folder from policy/drools-pdp

The csit test files for all repos have been consolidated in policy/docker to maintain them at single place and allow us to trigger verify jobs in gerrit reviews.

Issue-ID: POLICY-3257
Change-Id: I8c3476ec9056f71c288784b73ef68d323cd9d4f2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agodisable https server default for telemetry 29/121329/1
jhh [Wed, 12 May 2021 20:34:21 +0000 (15:34 -0500)]
disable https server default for telemetry

Issue-ID: POLICY-3230
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I2fd74011b649bca1acbef217bbf6ee222a6352eb

3 years agofix telemetry related sonar security issues 28/121328/1
jhh [Wed, 12 May 2021 20:08:04 +0000 (15:08 -0500)]
fix telemetry related sonar security issues

Issue-ID: POLICY-3257
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ic599b593abbc999c4e6a6fd4bc72acd5ec6e09f9

3 years agointerrupted exception and var usage sonars 42/121242/1
jhh [Mon, 10 May 2021 22:13:57 +0000 (17:13 -0500)]
interrupted exception and var usage sonars

Issue-ID: POLICY-3230
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I50a4ee81f0a1c97df25732a4e4507e8b7f8c8e4d

3 years agoMerge "sonars policy-utils and feature-lifecycle"
Ram Krishna Verma [Mon, 10 May 2021 16:58:49 +0000 (16:58 +0000)]
Merge "sonars policy-utils and feature-lifecycle"

3 years agoMerge "support no https or authentication in telemetry"
Jorge Hernandez [Mon, 10 May 2021 15:14:37 +0000 (15:14 +0000)]
Merge "support no https or authentication in telemetry"

3 years agosupport no https or authentication in telemetry 08/121208/3
jhh [Fri, 7 May 2021 22:39:06 +0000 (17:39 -0500)]
support no https or authentication in telemetry

Issue-ID: POLICY-3230
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I86a5f1081293a6b3d5f52c4462b947facbd9ee88
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agosonars policy-utils and feature-lifecycle 09/121209/1
jhh [Fri, 7 May 2021 23:09:13 +0000 (18:09 -0500)]
sonars policy-utils and feature-lifecycle

Issue-ID: POLICY-3289
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iaf7423f840fb39a27c3e5fd293159d1336d5557a

3 years agoRemove deprecated method from drools-pdp csit 05/121205/1
Ram Krishna Verma [Fri, 7 May 2021 21:08:12 +0000 (17:08 -0400)]
Remove deprecated method from drools-pdp csit

Issue-ID: POLICY-3257
Change-Id: I1051063677921a04ba536deac6ddedf04d360fd2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agosupport for PAP delta updates 40/121040/3
jhh [Wed, 28 Apr 2021 21:24:44 +0000 (16:24 -0500)]
support for PAP delta updates

Issue-ID: POLICY-3187
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I91b343feb28fdff6b2391387e51defbdcfbe7b0f
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoMerge "Make skipping of deployment configurable"
Liam Fallon [Wed, 21 Apr 2021 08:01:28 +0000 (08:01 +0000)]
Merge "Make skipping of deployment configurable"

3 years agoFix no-lock service loader incorrect metadata 24/120724/1
jhh [Tue, 20 Apr 2021 13:45:13 +0000 (08:45 -0500)]
Fix no-lock service loader incorrect metadata

Issue-ID: POLICY-3202
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iac6d9c7459718df1aae97e0b56f51178cd6b172e

3 years agoMake skipping of deployment configurable 40/120640/1
liamfallon [Mon, 19 Apr 2021 13:15:10 +0000 (14:15 +0100)]
Make skipping of deployment configurable

This change makse skipping of deployment configurable so that its
setting can be overridden.

Issue-ID: POLICY-2971
Change-Id: I963c5cae831d10ac7ab1e220ebbba91ec3369188
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoAdd legacy-config new feature 21/120521/4
jhh [Tue, 13 Apr 2021 22:27:35 +0000 (17:27 -0500)]
Add legacy-config new feature

This feature makes the legacy configuration optional.
It was used by brmsgw and other tooling to provision
via its DMaaP channel.   The capability to configure
via PdpConfiguration object is kept in the core
preserving backwards compatibility, but the DMaaP
provisioning channel(s) are optional.

Issue-ID: POLICY-2618
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia7198ac3b2810d85133c06ba5217a9c28e07ac4c
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoUse sh instead of ash in drools-pdp 79/120279/2
Jim Hahn [Wed, 7 Apr 2021 13:32:31 +0000 (09:32 -0400)]
Use sh instead of ash in drools-pdp

Issue-ID: POLICY-3160
Change-Id: I37b2b75d010781108e40ae39d3742bc2c2e2fd7e
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdate cert stores configuration 56/119656/1
jhh [Tue, 23 Mar 2021 17:53:01 +0000 (12:53 -0500)]
Update cert stores configuration

Issue-ID: POLICY-3158
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iee453ea70e0ebd9a82c0126ffedd8f5632783d6f
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoDelete keystores from drools 53/119553/1
Jim Hahn [Fri, 19 Mar 2021 16:05:11 +0000 (12:05 -0400)]
Delete keystores from drools

The Keystore is no longer needed in the tarball, as it is supplied
externally by the CSITs and Helm charts.  Deleted that file.

Issue-ID: POLICY-3143
Change-Id: I5f80f7e25a86b903fd67080adbf15ab090c4b346
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoChange Dockerfile httpie version to fix telemetry 48/119448/1
jhh [Wed, 17 Mar 2021 16:30:49 +0000 (11:30 -0500)]
Change Dockerfile httpie version to fix telemetry

telemetry based tools do not work as the http-prompt
version installed has changed in alpine repositories.

Issue-ID: POLICY-3138
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib838dabedacd03a72bd018f1d66ace95cbb0c511

3 years agoUpdate policy-keystore with newer certificates 85/119385/1
jhh [Tue, 16 Mar 2021 15:34:15 +0000 (10:34 -0500)]
Update policy-keystore with newer certificates

Issue-ID: POLICY-3139
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I4b0cc4e1a1f6de36857f3e6e73b3dc6b1f9d8b87

3 years agoAddress plugin-not-found issues 60/119260/4
Jim Hahn [Fri, 12 Mar 2021 16:17:00 +0000 (11:17 -0500)]
Address plugin-not-found issues

Removed references to archetype-packaging and lifecycle-mapping, where
unnecessary due to pom inheritance.
Also removed unnecessary checkstyle plugins.

Issue-ID: POLICY-3126
Change-Id: Ia2bc398c7adbf13e925dd6329411310472c7ee35
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agobump pom versions to 1.9.0-SNAPSHOT 96/119196/1
jhh [Fri, 12 Mar 2021 00:40:45 +0000 (18:40 -0600)]
bump pom versions to 1.9.0-SNAPSHOT

Issue-ID: POLICY-3105
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I0686675cdddf6fb5ce78f792484486f39d705a58

3 years agobump poms to 1.8.2-SNAPSHOT 86/119086/1
jhh [Wed, 10 Mar 2021 16:04:55 +0000 (10:04 -0600)]
bump poms to 1.8.2-SNAPSHOT

Issue-ID: POLICY-3127
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I0cf960650fbd2010a7c747d4932fdf8226c1fa07

3 years agodocker image release 1.8.1 83/119083/1
jhh [Wed, 10 Mar 2021 15:37:29 +0000 (09:37 -0600)]
docker image release 1.8.1

Issue-ID: POLICY-3127
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iec454c8c56fbb6cd0a3b6f3d9066bec050370365

3 years agomaven release 1.8.1 79/119079/1
jhh [Wed, 10 Mar 2021 15:11:19 +0000 (09:11 -0600)]
maven release 1.8.1

Issue-ID: POLICY-3127
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I5273c846164413c510209605b8d6845fb740002d

3 years agopoint to released models 2.4.1 73/119073/1
jhh [Wed, 10 Mar 2021 14:18:46 +0000 (08:18 -0600)]
point to released models 2.4.1

Issue-ID: POLICY-3127
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ifa9e15c24245f195f7def2b831db9e24bbc108ce

3 years agoadd no locking feature 77/118977/5
jhh [Tue, 9 Mar 2021 16:01:17 +0000 (10:01 -0600)]
add no locking feature

It provides an interface to applications for locking
purposes that always succeeds.  It does not deny
acquiring resource locks.

Issue-ID: POLICY-3114
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I6aebb5f40e4176e0ff7b0e6c6d4042a79dd0b7a3
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agomodify filename and path for csit 56/118856/1
Taka Cho [Fri, 5 Mar 2021 15:24:25 +0000 (10:24 -0500)]
modify filename and path for csit

after doing a test in jenkins sandbox
found some errors have to be fixed.

Issue-ID: POLICY-2895
Change-Id: I2bd6d79c71070ef7ce9ec179a1838d51b886b2ae
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoMerge "Fix default timestamp in upgrade script"
Jorge Hernandez [Thu, 4 Mar 2021 21:46:09 +0000 (21:46 +0000)]
Merge "Fix default timestamp in upgrade script"

3 years agoFix default timestamp in upgrade script 30/118830/3
Jim Hahn [Thu, 4 Mar 2021 19:03:42 +0000 (14:03 -0500)]
Fix default timestamp in upgrade script

The 1811 upgrade script for distributed locking is failing, because the
default timestamp value is invalid for the new column type.  Modified
the value and also added one for the downgrade script.

Issue-ID: POLICY-3117
Change-Id: I8dff748cb089db551820418b1d597a1be207c9b5
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoenable viewing lifecycle statistics with telemetry 66/118766/2
jhh [Wed, 3 Mar 2021 18:05:02 +0000 (12:05 -0600)]
enable viewing lifecycle statistics with telemetry

Issue-ID: POLICY-3121
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I25e8c4439c0a6beabe532c17cc58919f369f17f0
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoAdd quotes around variable in db script 96/118696/2
Jim Hahn [Tue, 2 Mar 2021 15:09:42 +0000 (10:09 -0500)]
Add quotes around variable in db script

Apparently, ash doesn't like "[ -z ${xxx} ]" if the content of $xxx
contains spaces.  Added quotes around ${xxx}.
Also fixed:
- a couple of "[" "]" mismatches
- a logic error in the selection of upgrade scripts

Issue-ID: POLICY-3117
Change-Id: I99c977825fe9df8a44c288b6307cd3e55c504f86
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agomove drools-pdp csit to project level 12/118612/1
Taka Cho [Fri, 26 Feb 2021 16:02:51 +0000 (11:02 -0500)]
move drools-pdp csit to project level

move tests/plans from
csit repot to drools-pdp repo

Issue-ID: POLICY-2895
Change-Id: I8fd43ca763d74d6db7950b1b5d3502f3da73e09e
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoUpdate info.yaml in drools-pdp 02/118402/1
Ram Krishna Verma [Wed, 24 Feb 2021 15:42:37 +0000 (10:42 -0500)]
Update info.yaml in drools-pdp

Issue-ID: POLICY-3028
Change-Id: I951ae73be6a42184f9fa72e4bac4432ae9b552b1
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agobump poms to 1.8.1-SNAPSHOT 78/118378/1
jhh [Wed, 24 Feb 2021 13:53:26 +0000 (07:53 -0600)]
bump poms to 1.8.1-SNAPSHOT

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I2210fcc34c9f69c3ea42c07543ffb9834f719620

3 years agodocker image release 1.8.0 26/118326/1
jhh [Tue, 23 Feb 2021 23:01:44 +0000 (17:01 -0600)]
docker image release 1.8.0

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I54d4c113e558f8392ad10a7e4e8aff3d9b9ff508

3 years agomaven release 1.8.0 25/118325/1
jhh [Tue, 23 Feb 2021 22:21:21 +0000 (16:21 -0600)]
maven release 1.8.0

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: If9d4eedc7d2710143588b0c2313628c2d9634c13

3 years agoUpgrade hibernate dependency version in drools-pdp 20/118320/1
Jim Hahn [Tue, 23 Feb 2021 21:19:11 +0000 (16:19 -0500)]
Upgrade hibernate dependency version in drools-pdp

The FOSS report for drools-pdp showed that hibernate-commons-annotations
uses the LGPL 2 license, which means it should be kept up to date, if
possible.  However, it is still version 5.0.1.Final, which was released
in 2015, while 5.1.2.Final was released in 2020.  Upgraded to the new
version.
Verified junits still pass in both drools-pdp & drools-apps.

Issue-ID: POLICY-3005
Change-Id: I1c42b14cfa812299797de002a7fa2e20b49dea6e
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agorearrange asserts in DroolsRunnable tests 14/118314/1
jhh [Tue, 23 Feb 2021 19:32:38 +0000 (13:32 -0600)]
rearrange asserts in DroolsRunnable tests

There are consistent failures when doing staging builds
in policy-core junits.  This problem shows only in stage builds.
It is suspected to be a race conditioning with the internal
scheduling of rules and insertion of events.

Issue-ID: POLICY-3097
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I0f2df770dfdda6d23e9cb29253f4152a0365d33a

3 years agouse policy-jdk-alpine:2.2.1 base image 82/118282/1
jhh [Tue, 23 Feb 2021 16:16:29 +0000 (10:16 -0600)]
use policy-jdk-alpine:2.2.1 base image

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I2c891acddcce74297cf03d696af8472c127d27ea

3 years agoversions: 1.8.0 common, 2.4.0 models, 3.3.0 parent 58/118258/1
jhh [Tue, 23 Feb 2021 15:22:34 +0000 (09:22 -0600)]
versions: 1.8.0 common, 2.4.0 models, 3.3.0 parent

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I34009c5916b04d1272b1d528272945fabe22a56c

3 years agoDeprecate feature-simulators from drools 07/118207/1
Jim Hahn [Mon, 22 Feb 2021 21:50:27 +0000 (16:50 -0500)]
Deprecate feature-simulators from drools

feature-simulators was only used by server-pool.  Now that server-pool
has been deprecated, the simulators can be deprecated, too.

Issue-ID: POLICY-3079
Change-Id: I4555432d90f99735de2f189ce626befb414027cb
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMerge "support policy execution counts in lifecycle"
Ram Krishna Verma [Mon, 22 Feb 2021 19:19:09 +0000 (19:19 +0000)]
Merge "support policy execution counts in lifecycle"

3 years agosupport policy execution counts in lifecycle 84/118184/1
jhh [Mon, 22 Feb 2021 16:54:15 +0000 (10:54 -0600)]
support policy execution counts in lifecycle

Issue-ID: POLICY-3033
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ic9150b9b76a04ee39cb0c0a78081ad22b21dcd02

3 years agoMerge "convert date to instant for statistics"
Jorge Hernandez [Mon, 22 Feb 2021 15:50:39 +0000 (15:50 +0000)]
Merge "convert date to instant for statistics"

3 years agoconvert date to instant for statistics 65/118165/1
jhh [Mon, 22 Feb 2021 14:50:05 +0000 (08:50 -0600)]
convert date to instant for statistics

Issue-ID: POLICY-3069
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I72f9db0cd70fc24a21425ad071717fc0e704bb59

3 years agodeprecate server-pool in droolspdp 05/118105/2
Taka Cho [Fri, 19 Feb 2021 14:00:43 +0000 (09:00 -0500)]
deprecate server-pool in droolspdp

deprecate server-pool in droolspdp

Issue-ID: POLICY-3079
Change-Id: Id25aea57cc4d119bba73de22c6dc77ab9a56c95f
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoMerge "remove TransMetric - not needed"
Ram Krishna Verma [Fri, 19 Feb 2021 17:29:16 +0000 (17:29 +0000)]
Merge "remove TransMetric - not needed"

3 years agoremove TransMetric - not needed 78/118078/2
jhh [Thu, 18 Feb 2021 19:32:16 +0000 (13:32 -0600)]
remove TransMetric - not needed

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>
3 years agosupport pdp-type configuration for PAP status 74/118074/3
jhh [Thu, 18 Feb 2021 18:01:05 +0000 (12:01 -0600)]
support pdp-type configuration for PAP status

Issue-ID: POLICY-3070
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iaddd9bac102cbe79626fe91d78a457dcfd4cb1fb
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoMerge "deploy stats in lifecycle module"
Jorge Hernandez [Thu, 18 Feb 2021 16:50:06 +0000 (16:50 +0000)]
Merge "deploy stats in lifecycle module"

3 years agoMerge "Upgrade dependencies in drools-pdp for IQ issues"
Ram Krishna Verma [Thu, 18 Feb 2021 16:35:06 +0000 (16:35 +0000)]
Merge "Upgrade dependencies in drools-pdp for IQ issues"

3 years agodeploy stats in lifecycle module 28/117928/6
jhh [Wed, 17 Feb 2021 00:09:46 +0000 (18:09 -0600)]
deploy stats in lifecycle module

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>
3 years agoexpose metric from mdctransaction 03/118003/1
jhh [Wed, 17 Feb 2021 22:03:42 +0000 (16:03 -0600)]
expose metric from mdctransaction

Issue-ID: POLICY-3033
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I484174ae3a09e6706a36984aa2708f8ffef17808

3 years agoUpgrade dependencies in drools-pdp for IQ issues 89/117989/1
Jim Hahn [Wed, 17 Feb 2021 16:51:52 +0000 (11:51 -0500)]
Upgrade dependencies in drools-pdp for IQ issues

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>
3 years agoMerge "Fix sonars from dependency upgrade"
Pamela Dragosh [Fri, 12 Feb 2021 15:18:12 +0000 (15:18 +0000)]
Merge "Fix sonars from dependency upgrade"

3 years agoMerge "support transaction reports in engine"
Ram Krishna Verma [Fri, 12 Feb 2021 14:45:58 +0000 (14:45 +0000)]
Merge "support transaction reports in engine"

3 years agoFix sonars from dependency upgrade 91/117791/2
Jim Hahn [Fri, 12 Feb 2021 13:03:49 +0000 (08:03 -0500)]
Fix sonars from dependency upgrade

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>
3 years agosupport transaction reports in engine 24/117724/5
jhh [Wed, 10 Feb 2021 22:20:35 +0000 (16:20 -0600)]
support transaction reports in engine

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>
3 years agoMore sonars in drools-pdp 26/117726/1
Jim Hahn [Wed, 10 Feb 2021 22:41:25 +0000 (17:41 -0500)]
More sonars in drools-pdp

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>
3 years agoMerge "Upgrade dependencies"
Ram Krishna Verma [Tue, 9 Feb 2021 21:53:28 +0000 (21:53 +0000)]
Merge "Upgrade dependencies"