policy/pap.git
5 months agoRelease policy/pap: 3.0.2 69/136469/1
liamfallon [Mon, 13 Nov 2023 13:40:05 +0000 (14:40 +0100)]
Release policy/pap: 3.0.2

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4854
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I2ba6b3a01a45d1761dacad66309dd1d15c65fc3f

5 months agoupdate references in policy/pap pom 65/136465/1
liamfallon [Mon, 13 Nov 2023 12:29:07 +0000 (13:29 +0100)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4854
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I71dd9aed017c2d19bddccd786c38845425d67b2e

5 months agoFix jmx files for PAP S3P tests 84/136384/1
rameshiyer27 [Thu, 2 Nov 2023 12:24:58 +0000 (12:24 +0000)]
Fix jmx files for PAP S3P tests

Issue-ID: POLICY-4846
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: Iac86f708c852bc8fbd26f2923a4e2a71be0ab248

6 months agoUpdate snapshot and/or references of policy/pap to latest snapshots 66/136266/1
liamfallon [Wed, 18 Oct 2023 14:48:20 +0000 (15:48 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4854
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I87d6084eb082067ffcf0801e3ca874e5f34c5909

6 months agoRelease docker images for policy/pap: 3.0.1 56/136256/1
liamfallon [Wed, 18 Oct 2023 13:33:58 +0000 (14:33 +0100)]
Release docker images for policy/pap: 3.0.1

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4854
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I881e4b9348c20528549b052b8679744e5833729d

6 months agoRelease policy/pap: 3.0.1 46/136246/1
liamfallon [Wed, 18 Oct 2023 12:29:17 +0000 (13:29 +0100)]
Release policy/pap: 3.0.1

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4854
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia74af226356a9ddf4f652a113ae23ee940a0cf65

6 months agoupdate references in policy/pap pom 39/136239/1
liamfallon [Wed, 18 Oct 2023 11:19:42 +0000 (12:19 +0100)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4854
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I9e4545c507c3ed74f1f0434826e97da4d6d28ae1

6 months agoFix version.properties major version 16/136216/1
liamfallon [Wed, 18 Oct 2023 08:07:57 +0000 (09:07 +0100)]
Fix version.properties major version

Fix version.properties major version

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4854
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7b4f2f57b1f23d1daf25d346b9c27de7ff849893

6 months agoRemove AAF references from pap 44/136144/2
adheli.tavares [Wed, 11 Oct 2023 08:56:26 +0000 (09:56 +0100)]
Remove AAF references from pap

Issue-ID: POLICY-4592
Change-Id: Id0d954f81e48d1464d71b37d853e74fc90b6fbeb
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
6 months agoMerge "Fix sonar code smells"
Liam Fallon [Wed, 11 Oct 2023 14:20:26 +0000 (14:20 +0000)]
Merge "Fix sonar code smells"

6 months agoFix run-s3p-test.sh 39/136139/1
saul.gill [Wed, 11 Oct 2023 12:58:56 +0000 (13:58 +0100)]
Fix run-s3p-test.sh

Add missing arg in script

Issue-ID: POLICY-4853
Change-Id: I33a249977194beff13ed704273f65fddedf09f11
Signed-off-by: saul.gill <saul.gill@est.tech>
7 months agoFix sonar code smells 36/136136/1
adheli.tavares [Fri, 29 Sep 2023 08:05:58 +0000 (09:05 +0100)]
Fix sonar code smells

Issue-ID: POLICY-4832
Change-Id: Icb8013fe566e9cb265f5b75340d4bb51211a890a
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
7 months agoJava 17 / Spring 6 / Spring Boot 3 Upgrade 08/136008/1
adheli.tavares [Thu, 17 Aug 2023 21:09:58 +0000 (22:09 +0100)]
Java 17 / Spring 6 / Spring Boot 3 Upgrade

Issue-ID: POLICY-4671
Change-Id: I664e5f62b1ad23619888af98589c04875b07f4d3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
8 months agoRemoved db-based statistics feature 21/133921/6
Suresh Charan [Wed, 29 Mar 2023 18:38:40 +0000 (14:38 -0400)]
Removed db-based statistics feature

Statistics code cleanup

Issue-ID: POLICY-4109
Change-Id: I543080e1ed3ce9c4f16d01df8f13219cba0a9c8c
Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
11 months agoSet all cross references of policy/pap 63/134663/1
liamfallon [Thu, 25 May 2023 09:46:41 +0000 (10:46 +0100)]
Set all cross references of policy/pap

policy/pap 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: Ic6fc3379a8a035eb099f9630e254e272d70e8ccc

11 months agoSet snapshot and/or references of policy/pap for new release 50/134650/1
liamfallon [Thu, 25 May 2023 08:41:08 +0000 (09:41 +0100)]
Set snapshot and/or references of policy/pap for new release

policy/pap 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: I6058bf3649bab89721c610ff354a988d33f6305c

12 months agoAdd Adheli Tavares as a committer 11/134411/2
liamfallon [Tue, 2 May 2023 11:11:41 +0000 (12:11 +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: I496e2d9e9a0f9fcbe6968f3c486b46a66517a3b8

12 months agoUpdate snapshot and/or references of policy/pap to latest snapshots 46/134346/1
Suresh Charan [Tue, 25 Apr 2023 16:12:49 +0000 (12:12 -0400)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4648
Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
Change-Id: Ie7d6aa78bec8eca6c8365e565eaa212350d90f47

12 months agoRelease docker images for policy/pap: 2.8.2 43/134343/1
Suresh Charan [Tue, 25 Apr 2023 15:44:12 +0000 (11:44 -0400)]
Release docker images for policy/pap: 2.8.2

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4648
Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
Change-Id: Ie97635e340dae1d4f776b927e630b658a5f0e9ed

12 months agoRelease policy/pap: 2.8.2 33/134333/1
rameshiyer27 [Tue, 25 Apr 2023 13:41:42 +0000 (14:41 +0100)]
Release policy/pap: 2.8.2

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4648
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: Icc534e3f202226bc43091bf968f9f0f321e50706

12 months agoupdate references in policy/pap pom 22/134322/1
rameshiyer27 [Tue, 25 Apr 2023 08:47:42 +0000 (09:47 +0100)]
update references in policy/pap pom

updated references in the policy/pap 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: I465d7a75a67a5b604c4990e926bb7400234596d9

14 months agoUpdate snapshot and/or references of policy/pap to latest snapshots 01/133501/1
saul.gill [Wed, 1 Mar 2023 12:37:49 +0000 (12:37 +0000)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap 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: Ib333a5cf96693209f0a01cb3ac55616e4d244b04

14 months agoRelease docker images for policy/pap: 2.8.1 87/133487/1
saul.gill [Wed, 1 Mar 2023 11:52:06 +0000 (11:52 +0000)]
Release docker images for policy/pap: 2.8.1

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4570
Signed-off-by: saul.gill <saul.gill@est.tech>
Change-Id: Ifa2a6f5168af6ef333b5c284a690f327812204ba

14 months agoMerge "Fixed sonar issues in policy-pap"
Ram Krishna Verma [Tue, 28 Feb 2023 19:39:45 +0000 (19:39 +0000)]
Merge "Fixed sonar issues in policy-pap"

14 months agoRelease policy/pap: 2.8.1 71/133471/1
saul.gill [Tue, 28 Feb 2023 16:34:51 +0000 (16:34 +0000)]
Release policy/pap: 2.8.1

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4570
Signed-off-by: saul.gill <saul.gill@est.tech>
Change-Id: I5d1bf0894009c50fa6c56f1e846538a08fea4f55

14 months agoupdate references in policy/pap pom 63/133463/1
saul.gill [Tue, 28 Feb 2023 15:42:15 +0000 (15:42 +0000)]
update references in policy/pap pom

updated references in the policy/pap 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: I25ec3274c2b98ca742ff8aab96fc6504bf8de8e0

14 months agoFixed sonar issues in policy-pap 34/133434/3
Suresh Charan [Mon, 27 Feb 2023 18:14:07 +0000 (13:14 -0500)]
Fixed sonar issues in policy-pap

Reduced technical debt by fixing sonar issues

Issue-ID: POLICY-4536
Change-Id: I3f4ff8cae7d22c5d2d062e98475592425e3c98c4
Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
14 months agoClean up dependencies for London Release 24/133324/2
liamfallon [Fri, 17 Feb 2023 19:14:42 +0000 (19:14 +0000)]
Clean up dependencies for London Release

Issue-ID: POLICY-4482
Change-Id: Iab954284a842d6065b05138efa501dd9dc7dff63
Signed-off-by: liamfallon <liam.fallon@est.tech>
14 months agoMerge "Update Dockerfile for PF base image"
Pamela Dragosh [Fri, 17 Feb 2023 15:22:56 +0000 (15:22 +0000)]
Merge "Update Dockerfile for PF base image"

14 months agoAutomate S3P tests in Pap 49/133249/4
waynedunican [Tue, 13 Dec 2022 08:55:43 +0000 (08:55 +0000)]
Automate S3P tests in Pap

- Trigger Pap S3P Tests

Issue-ID: POLICY-4156
Change-Id: I7fe5883c5e9f74599422b541345c4fde4b50b551
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
14 months agoUpdate Dockerfile for PF base image 82/133282/1
liamfallon [Tue, 14 Feb 2023 11:31:09 +0000 (11:31 +0000)]
Update Dockerfile for PF base image

The Policy Framework base image run under the "onap" user rather than
under the "root" user. This means that root access has to be enabled in
child Dockerfiles for configuraiton that requires root access.

Root access is turned off again later in the Dockerfile so that the
image will run under another user.

Issue-ID: POLICY-4558
Change-Id: I4da232b60353ce175465bb020db21f22a246f643
Signed-off-by: liamfallon <liam.fallon@est.tech>
14 months agoReplace Eclipselink with Hibernate 30/133130/2
liamfallon [Thu, 2 Feb 2023 14:46:18 +0000 (14:46 +0000)]
Replace Eclipselink with Hibernate

Issue-ID: POLICY-4533
Change-Id: I8ba51dce05f537778a92547bceff6eb6d6099144
Signed-off-by: liamfallon <liam.fallon@est.tech>
15 months agoUpgrade and clean up dependencies 81/133081/1
liamfallon [Tue, 31 Jan 2023 10:42:20 +0000 (10:42 +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: Ifcabd73e4130810ba2a99b842ffa4203836c0682
Signed-off-by: liamfallon <liam.fallon@est.tech>
15 months agoAdding PAP contract tests 64/133064/1
lapentafd [Mon, 30 Jan 2023 11:08:24 +0000 (11:08 +0000)]
Adding PAP contract tests

Adding Contract tests, verifying the stubbed implementation.

Fixing name in application-stub.yaml

Issue-ID: POLICY-4534
Change-Id: I03d8b37ba2f57aa03ee814924b4e52dd0c643772
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
15 months agoServer Stubs PAP 14/133014/1
lapentafd [Tue, 24 Jan 2023 15:50:27 +0000 (15:50 +0000)]
Server Stubs PAP

Added "stub" profile with simple endpoint implementation

Issue-ID: POLICY-4143
Change-Id: I8ad911f314e1d1428d05aa419f1322616d8ef835
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
15 months agoUse generated PAP interface for Swagger 04/132904/4
lapentafd [Mon, 9 Jan 2023 15:16:54 +0000 (15:16 +0000)]
Use generated PAP interface for Swagger

This commit removes the Swagger V2 annotations on the
Rest Controllers in policy-pap. The OpeApi annotations (Swagger
v3 annotations) are on a generated Java Interface. The code is changed
so that the controller implements that interface.

There are minimal code changes to the controller and the order of the
parameters is switched in some cases.

Issue-ID: POLICY-4404
Change-Id: I060709806a8e5bc04d9873c8d212a5c9fe13c4d4
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
16 months agoUpgrade the H2 database to the latest version 97/132797/1
liamfallon [Sun, 18 Dec 2022 02:26:48 +0000 (02:26 +0000)]
Upgrade the H2 database to the latest version

The latest verison of H2 does not allow colums called "user" or indexes
using an underscore in their name.

Issue-ID: POLICY-4488
Change-Id: I9ce7435b5dfa81daaf04e7f7a50f9db6582cdc0b
Signed-off-by: liamfallon <liam.fallon@est.tech>
16 months agoUpdate snapshot and/or references of policy/pap to latest snapshots 70/132770/1
liamfallon [Thu, 15 Dec 2022 16:19:31 +0000 (16:19 +0000)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap 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: I14d931b8d2f7a8f63a0a5ffbb2fd2cfafaddc33a

16 months agoRelease docker images for policy/pap: 2.8.0 58/132758/1
liamfallon [Thu, 15 Dec 2022 15:38:45 +0000 (15:38 +0000)]
Release docker images for policy/pap: 2.8.0

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ie7244ab6c230df8c3545f780d331ba0c9f9651f3

16 months agoRelease policy/pap: 2.8.0 49/132749/1
liamfallon [Thu, 15 Dec 2022 14:13:03 +0000 (14:13 +0000)]
Release policy/pap: 2.8.0

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I2a4d8f8843243dd88cfc6952494d23aa62a6ee23

16 months agoupdate references in policy/pap pom 38/132738/1
liamfallon [Thu, 15 Dec 2022 12:39:53 +0000 (12:39 +0000)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I2ee988f48734963c693712dc60024c4dfb930d8d

16 months agoSLAs for async methods 22/132622/4
adheli.tavares [Wed, 7 Dec 2022 14:59:37 +0000 (14:59 +0000)]
SLAs for async methods

- undeploy policy timing
- deploy policy timing
- unit tests for actuator endpoints

Issue-ID: POLICY-4469
Change-Id: I3298888e59824347b8d2a57fb531c10f2f4ca125
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
16 months agoReplace SpringFox with SpringDoc in policy-pap 44/132644/1
liamfallon [Thu, 8 Dec 2022 18:44:09 +0000 (18:44 +0000)]
Replace SpringFox with SpringDoc in policy-pap

This commit:
- Remove SpringFox
- Adds SpringDoc
- Enables the .../v3/api-docs endpoint

Note that the Swagger annotations from the OpenAPI specification
generated code need to be enabled so that the API specification is
available over the ..../v3/api-docs endpoint. THis will be done in
subsequent commits.

Issue-ID: POLICY-4404
Change-Id: I42c1575a3ce76d9b3e753ad51f85df027d12b980
Signed-off-by: liamfallon <liam.fallon@est.tech>
17 months agoMove git-commit-id-maven-plugin to parent pom 73/132473/1
danielhanrahan [Fri, 25 Nov 2022 16:14:55 +0000 (16:14 +0000)]
Move git-commit-id-maven-plugin to parent pom

The POM config for git-commit-id-maven-plugin is duplicated in each
repo, so the config is moved to policy/parent

Issue-ID: POLICY-4466
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2e46e014cbc277785a236b60603d395490e58220

17 months agoMerge "Add OpenAPI Swagger 3 spec and API generation"
Liam Fallon [Tue, 22 Nov 2022 16:31:35 +0000 (16:31 +0000)]
Merge "Add OpenAPI Swagger 3 spec and API generation"

17 months agoAdd OpenAPI Swagger 3 spec and API generation 02/132302/1
liamfallon [Thu, 17 Nov 2022 21:58:24 +0000 (13:58 -0800)]
Add OpenAPI Swagger 3 spec and API generation

This commit adds the Policy/API OpenAPI (Swagger) document as a source
document under source control.

This OpenAPI document was generated from the existing SpringFox
annotations in the source code, was uploaded to the online Swagger
editor and was converted into OpenAPI 3.0 format. It was then manually
edited to correct the return types and to match the input and putput
types to our Java classes.

The pom.xml is also amended to generate the API interface source doe in
the target/generated-sources directory.

The generated code does NOT replace the existing API code as yet.

Issue-ID: POLICY-4431
Change-Id: Iee1cc6a122deffcd05728e8f34172f8d423ebcef
Signed-off-by: liamfallon <liam.fallon@est.tech>
17 months agoTopic names in PAP should be configurable from application.yaml 66/132266/2
adheli.tavares [Wed, 16 Nov 2022 14:12:22 +0000 (14:12 +0000)]
Topic names in PAP should be configurable from application.yaml

- for using Kafka instead of dmaap, topics names need to be lowercase
- fix for unit/integration tests using default names and changed names
for topics and group
- fix for sonar lints found along the way

Issue-ID: POLICY-4455
Change-Id: I89e9e6f7dbb07462f1ae497755965cb5a3f223a3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
18 months agoSet snapshot and/or references of policy/pap for new release 97/131697/1
liamfallon [Fri, 21 Oct 2022 16:45:27 +0000 (17:45 +0100)]
Set snapshot and/or references of policy/pap for new release

policy/pap 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: I09bf91495a8ae93e7e3c4aaadf3ad14971c6bbfb

18 months agoUpdate snapshot and/or references of policy/pap to latest snapshots 47/131647/1
liamfallon [Fri, 21 Oct 2022 09:50:15 +0000 (10:50 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap 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: I61b9bc417feeccbda2cf55d2f79327d01f362fae

18 months agoRelease docker images for policy/pap: 2.7.1 42/131642/1
liamfallon [Fri, 21 Oct 2022 09:19:41 +0000 (10:19 +0100)]
Release docker images for policy/pap: 2.7.1

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I8fdbe2a706b85ab97cc142fe242bcaa68db2e461

18 months agoRelease policy/pap: 2.7.1 33/131633/1
liamfallon [Fri, 21 Oct 2022 08:38:34 +0000 (09:38 +0100)]
Release policy/pap: 2.7.1

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic6517fa17551d36465aa1b005b48a448705fd842

18 months agoupdate references in policy/pap pom 31/131631/1
liamfallon [Fri, 21 Oct 2022 07:06:17 +0000 (08:06 +0100)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Id4f5ddedad25e513aaee953d17e5c323fa7487f1

18 months agoUse spring-boot-starter-actuator managed version 32/131432/1
liamfallon [Tue, 11 Oct 2022 18:20:32 +0000 (19:20 +0100)]
Use spring-boot-starter-actuator managed version

Issue-ID: POLICY-4393
Change-Id: Ic091b5efa999461121e870d04d6524e44bc07e03
Signed-off-by: liamfallon <liam.fallon@est.tech>
19 months agoAdd Kafka dependency 71/131271/1
Sirisha_Manchikanti [Wed, 28 Sep 2022 08:15:24 +0000 (09:15 +0100)]
Add Kafka dependency

Issue-ID: POLICY-4134
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: Id9b4609c9bf0656eb0c3a83e20f4161a07fbc6d7

19 months agoUpdate snapshot and/or references of policy/pap to latest snapshots 37/131137/1
liamfallon [Fri, 23 Sep 2022 09:58:43 +0000 (10:58 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap 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: Iacf22dfa0876db72b906b1b4e5b95611379be9b3

19 months agoRelease docker images for policy/pap: 2.7.0 27/131127/1
liamfallon [Fri, 23 Sep 2022 08:44:46 +0000 (09:44 +0100)]
Release docker images for policy/pap: 2.7.0

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I8fb14976f09872e640800600ca9a5053840dbe1d

19 months agoRelease policy/pap: 2.7.0 19/131119/1
liamfallon [Fri, 23 Sep 2022 06:51:03 +0000 (07:51 +0100)]
Release policy/pap: 2.7.0

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I78c6e4ddca9882ecf67cc361cfa5616047b1baa1

19 months agoupdate references in policy/pap pom 11/131111/1
liamfallon [Thu, 22 Sep 2022 22:22:20 +0000 (23:22 +0100)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ie9178a197f5789b66bf0945839bdab302bdebccb

19 months agoFix minor warnings in code 87/130987/2
liamfallon [Fri, 16 Sep 2022 16:47:08 +0000 (17:47 +0100)]
Fix minor warnings in code

Issue-ID: POLICY-4045
Change-Id: I08c3cb1af3dbe2051dcbb0e2726906faff4a37b3
Signed-off-by: liamfallon <liam.fallon@est.tech>
19 months agoRemove inactive committers from INFO.yaml 27/130827/1
liamfallon [Fri, 9 Sep 2022 09:23:00 +0000 (10:23 +0100)]
Remove inactive committers from INFO.yaml

Remove inactive committers from INFO.yaml

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4354
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I357869ac50932de3ea857194b4ed761dcc16c2a8

20 months agoAllow setting external dockerfile for policy-pap 35/130635/1
danielhanrahan [Tue, 30 Aug 2022 07:27:13 +0000 (08:27 +0100)]
Allow setting external dockerfile for policy-pap

If building with an external dockerfile, e.g. using
 mvn clean install -Pdocker -DdockerFile=/path/to/dockerfile
docker will look for project files in the same directory as the
new dockerfile. A new property is added for setting the context
path, to allow using existing project files in src/main/docker.

Issue-ID: POLICY-4334
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ica6984b0460e5814df56ab6679003e98b983d397

21 months agoUpdate docker base image to snapshot 67/130067/1
liamfallon [Fri, 29 Jul 2022 14:27:11 +0000 (15:27 +0100)]
Update docker base image to snapshot

Update docker base image to snapshot

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4287
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Idc09b2371c376dc32d4827cca8d28afe2184cae1

21 months agoReduce size of docker images for PAP 34/129734/2
danielhanrahan [Fri, 1 Jul 2022 13:05:57 +0000 (14:05 +0100)]
Reduce size of docker images for PAP

Remove unused jar files from image (not needed since spring boot)
Avoid creating extra layers when extracting tarball
Reduce size of Alpine image by 73% (959MB to 259MB)
Reduce size of OpenSuse image by 62% (1.12GB to 423MB)

Issue-ID: POLICY-4266
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I5a0a3efc81b0cb8da899c12f65479fd2af935451

21 months agoUpgrade OpenSuse version to 15.4 for pap 75/129875/1
danielhanrahan [Mon, 11 Jul 2022 14:31:01 +0000 (15:31 +0100)]
Upgrade OpenSuse version to 15.4 for pap

Issue-ID: POLICY-4278
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iafe1e311a22693eb30758949cdb1414d4c8d080a

22 months agoOCI image spec labels for PAP 07/129707/1
danielhanrahan [Tue, 28 Jun 2022 10:34:31 +0000 (11:34 +0100)]
OCI image spec labels for PAP

Issue-ID: POLICY-4254
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ide30dc437f25846b569b5f4ac9a581880705a7c4

23 months agoMerge "Add Ramesh Murugan Iyer as a committer"
Liam Fallon [Thu, 2 Jun 2022 08:08:22 +0000 (08:08 +0000)]
Merge "Add Ramesh Murugan Iyer as a committer"

23 months agoAdd Ramesh Murugan Iyer as a committer 43/129443/1
liamfallon [Wed, 1 Jun 2022 12:04:56 +0000 (13:04 +0100)]
Add Ramesh Murugan Iyer as a committer

Issue-ID: POLICY-4228
Change-Id: I6abd4506c967e49ce093c521484f6e5a5f0c5bec
Signed-off-by: liamfallon <liam.fallon@est.tech>
23 months agoOpenSuse docker file for policy PAP 16/129316/1
danielhanrahan [Thu, 19 May 2022 09:53:50 +0000 (10:53 +0100)]
OpenSuse docker file for policy PAP

Create OpenSuse docker file
Add build profile for OpenSuse docker image

Issue-ID: POLICY-4189
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I4aca4c5d3486cecf012989e9227557587f83bbb6

2 years agoSet snapshot and/or references of policy/pap for new release 50/129050/1
liamfallon [Tue, 3 May 2022 16:21:53 +0000 (17:21 +0100)]
Set snapshot and/or references of policy/pap for new release

policy/pap 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: I71900f971ba646a97d54113351406398ada70a12
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUpdate snapshot and/or references of policy/pap to latest snapshots 72/128972/1
liamfallon [Thu, 28 Apr 2022 15:00:29 +0000 (16:00 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap 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: I312fe988c4e2611dead50a7e7b28ab18de6cd75c

2 years agoRelease docker images for policy/pap: 2.6.3 63/128963/1
liamfallon [Thu, 28 Apr 2022 14:33:10 +0000 (15:33 +0100)]
Release docker images for policy/pap: 2.6.3

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I3b2e5a690b67ac6e818dea33f1096a3db2b21f89

2 years agoRelease policy/pap: 2.6.3 53/128953/1
liamfallon [Thu, 28 Apr 2022 13:41:37 +0000 (14:41 +0100)]
Release policy/pap: 2.6.3

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I568b12a3db25004ebc4039dc229af65c2a95c262

2 years agoupdate references in policy/pap pom 16/128916/1
liamfallon [Wed, 27 Apr 2022 19:55:49 +0000 (20:55 +0100)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic269481eed341f1c3043f53e76e6fa21b9856075

2 years agoPAP S3P jmx changes 11/128711/2
a.sreekumar [Tue, 19 Apr 2022 13:38:43 +0000 (14:38 +0100)]
PAP S3P jmx changes

Change-Id: I48c719276d2a53f2e4de9f4c87e54d3f373111ed
Issue-ID: POLICY-4008
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoUpdate snapshot and/or references of policy/pap to latest snapshots 26/128526/1
liamfallon [Tue, 12 Apr 2022 20:34:51 +0000 (21:34 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap 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: Ia650fc73cb0af8e8b36b82791918e23e51367308

2 years agoRelease docker images for policy/pap: 2.6.2 17/128517/1
liamfallon [Tue, 12 Apr 2022 18:47:37 +0000 (19:47 +0100)]
Release docker images for policy/pap: 2.6.2

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0121998e4e554442bbb9c45489903eddad6ded0a

2 years agoRelease policy/pap: 2.6.2 11/128511/1
liamfallon [Tue, 12 Apr 2022 18:23:41 +0000 (19:23 +0100)]
Release policy/pap: 2.6.2

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I1cb5fefb3e166515d26964f9af9b8949e16f61cb

2 years agoupdate references in policy/pap pom 01/128501/1
liamfallon [Tue, 12 Apr 2022 17:41:56 +0000 (18:41 +0100)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Icf68c7320c8e1b20dde8b0db2cfbd728ba2f77bf

2 years agoFix incorrect deployments counter on parallel execution 26/128426/6
a.sreekumar [Mon, 11 Apr 2022 10:18:04 +0000 (11:18 +0100)]
Fix incorrect deployments counter on parallel execution

Change-Id: I72bde10eae615e2c89ccc1a211c6385404b9b3c7
Issue-ID: POLICY-4088
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoFix incorrect url in PAP consolidated healthcheck 65/128265/1
a.sreekumar [Mon, 4 Apr 2022 11:32:16 +0000 (12:32 +0100)]
Fix incorrect url in PAP consolidated healthcheck

Change-Id: I0194483f371e1140ad56029c23b6f400df0dcbdc
Issue-ID: POLICY-4068
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoFix build failure in pap 15/127915/1
rameshiyer27 [Mon, 21 Mar 2022 14:29:28 +0000 (14:29 +0000)]
Fix build failure in pap

policy-models changes for metadataSet db serialization causes
test failure in pap.

Issue-ID: POLICY-3934
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ibc24e3a27e1cdd6111719651349888157fc31593

2 years agoUpdate snapshot and/or references of policy/pap to latest snapshots 11/127711/1
liamfallon [Fri, 11 Mar 2022 18:02:48 +0000 (18:02 +0000)]
Update snapshot and/or references of policy/pap to latest snapshots

policy/pap 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: I856f412dc6e27011d13aa6ff05dff8f000cc9a2b

2 years agoRelease docker images for policy/pap: 2.6.1 99/127699/3
liamfallon [Fri, 11 Mar 2022 14:17:05 +0000 (14:17 +0000)]
Release docker images for policy/pap: 2.6.1

This commit releases docker images for repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3982
Change-Id: I9cc8e07c25e0cd7a259fbf20d30f0be7b3c80f68
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease policy/pap: 2.6.1 89/127689/1
liamfallon [Fri, 11 Mar 2022 12:08:11 +0000 (12:08 +0000)]
Release policy/pap: 2.6.1

This commit releases repo policy/pap.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I442a0b6604b91c12683f0cd6960cf3f88458b0b4

2 years agoFix PAP healthcheck response during failures 68/127668/2
a.sreekumar [Thu, 10 Mar 2022 17:56:48 +0000 (17:56 +0000)]
Fix PAP healthcheck response during failures

The healthcheck response that is returned by PAP is not inline with the
actual healthreport. Even when the report has
healthy:false, code:503, message:not alive
the response code stays 200. This is fixed, this also makes the improved
readiness probe in OOM to work properly with the healthcheck calls

Change-Id: Ib208e0a84bce74157aacbcad61a11dcf900c7c94
Issue-ID: POLICY-4030
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoupdate references in policy/pap pom 16/127616/2
liamfallon [Thu, 10 Mar 2022 09:12:57 +0000 (09:12 +0000)]
update references in policy/pap pom

updated references in the policy/pap pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia809db011a805e9bec71b5843dbf6a3b5b2ea30b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoFix swagger and improve exception handling 96/127096/5
a.sreekumar [Mon, 14 Feb 2022 11:11:11 +0000 (11:11 +0000)]
Fix swagger and improve exception handling

1) Swagger was getting generated in a different format
due to a serialization isue. It is fixed.
2) Improved exception handling by taking care of any exceptions
that could occur in and around database operations.
3) AAF enabling/disabling was done using spring profiles.
This is changed to using parameters, as it is more easier to configure
in an OOM helm chart deployment

Change-Id: If1bee01379ba5c4efac29822662896d8aa883fc8
Issue-ID: POLICY-3975
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMerge "Add support for populating metadataSet in PAP tosca policy"
Liam Fallon [Fri, 25 Feb 2022 13:40:54 +0000 (13:40 +0000)]
Merge "Add support for populating metadataSet in PAP tosca policy"

2 years agoAdd support for populating metadataSet in PAP tosca policy 44/127244/2
rameshiyer27 [Fri, 18 Feb 2022 17:27:13 +0000 (17:27 +0000)]
Add support for populating metadataSet in PAP tosca policy

MetadataSet fetched from the db and added to the policy metadata map
with the key "metadataSet" before sending to PDPs

Issue-ID: POLICY-3832
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I14064d82ba6877bd7560af7de7572b4813a98385

2 years agoAdding deployment metrics to PAP 22/127222/5
a.sreekumar [Mon, 21 Feb 2022 13:13:20 +0000 (13:13 +0000)]
Adding deployment metrics to PAP

Change-Id: I4b6a93045c1ddfd7fff037e7568b029e2e45b0b3
Issue-ID: POLICY-3757
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMerge "Use classes from policy/common"
Liam Fallon [Fri, 18 Feb 2022 10:52:50 +0000 (10:52 +0000)]
Merge "Use classes from policy/common"

2 years agoUse classes from policy/common 53/127153/2
Ram Krishna Verma [Wed, 16 Feb 2022 17:12:20 +0000 (12:12 -0500)]
Use classes from policy/common

Use YamlHttpMessageConverter from policy/common.
Use CustomImplicitNamingStrategy from policy/common.
Fix few sonar issues.

Issue-ID: POLICY-3931
Change-Id: I4720761cbf8da464ec57541f9b19f8d124503e17
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoFix PAP issue with group config loading 01/127201/1
a.sreekumar [Thu, 17 Feb 2022 15:51:15 +0000 (15:51 +0000)]
Fix PAP issue with group config loading

1) PAP fails to start in OOM when no pdp group configuration file is
   specified with the recent changes. This is fixed.
2) logback.xml file mounted in OOM is not used by PAP. This is also
   fixed in this review.

Change-Id: I84096e1b100e2be20a9a2d95e1eb6ffc79486f29
Issue-ID: POLICY-3754
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoFix issue with GeneratedValue in PfGeneratedIdKey 30/127130/1
a.sreekumar [Tue, 15 Feb 2022 12:45:29 +0000 (12:45 +0000)]
Fix issue with GeneratedValue in PfGeneratedIdKey

Change-Id: If244237e4aa39e1f3184cab04ae7d5ad7e85e5fa
Issue-ID: POLICY-3897
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMerge "Add yaml support to pap api's"
Ajith Sreekumar [Mon, 14 Feb 2022 14:11:41 +0000 (14:11 +0000)]
Merge "Add yaml support to pap api's"

2 years agoImprove PAP healthcheck api to verify DB connectivity 64/127064/4
Prakhar Pandey [Thu, 10 Feb 2022 19:14:13 +0000 (14:14 -0500)]
Improve PAP healthcheck api to verify DB connectivity

This commit improves PAP healthcheck API to enable verification of PAP to DB connectivity.

Issue-ID: POLICY-3763
Signed-off-by: Prakhar Pandey <prakhar.pandey@bell.ca>
Change-Id: I14353572a00e68a89161bcffd2ec3476b4a4c303

2 years agoAdd yaml support to pap api's 66/127066/1
Ram Krishna Verma [Thu, 10 Feb 2022 19:35:12 +0000 (14:35 -0500)]
Add yaml support to pap api's

Adding yaml support to pap rest api's.
Along with related unit tests.

Issue-ID: POLICY-3864
Change-Id: I43bdbbd4151bcae5dcf4752a9385b115efa947d3
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMove PAP database provider to spring boot default 08/127008/10
a.sreekumar [Mon, 7 Feb 2022 16:05:17 +0000 (16:05 +0000)]
Move PAP database provider to spring boot default

This review makes PAP talk to DB directly using the spring repositories
instead of going to policy-models-provider.
The models-provider methods that were just used by PAP (and not used
anymore) will be removed in a different review.
Also a bug identified with the usage of GeneratedValue in
PfGeneratedIdKey (which is just used by PAP in statistics & audit) will
also be fixed in a separate review as part of POLICY-3897.

CSIT changes: https://gerrit.onap.org/r/c/policy/docker/+/127033
WIP OOM review: https://gerrit.onap.org/r/c/oom/+/127035

Change-Id: Idb13ba7eb2767cc718672b582a6518fcfc95320f
Issue-ID: POLICY-3867
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoUse spring boot actuator version 2.5.4 06/127006/1
a.sreekumar [Mon, 7 Feb 2022 11:22:59 +0000 (11:22 +0000)]
Use spring boot actuator version 2.5.4

The actuator version 2.5.0 which is currently used contains
a bug where some jvm metrics are lost. So, upgrading the version
to fix this issue.

Change-Id: Ib1084f3ab879bc035a11e2e1c5c6a5bd55c0c15d
Issue-ID: POLICY-3913
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoCreate spring repository layer for PAP 51/126751/7
a.sreekumar [Tue, 25 Jan 2022 15:19:40 +0000 (15:19 +0000)]
Create spring repository layer for PAP

This review adds the spring repository and service layers to PAP.
Once this is merged, the next work will be to actually use these
spring boot based services to talk to the db directly,
and not using policy-models-provider in PAP.

Change-Id: Ib086b8b405020cb452e51d6359dd1a69d0000f74
Issue-ID: POLICY-3869
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>