liamfallon [Wed, 23 Aug 2023 15:28:41 +0000 (16:28 +0100)]
Bump snapshoths for Java 17
Bump snapshots for Java 17
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4665
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I214a1405eaa4ab3487201e9c03d46673f92f174d
Signed-off-by: liamfallon <liam.fallon@est.tech>
adheli.tavares [Fri, 21 Jul 2023 08:41:01 +0000 (09:41 +0100)]
Java 17 Upgrade
Changes to get policy-api java 17 upgrade working
Issue-ID: POLICY-4668
Change-Id: If19d614beb6a21e1d8766ff75f7af21fba245479
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
liamfallon [Thu, 25 May 2023 09:46:32 +0000 (10:46 +0100)]
Set all cross references of policy/common
policy/common updated with correct cross references
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4662
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I6f88b8296da495bc5982627c7e6ab261b81746d0
liamfallon [Thu, 25 May 2023 08:40:54 +0000 (09:40 +0100)]
Set snapshot and/or references of policy/common for new release
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4662
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic64422e4c495ba2ffe8cb602c497bdb2d8c4237c
liamfallon [Tue, 2 May 2023 11:10:28 +0000 (12:10 +0100)]
Add Adheli Tavares as a committer
Add Adheli Tavares as a committer
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4653
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0d2a19ab88f4db57d5cb7b9ef1de6782c97f9ad7
rameshiyer27 [Mon, 24 Apr 2023 15:03:27 +0000 (16:03 +0100)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4648
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: Iec549bcd7fc7c0d56b33503f922972669e19bb3d
rameshiyer27 [Mon, 24 Apr 2023 14:25:04 +0000 (15:25 +0100)]
Release policy/common: 1.12.2
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4648
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: I69b2d6c2591c9ce97b6b3ba83d540ba4aa9e3de4
rameshiyer27 [Mon, 24 Apr 2023 13:51:20 +0000 (14:51 +0100)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4648
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: If71011758adb125acb3f0090ee42a532389880ab
liamfallon [Tue, 14 Mar 2023 17:00:37 +0000 (17:00 +0000)]
Upgrade Jetty and Jersey
The new version of Jetty and Jersey brings in Server Name Checking,
which must be eiter enabled or disabled.
Also, the bug in Swagger that drags in JUnit 5 with a non "test" scope is
worked around by excluding the junit 5 dependencies.
Issue-ID: POLICY-4474
Change-Id: Ib5ba23616c8d3cb011c5055a49c9cb325c9fd667
Signed-off-by: liamfallon <liam.fallon@est.tech>
saul.gill [Fri, 10 Mar 2023 15:55:12 +0000 (15:55 +0000)]
Reverted call to ServerConnector
Version rollback in parent repo caused an error here
Constructor used had to be reverted
Issue-ID: POLICY-4474
Change-Id: Ifaee86b127aaad5f27beb2e99cd5930f97f179de
Signed-off-by: saul.gill <saul.gill@est.tech>
saul.gill [Tue, 28 Feb 2023 13:30:50 +0000 (13:30 +0000)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4570
Signed-off-by: saul.gill <saul.gill@est.tech>
Change-Id: Id610c0a0da003aae451c63d782b2e6c09a381a83
Signed-off-by: saul.gill <saul.gill@est.tech>
saul.gill [Tue, 28 Feb 2023 12:57:47 +0000 (12:57 +0000)]
Release policy/common: 1.12.1
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4570
Signed-off-by: saul.gill <saul.gill@est.tech>
Change-Id: I076027aa42251d94aec7a88961211ec62f8c0511
Liam Fallon [Tue, 28 Feb 2023 12:09:22 +0000 (12:09 +0000)]
Merge "Fixed sonar issues in policy-common"
saul.gill [Tue, 28 Feb 2023 11:58:34 +0000 (11:58 +0000)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4570
Signed-off-by: saul.gill <saul.gill@est.tech>
Change-Id: I5a5200fe883f6adc0b085654d5792009f37789d1
Suresh Charan [Thu, 23 Feb 2023 22:39:27 +0000 (17:39 -0500)]
Fixed sonar issues in policy-common
Reduced technical debt by fixing sonar issues
Issue-ID: POLICY-4536
Change-Id: I9f8366ea49ab4e5541d64db2fe1f6e8f138ce763
Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
liamfallon [Fri, 17 Feb 2023 19:12:26 +0000 (19:12 +0000)]
Clean up dependencies for London Release
Issue-ID: POLICY-4482
Change-Id: Ibc0833313bf8eb5330c414ff00a31313500959e6
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 2 Feb 2023 14:42:33 +0000 (14:42 +0000)]
Replace Eclipselink with Hibernate
Issue-ID: POLICY-4533
Change-Id: I9d2e4d90bf997935efad16e8ae4473d635ae9d65
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Tue, 31 Jan 2023 10:39:50 +0000 (10:39 +0000)]
Upgrade and clean up dependencies
- Upgrade Hibernate
- Upgrade Mockito
- Upgrade Mockserver
- Remove Powermock (no longer supported) and replace with spring-test ReflectionTestUtils
- Upgrade Spring Framework
- Add spring-security to allow authentication on unit tests using MockMVC
Minor clean-up
- Replace deprecated authorization configuraiton on spring boot applications with SecurityFilterChain bean
- Change @LocalPort include on tests to use test include rather than runtime include
- Remove unused imports
- Remove unused constants and variables
- Add deprecation annotations where required
Issue-ID: POLICY-4482
Change-Id: Iec5ba1283acd506c9f3c7fe7b5d7858db6abbaa7
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 15 Dec 2022 11:04:57 +0000 (11:04 +0000)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic0cb7dd49b28508835067a81976fa2e07bb30c84
liamfallon [Thu, 15 Dec 2022 10:33:20 +0000 (10:33 +0000)]
Release policy/common: 1.12.0
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic9dcdcc63371235db0a3b898f4f1238a2a26a6f7
liamfallon [Thu, 15 Dec 2022 09:58:03 +0000 (09:58 +0000)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I96febf08958c5b0024ec382e082a8eb0737b3e6b
liamfallon [Tue, 13 Dec 2022 14:47:11 +0000 (14:47 +0000)]
Use managed versions of dependencies
Issue-ID: POLICY-4482
Change-Id: I6d25d41c32de8f5c1dfb36e3883bb144a070978e
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Fri, 21 Oct 2022 16:31:16 +0000 (17:31 +0100)]
Set snapshot and/or references of policy/common for new release
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I235db15a4de1b683406457bad33e45599a5c49f5
liamfallon [Thu, 20 Oct 2022 19:11:59 +0000 (20:11 +0100)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I9805920f11b3a527fca02a591e7cb06273e75543
liamfallon [Thu, 20 Oct 2022 18:28:26 +0000 (19:28 +0100)]
Release policy/common: 1.11.1
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ie5fcb3fc5773f923501983231368991f1ed6cb9e
liamfallon [Thu, 20 Oct 2022 14:53:18 +0000 (15:53 +0100)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I492dcca109df2bde4bd36fc18f043510c94ea999
liamfallon [Wed, 19 Oct 2022 09:39:24 +0000 (10:39 +0100)]
Fix some dependencies flagged in scans
Issue-ID: POLICY-4393
Change-Id: I5b82f5e17ae8827486cc477d7ade4ed46e2e902b
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 22 Sep 2022 18:28:30 +0000 (19:28 +0100)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I4a15ca61a97a3d65728f4dfbed73fd3a653ec771
liamfallon [Thu, 22 Sep 2022 16:53:38 +0000 (17:53 +0100)]
Release policy/common: 1.11.0
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I33dc10d7bb86bb4ccd7a1792af9cc7294cdea0f2
liamfallon [Thu, 22 Sep 2022 13:34:37 +0000 (14:34 +0100)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I651f669f6f149d2cafcf6f13aa2c466cb1c17878
Sirisha_Manchikanti [Thu, 25 Aug 2022 14:00:58 +0000 (15:00 +0100)]
Publish and Subscribe to Kafka topic
Issue-ID: POLICY-4134
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: Idefa5b6f3cb702a4b478b76570717e73214d235a
liamfallon [Fri, 9 Sep 2022 08:29:27 +0000 (09:29 +0100)]
Remove inactive committers from INFO.yaml
Issue-ID: POLICY-4354
Change-Id: Iff5cfa03ff8aaf5f5ad18756a4a5e09e22d35d8e
Signed-off-by: liamfallon <liam.fallon@est.tech>
Ram Krishna Verma [Mon, 1 Aug 2022 19:16:45 +0000 (15:16 -0400)]
Use the dependency version from policy/parent
Removing the version attribute from this pom, so that the
same gets derived from policy/parent and managed at one
location.
Issue-ID: POLICY-4291
Change-Id: Idfa3ab68f1e80ad951460842dfaeaabdc5779b22
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Sirisha_Manchikanti [Thu, 28 Jul 2022 14:11:43 +0000 (15:11 +0100)]
Remove Kafka version, reference from intergration
Issue-ID: POLICY-4313
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: Id6c2278d372ee1d7f8b377a7d76aec19d69821f2
Sirisha_Manchikanti [Fri, 1 Jul 2022 06:15:00 +0000 (07:15 +0100)]
Introduce Custom Kafka End point
Issue-ID: POLICY-4133
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: I2745f3af97e9bb83d94c5cb6d29dfd452d315506
liamfallon [Wed, 1 Jun 2022 11:58:53 +0000 (12:58 +0100)]
Add Ramesh Murugan Iyer as a committer
Issue-ID: POLICY-4228
Change-Id: I72d05c686c1467d55ee3a271c496a38794243592
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Tue, 3 May 2022 16:21:40 +0000 (17:21 +0100)]
Set snapshot and/or references of policy/common for new release
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4073
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I79c806af98b2fc157852d0da98ed5dd0b47bfdfc
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Wed, 27 Apr 2022 08:46:42 +0000 (09:46 +0100)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I6fab0ebe25ec33ad171a1f2ce37736b550a00954
liamfallon [Tue, 26 Apr 2022 15:49:18 +0000 (16:49 +0100)]
Release policy/common: 1.10.3
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia35400d177e2d4bc5027dd13fa920833e597c55c
liamfallon [Tue, 26 Apr 2022 15:08:19 +0000 (16:08 +0100)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I042b50223c013b355ca1048af38069921c7101fb
liamfallon [Fri, 22 Apr 2022 10:10:55 +0000 (11:10 +0100)]
Fix unit test failing due to GSON upgrade
The result returned by the new GSON version has a forward slash at the
end.
Issue-ID: POLICY-4070
Change-Id: I218be9a3d21a78071323ae2127efa74353022800
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Tue, 12 Apr 2022 15:50:06 +0000 (16:50 +0100)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I337927f55a7b846ab311db23bb5db05ce70c0cec
liamfallon [Tue, 12 Apr 2022 13:35:46 +0000 (14:35 +0100)]
Release policy/common: 1.10.2
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I4fbbc4b5cdaf8a6b33a8cfa84f4012c61bd3d0b8
liamfallon [Tue, 12 Apr 2022 12:10:59 +0000 (13:10 +0100)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0d7aa13cf8e62904de0b653dbbba479487fe4fec
liamfallon [Fri, 8 Apr 2022 17:23:34 +0000 (18:23 +0100)]
Move dependency handling for Jackson to parent
All jackson version handling is done in parent.
Issue-ID: POLICY-4070
Change-Id: I43331d5d8cf3db054d9dc75038b5a3ea96c3d77f
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 7 Apr 2022 15:34:48 +0000 (16:34 +0100)]
Add separate version for Jackson annotations
Issue-ID: POLICY-4070
Change-Id: Ia742732bab1870d06fbbddc74180b995763bb442
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Wed, 9 Mar 2022 15:49:27 +0000 (15:49 +0000)]
Update snapshot and/or references of policy/common to latest snapshots
policy/common updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ie568311ebab28837dd70fad6f603fd14d356318e
liamfallon [Wed, 9 Mar 2022 15:33:28 +0000 (15:33 +0000)]
Release policy/common: 1.10.1
This commit releases repo policy/common.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I6c5f7a439a40909b7c63f7e80f23f99ef56ac2c9
liamfallon [Wed, 9 Mar 2022 14:30:35 +0000 (14:30 +0000)]
update parent references in policy/common pom
updated the parent references in the policy/common pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ieb21d165eff7569a4766d0a8cbfb92e2b71420f0
Ram Krishna Verma [Mon, 14 Feb 2022 19:17:14 +0000 (14:17 -0500)]
Move common classes to policy/common
Moving YamlHttpMessageConverter & CustomImplicitNamingStrategy
classes to policy/common (spring-utils sub-module).
So that the same can be used by multiple components without
duplicating it.
These classes are already covered by tests at each component.
Issue-ID: POLICY-3931
Change-Id: I8fc6978b585bfcd930e0916f67961d05946d207c
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
jhh [Wed, 9 Feb 2022 01:23:41 +0000 (19:23 -0600)]
add constants for policy execution latency metric
Issue-ID: POLICY-3761
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib4885e8f412c540796de37d18fc553da0a04f46c
Rashmi Pujar [Mon, 7 Feb 2022 02:17:28 +0000 (21:17 -0500)]
add global constant for policy execution metric
Issue-ID: POLICY-3845
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: Ib72691a80aa56249532058dac9c9e59936254fff
jhh [Thu, 3 Feb 2022 02:23:03 +0000 (20:23 -0600)]
add global constants for prometheus usage
Issue-ID: POLICY-3761
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I3f11d2fdb49d5b38d51add86ab6989e5d93584e9
liamfallon [Mon, 17 Jan 2022 18:21:48 +0000 (18:21 +0000)]
Fix test case broken by new GSON version
The "com/google" resource bundle now contains more than 189 files, so
this test is changed to insetead check for the existence of
"com/google/gson", otherwise this test could break every time we update
gson.
Issue-ID: POLICY-3849
Change-Id: Id979bb7a3d2453956701f64057accb08228a774d
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Wed, 12 Jan 2022 16:39:37 +0000 (16:39 +0000)]
Add newline to end of POM file
If the new line is not there, then it breaks the release scripts because
the line count is off.
Issue-ID: POLICY-3835
Change-Id: I1e2e583ead723de6d1a2c312dad78510c5e2778f
Signed-off-by: liamfallon <liam.fallon@est.tech>
jhh [Tue, 14 Dec 2021 21:39:29 +0000 (15:39 -0600)]
remove apache-log4j-extras deps from endpoints
Issue-ID: POLICY-3862
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I7f8f42e2980fb8f545773599f5ebecabaacf7234
Rashmi Pujar [Tue, 30 Nov 2021 18:31:56 +0000 (13:31 -0500)]
Use prometheus libraries defined in parent pom
Depends on https://gerrit.onap.org/r/c/policy/parent/+/125974 for build to pass.
Issue-ID: POLICY-3760
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I255bf085e0d33e09c1fdd3aea373f3c497074a85
liamfallon [Wed, 24 Nov 2021 16:34:21 +0000 (16:34 +0000)]
Update snapshot of policy/common to 1.10.1-SNAPSHOT
*** This commit is generated by a PF release script ***
This commit updates the snapshot of the repo to the next patch version.
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I4ce7c53f5df1e0e1ad954146240899230a45d945
liamfallon [Tue, 23 Nov 2021 15:21:14 +0000 (15:21 +0000)]
Release policy/common: 1.10.0
*** Release Phase 4: This commit is generated by a PF release script ***
This is the fourth phase in releasing images, it releases policy/common.
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I666ef9c61ec920750eaa7eb224da9e9c9a820229
liamfallon [Tue, 23 Nov 2021 11:50:09 +0000 (11:50 +0000)]
Update policy/parent to 3.5.0 on policy/common
*** This commit is generated by a PF release script ***
This commit updates the version of policy/parent
to the latest released version.
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I048978d2bd9ea9769f2594e4395e799867862763
Ram Krishna Verma [Mon, 25 Oct 2021 22:03:12 +0000 (18:03 -0400)]
Point to snapshot dependency
Issue-ID: POLICY-3788
Change-Id: I91441dba5c4fe3de448c354a57784afb8bf8e42c
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
liamfallon [Wed, 13 Oct 2021 14:25:08 +0000 (15:25 +0100)]
Bump policy/common master to 1.10.0-SNAPSHOT
Issue-ID: POLICY-3696
Change-Id: I3710faca8799cfdbf0d6c75ae286b1765ddf6b97
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Wed, 13 Oct 2021 10:35:38 +0000 (11:35 +0100)]
Bump policy/common to 1.9.2-SNAPSHOT
Issue-ID: POLICY-3696
Change-Id: I599ac2e36c45ba6882c95681a531da8b57efbb58
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Tue, 12 Oct 2021 21:09:27 +0000 (22:09 +0100)]
Release policy/common 1.9.1
Issue-ID: POLICY-3696
Change-Id: Ia942f56bbd02a76d13a6b5511bd7872db502f171
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Tue, 12 Oct 2021 16:06:44 +0000 (17:06 +0100)]
Point at released policy/parent
Issue-ID: POLICY-3696
Change-Id: Ib9769f66ba2da0726cbabca17fc07e5a44082b1a
Signed-off-by: liamfallon <liam.fallon@est.tech>
Jim Hahn [Tue, 21 Sep 2021 03:23:38 +0000 (23:23 -0400)]
Don't use keytool in test code
Modified code to generate a self-signed certificate file
programmatically instead of using keytool.
Issue-ID: POLICY-3587
Change-Id: I53b6ffe65f33e5710eba633973e5d23b148f049f
Signed-off-by: Jim Hahn <jrh3.lf@gmail.com>
Ram Krishna Verma [Mon, 20 Sep 2021 14:30:43 +0000 (10:30 -0400)]
Revert ignoring tests in common
Reverting the ignoring of tests in common
as the staging jobs have been marked to skip tests.
Issue-ID: POLICY-3587
Change-Id: Idcb9f432d1f563ba5e072c0c7511de7b650163fa
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
liamfallon [Mon, 13 Sep 2021 15:02:13 +0000 (16:02 +0100)]
Bump snapshot version
Issue-ID: POLICY-3587
Change-Id: I11043890dfd4dfbc19ec24eb15a546745393d105
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Mon, 13 Sep 2021 14:13:34 +0000 (15:13 +0100)]
Release policy-common 1.9.0
Issue-ID: POLICY-3587
Change-Id: I76b7a870e330154394a8e1b20e711ab97fed01d7
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Mon, 13 Sep 2021 12:20:45 +0000 (13:20 +0100)]
Work around test failure in staging job
The "keytool" program does not exist in the Jenkins staging job
environment, so the test case that checks for a keytool error message
fails because an unexpected error message is received.
Other tests also break so the tests are morked with @Ignore for now.
Issue-ID: POLICY-3587
Change-Id: Iebdbce8f5e61fb209d65198d7f7e28f5ca70e589
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Fri, 10 Sep 2021 14:48:31 +0000 (15:48 +0100)]
Fix test failure in staging job
The "keytool" program does not exist in the Jenkins staging job
environment, so the test case that checks for a keytool error message
fails because an unexpected error message is received.
By changing the test case to expect "keytool" rather than "keytool
exited with", then the test will pass when the error message "Cannot
run program "keytool": error=2, No such file or directory" is returned.
Issue-ID: POLICY-3587
Change-Id: I3a6b77fb571cfbf170f5f16bf93eece2d78a7bbb
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 9 Sep 2021 14:06:02 +0000 (15:06 +0100)]
Point at released policy-parent
Issue-ID: POLICY-3587
Change-Id: I5827b432e436620d4e014dbc4d97e0bacdb7e8e9
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Thu, 9 Sep 2021 13:34:52 +0000 (13:34 +0000)]
Merge "Update INFO.yaml"
liamfallon [Thu, 9 Sep 2021 10:34:35 +0000 (11:34 +0100)]
Point at released policy parent
Issue-ID: POLICY-3587
Change-Id: Ia541b927eb591f2790141f11f40f3124c32beb6d
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Wed, 8 Sep 2021 11:18:38 +0000 (12:18 +0100)]
Update INFO.yaml
Update the INFO.yaml file with latest information.
Issue-ID: POLICY-3552
Change-Id: Icc9b3dc4bfa2266cc1c023761861ca22b1f6f586
Signed-off-by: liamfallon <liam.fallon@est.tech>
Jim Hahn [Thu, 2 Sep 2021 16:18:49 +0000 (12:18 -0400)]
Create methods for creating temp files
Created utility methods to create temp files and set default
permissions. These can be used in other repos to satisfy sonar.
Also added code to close streams and clean up temp files created
by some junit tests.
Modified to use IOUtils to read a stream.
Issue-ID: POLICY-3289
Change-Id: Ic83e4f4d7745be7b37ebb42bf1d81e303d8dadc9
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Mon, 23 Aug 2021 16:27:41 +0000 (12:27 -0400)]
Support multiple filters in RestServer
Added an API to RestServer so that multiple Filters may be provided.
Issue-ID: POLICY-3531
Change-Id: I21f474c01d58237c744d1d70f5b39c2c90fdb401
Signed-off-by: Jim Hahn <jrh3@att.com>
Ram Krishna Verma [Mon, 23 Aug 2021 16:22:56 +0000 (16:22 +0000)]
Merge "Prevent deadlock in ServiceManager"
Ram Krishna Verma [Mon, 23 Aug 2021 16:22:02 +0000 (16:22 +0000)]
Merge "Fix sonars and java warnings in common"
Jim Hahn [Mon, 23 Aug 2021 13:54:38 +0000 (09:54 -0400)]
Prevent deadlock in ServiceManager
Modified the ServiceManager code so that isAlive() can be invoked
without requiring synchronization, thus eliminating one potential area
of deadlock.
Issue-ID: POLICY-3531
Change-Id: I27d060c3a7cfad8dab20a197d1e42c4ee607a1e2
Signed-off-by: Jim Hahn <jrh3@att.com>
a.sreekumar [Mon, 23 Aug 2021 13:27:41 +0000 (14:27 +0100)]
Disable prometheus by default in policy/common
Change-Id: I30acac6ea84bfb032994e81a93f38443818a0d1a
Issue-ID: POLICY-3538
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Jim Hahn [Fri, 20 Aug 2021 21:02:13 +0000 (17:02 -0400)]
Fix sonars and java warnings in common
Issue-ID: POLICY-3284
Change-Id: I13fc28c6ae681871be8bb9cf3d222d7c65459a44
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Wed, 18 Aug 2021 14:46:28 +0000 (10:46 -0400)]
Add topic checker
Added a method to check the readiness of a bidirectional topic.
Issue-ID: POLICY-3531
Change-Id: I2fefae7ba1ea5ed9ed33140717d05828e6dec94d
Signed-off-by: Jim Hahn <jrh3@att.com>
a.sreekumar [Mon, 9 Aug 2021 11:01:02 +0000 (12:01 +0100)]
Integrating prometheus with Policy components
With this change, all PF components can export prometheus metrics
by default. The prometheus metrics servlet will be running on
/metrics servletPath..
If the metrics shouldn't be exported, just add a flag
"promethus": false
in the restServerParameters of default configuration file.
This brings up prometheus servlet on /metrics servletPath.
Also as part of standard servlet support, "servletUriPath" and
"servletClass" are 2 other fields added to RestServerParameters
which can be used to add standard servlets. This can be revisited later
if needed.
Basically, any servlet can be added by passing these fields, for
example, to add prometheus metrics servlet on /test/metrics,
add the below to restServerParameters:
"servletUriPath": "/test/metrics",
"servletClass": "io.prometheus.client.exporter.MetricsServlet"
In addition, we can later go to individual components and add more
metrics, say for e.g.,
deployedPoliciesCounter/undeployedPoliciesCounter etc on PAP,
executedEvents/failedEvents etc on PDP and so on.
This will look something like below, for e.g. in policy-pap component:
io.prometheus.client.Counter counter = Counter.build()
.name("policies_deployed_total")
.help("Number of policies deployed.").register()
Whenever a policy is deployed, just call
counter.inc()
Usage of code like above in the individual component will expose
such data as well as part of the exposed metrics.
Change-Id: Id667f27b15c012398421ba657b5324cc1d82cf1f
Issue-ID: POLICY-3524
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Taka Cho [Wed, 4 Aug 2021 13:30:11 +0000 (09:30 -0400)]
refactor slf4j logger to common util
avoid EELF lib dependency, was suggested to move
to common util instead
Issue-ID: POLICY-3087
Change-Id: I79a2f5ba32fd3fc496ef3f72a02f4696b766f9c7
Signed-off-by: Taka Cho <takamune.cho@att.com>
Taka Cho [Mon, 2 Aug 2021 16:06:08 +0000 (12:06 -0400)]
refactor slf4j Marker to common repo
slf4j Marker logger is using in drools-pdp
and clamp. was suggested to move to common repo
to reduce duplicated codes. And possibly other
repo would be used also.
Issue-ID: POLICY-3087
Change-Id: If14b89c18e28f517f83a2b9a8dcce201333a919e
Signed-off-by: Taka Cho <takamune.cho@att.com>
Dragosh, Pamela (pd1248) [Tue, 13 Jul 2021 14:26:03 +0000 (10:26 -0400)]
Update Pam's email INFO.yaml
Issue-ID: POLICY-3484
Change-Id: I57aa0b25c104acaa5529f95ee2cbf4e5c73195ab
Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
Jim Hahn [Fri, 2 Jul 2021 16:48:47 +0000 (16:48 +0000)]
Merge "Use UUID for topic consumer instance"
Jim Hahn [Thu, 1 Jul 2021 15:41:00 +0000 (11:41 -0400)]
Wait after fetch exception on topic
When dmaap is inaccessible for some reason, the topic source frequently
enters a fast fail loop, rapidly filling up the log. Modified the code
to wait the configured fetchTimeout when this occurs.
With any luck, this will also fix the sporadic kubernetes crash-fail
loops sometimes seen with the xacml-pdp pod.
Modified to limit how long it will sleep after a failure, regardless of
the fetchTimeout that was specified.
Issue-ID: POLICY-3457
Change-Id: I88e360fb1d31197b46f4959e5ea0ea2d741ad25c
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Thu, 1 Jul 2021 14:21:23 +0000 (10:21 -0400)]
Use UUID for topic consumer instance
Modified the code so that if the consumer group is defined, but the
consumer instance is not, then policy-endpoints will generate a UUID for
the consumer instance.
Made the logic a little more straight-forward in response to a review
comment.
Issue-ID: POLICY-3405
Change-Id: If74440bdb01525bc463a28e5b8a9a2eca89a855a
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Tue, 29 Jun 2021 20:48:07 +0000 (16:48 -0400)]
Address sonars in common
Fixed:
- use "var"
- duplicate code block
Issue-ID: POLICY-3284
Change-Id: I8cd7f2588353a2e7702c90d37d7b9f972634dca9
Signed-off-by: Jim Hahn <jrh3@att.com>
Ajith Sreekumar [Tue, 29 Jun 2021 08:28:39 +0000 (08:28 +0000)]
Merge "Add name generator for PAP and PDPs"
Liam Fallon [Mon, 28 Jun 2021 14:44:54 +0000 (14:44 +0000)]
Merge "Update policy-common for checkstyle 8.43"
liamfallon [Mon, 28 Jun 2021 09:32:06 +0000 (10:32 +0100)]
Update policy-common for checkstyle 8.43
Issue-ID: POLICY-3206
Change-Id: I6d14a62e6619e2162e68846853feb36b95274866
Signed-off-by: liamfallon <liam.fallon@est.tech>
Jim Hahn [Fri, 25 Jun 2021 21:29:21 +0000 (17:29 -0400)]
Add name generator for PAP and PDPs
Added a method that PAPs and PDPs can use to generate a unique name or
identifier to be used in PAP-PDP messages.
Issue-ID: POLICY-3410
Change-Id: I22b075b123f79ba05e0884f743296c4bc64842b9
Signed-off-by: Jim Hahn <jrh3@att.com>
FrancescoFioraEst [Mon, 21 Jun 2021 09:39:22 +0000 (10:39 +0100)]
Move Validators and RestClientParameters in policy-common
Issue-ID: POLICY-3402
Change-Id: I7479027e3ea1e960266264c2d13cd69e2103710b
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Jim Hahn [Fri, 18 Jun 2021 14:12:38 +0000 (14:12 +0000)]
Merge "Fix new checkstyle issues in policy-common"
Jim Hahn [Fri, 18 Jun 2021 13:40:05 +0000 (13:40 +0000)]
Merge "Use lombok in policy-endpoints"
Jim Hahn [Fri, 18 Jun 2021 13:27:39 +0000 (09:27 -0400)]
Fix new checkstyle issues in policy-common
The new version of checkstyle identified new issues. Fixed those.
Issue-ID: POLICY-3284
Change-Id: I2a8bf2b460fda7972ce573f14df5af52d46c9993
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Thu, 17 Jun 2021 17:16:43 +0000 (13:16 -0400)]
Use lombok in policy-common utils-test
Issue-ID: POLICY-3394
Change-Id: I85504848afc268be7419654dc95ed555d870272c
Signed-off-by: Jim Hahn <jrh3@att.com>