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
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>
Jorge Hernandez [Thu, 12 Aug 2021 15:33:32 +0000 (15:33 +0000)]
Merge "Add SQL_PORT configuration"
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>
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>
Ram Krishna Verma [Mon, 9 Aug 2021 13:11:22 +0000 (13:11 +0000)]
Merge "Use lombok in drools-pdp #4"
Ram Krishna Verma [Mon, 9 Aug 2021 13:11:12 +0000 (13:11 +0000)]
Merge "Use lombok in drools-pdp #3"
Ram Krishna Verma [Mon, 9 Aug 2021 13:10:52 +0000 (13:10 +0000)]
Merge "Use lombok in drools-pdp #2"
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>
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>
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>
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>
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>
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>
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>
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>
Ram Krishna Verma [Wed, 30 Jun 2021 17:20:52 +0000 (17:20 +0000)]
Merge "Remove unused property from pom"
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>
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>
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>
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>
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
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
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
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
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>
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
Jim Hahn [Fri, 14 May 2021 20:55:18 +0000 (20:55 +0000)]
Merge "fix telemetry related sonar security issues"
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>
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
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
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
Ram Krishna Verma [Mon, 10 May 2021 16:58:49 +0000 (16:58 +0000)]
Merge "sonars policy-utils and feature-lifecycle"
Jorge Hernandez [Mon, 10 May 2021 15:14:37 +0000 (15:14 +0000)]
Merge "support no https or authentication in telemetry"
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>
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
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>
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>
Liam Fallon [Wed, 21 Apr 2021 08:01:28 +0000 (08:01 +0000)]
Merge "Make skipping of deployment configurable"
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
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>
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>
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>
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>
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>
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
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
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>
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
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
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
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
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
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>
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>
Jorge Hernandez [Thu, 4 Mar 2021 21:46:09 +0000 (21:46 +0000)]
Merge "Fix default timestamp in upgrade script"
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>
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>
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>
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>
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>
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
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
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
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>
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
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
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
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>
Ram Krishna Verma [Mon, 22 Feb 2021 19:19:09 +0000 (19:19 +0000)]
Merge "support policy execution counts in lifecycle"
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
Jorge Hernandez [Mon, 22 Feb 2021 15:50:39 +0000 (15:50 +0000)]
Merge "convert date to instant for statistics"
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
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>
Ram Krishna Verma [Fri, 19 Feb 2021 17:29:16 +0000 (17:29 +0000)]
Merge "remove TransMetric - not needed"
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>
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>
Jorge Hernandez [Thu, 18 Feb 2021 16:50:06 +0000 (16:50 +0000)]
Merge "deploy stats in lifecycle module"
Ram Krishna Verma [Thu, 18 Feb 2021 16:35:06 +0000 (16:35 +0000)]
Merge "Upgrade dependencies in drools-pdp for IQ issues"
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>
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
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>
Pamela Dragosh [Fri, 12 Feb 2021 15:18:12 +0000 (15:18 +0000)]
Merge "Fix sonars from dependency upgrade"
Ram Krishna Verma [Fri, 12 Feb 2021 14:45:58 +0000 (14:45 +0000)]
Merge "support transaction reports in engine"
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>
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>
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>
Ram Krishna Verma [Tue, 9 Feb 2021 21:53:28 +0000 (21:53 +0000)]
Merge "Upgrade dependencies"
Jim Hahn [Tue, 9 Feb 2021 16:01:43 +0000 (11:01 -0500)]
Upgrade dependencies
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>
jhh [Fri, 5 Feb 2021 22:05:50 +0000 (16:05 -0600)]
pull generic code from mdctransaction into metric
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>
jhh [Fri, 29 Jan 2021 00:21:21 +0000 (18:21 -0600)]
small perf improvement passing policy map argument
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>
jhh [Thu, 28 Jan 2021 22:30:51 +0000 (16:30 -0600)]
sonars - protected constructors and typecasting
Issue-ID: POLICY-3017
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I7e7e384db26e244e2514aec3c3579b7b7f92f8a1
jhh [Fri, 15 Jan 2021 22:51:47 +0000 (16:51 -0600)]
sync policies when native artifact policies added
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>
jhh [Wed, 13 Jan 2021 22:34:13 +0000 (16:34 -0600)]
add methods to check if a fact exists.
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>
Jorge Hernandez [Mon, 11 Jan 2021 17:43:32 +0000 (17:43 +0000)]
Merge "sort deploy and undeploy policy lists"
jhh [Mon, 11 Jan 2021 13:39:17 +0000 (07:39 -0600)]
sort deploy and undeploy policy lists
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
Taka Cho [Thu, 7 Jan 2021 19:18:58 +0000 (14:18 -0500)]
drools-pdp docker build fail
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>
Jim Hahn [Wed, 6 Jan 2021 18:07:54 +0000 (18:07 +0000)]
Merge "Changed identifiers to concept identifiers"
Taka Cho [Tue, 5 Jan 2021 20:14:51 +0000 (15:14 -0500)]
use jdk base 2.2.0 - drools
use jdk base 2.2.0
Issue-ID: POLICY-2917
Change-Id: Ib7692dd05290dcb672a30174ed90441d364a4b83
Signed-off-by: Taka Cho <takamune.cho@att.com>
liamfallon [Mon, 4 Jan 2021 15:58:25 +0000 (15:58 +0000)]
Changed identifiers to concept identifiers
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>