policy/api.git
19 months agoRelease policy/api 2.7.0
jenkins-releng [Fri, 23 Sep 2022 06:25:59 +0000 (06:25 +0000)]
Release policy/api

19 months agoupdate references in policy/api pom 15/131115/1
liamfallon [Thu, 22 Sep 2022 22:22:07 +0000 (23:22 +0100)]
update references in policy/api pom

updated references in the policy/api pom

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

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

19 months agoRemove inactive committers from INFO.yaml 26/130826/1
liamfallon [Fri, 9 Sep 2022 09:22:55 +0000 (10:22 +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: Ia4b352eef8f5eece99f6cdc1bbec9226e5b701ff

19 months agoAllow setting external dockerfile for policy-api 17/130517/1
danielhanrahan [Tue, 30 Aug 2022 06:31:13 +0000 (07:31 +0100)]
Allow setting external dockerfile for policy-api

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: Iebfa6f3bcfeccf70675231acd4b6d7f629f56223

20 months agoPreloading onap.policies.monitoring.tcagen2 2.0.0 43/130343/1
jhh [Thu, 18 Aug 2022 00:02:20 +0000 (19:02 -0500)]
Preloading onap.policies.monitoring.tcagen2 2.0.0

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

20 months agoUpdate docker base image to snapshot 74/130074/1
liamfallon [Fri, 29 Jul 2022 14:27:16 +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: Ie1831cad682864c35cf0f7c08308a1f8e78ec656

21 months agoReduce size of docker images for API 33/129733/3
danielhanrahan [Wed, 29 Jun 2022 12:51:39 +0000 (13:51 +0100)]
Reduce size of docker images for API

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% (956MB to 259MB)
Reduce size of OpenSuse image by 62% (1.12GB to 423MB)

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

21 months agoUpgrade OpenSuse version to 15.4 for api 69/129869/1
danielhanrahan [Mon, 11 Jul 2022 14:24:32 +0000 (15:24 +0100)]
Upgrade OpenSuse version to 15.4 for api

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

21 months agoOCI image spec labels for API 97/129697/2
danielhanrahan [Mon, 27 Jun 2022 15:23:29 +0000 (16:23 +0100)]
OCI image spec labels for API

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

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

22 months agoAdd Ramesh Murugan Iyer as a committer 42/129442/2
liamfallon [Wed, 1 Jun 2022 12:03:55 +0000 (13:03 +0100)]
Add Ramesh Murugan Iyer as a committer

Issue-ID: POLICY-4228
Change-Id: I83f18201133693765d56183d280edc0db3f79672
Signed-off-by: liamfallon <liam.fallon@est.tech>
23 months agoFix build issue in policy-api OpenSuse dockerfile 14/129314/1
danielhanrahan [Thu, 19 May 2022 09:33:57 +0000 (10:33 +0100)]
Fix build issue in policy-api OpenSuse dockerfile

Prevent dockerfile from swallowing errors during build

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

23 months agoOpenSuse docker file for policy API 00/129300/3
danielhanrahan [Tue, 17 May 2022 14:37:02 +0000 (15:37 +0100)]
OpenSuse docker file for policy API

Create OpenSuse docker file
Add build profile for OpenSuse docker image

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

23 months agoSet snapshot and/or references of policy/api for new release 49/129049/1
liamfallon [Tue, 3 May 2022 16:21:48 +0000 (17:21 +0100)]
Set snapshot and/or references of policy/api for new release

policy/api 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: I92164d86463228070bbc96eefb66ebea72617b77
Signed-off-by: liamfallon <liam.fallon@est.tech>
23 months agoUpdate snapshot and/or references of policy/api to latest snapshots 71/128971/1
liamfallon [Thu, 28 Apr 2022 15:00:25 +0000 (16:00 +0100)]
Update snapshot and/or references of policy/api to latest snapshots

policy/api 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: Ia04701c92ff14ba783ae59884192ee35fc2309cd

23 months agoRelease docker images for policy/api: 2.6.3 62/128962/1
liamfallon [Thu, 28 Apr 2022 14:32:46 +0000 (15:32 +0100)]
Release docker images for policy/api: 2.6.3

This commit releases docker images for repo policy/api.

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

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

23 months agoRelease policy/api: 2.6.3 52/128952/1
liamfallon [Thu, 28 Apr 2022 13:40:44 +0000 (14:40 +0100)]
Release policy/api: 2.6.3

This commit releases repo policy/api.

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

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

2 years agoupdate references in policy/api pom 15/128915/1
liamfallon [Wed, 27 Apr 2022 19:55:36 +0000 (20:55 +0100)]
update references in policy/api pom

updated references in the policy/api pom

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

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

2 years agoRemove warnings in policy-api code 77/128777/2
liamfallon [Thu, 21 Apr 2022 16:11:43 +0000 (17:11 +0100)]
Remove warnings in policy-api code

Dependency versions are handled from managed dependencies in
policy/parent

Issue-ID: POLICY-4070
Change-Id: If4d86742e769b879d59bc839e44d63a355d20602
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUpdate policy-api stability and performance jmx files 91/128591/3
Prakhar Pandey [Thu, 14 Apr 2022 05:53:11 +0000 (01:53 -0400)]
Update policy-api stability and performance jmx files

Policy-API S3P test files are being updated according to Jakarta release

Issue-ID: POLICY-4007
Change-Id: Ic07020b387d94b85fe7f02ff5401daa5f90a90dc
Signed-off-by: Prakhar Pandey <prakhar.pandey@bell.ca>
2 years agoUpdate snapshot and/or references of policy/api to latest snapshots 27/128527/1
liamfallon [Tue, 12 Apr 2022 20:34:47 +0000 (21:34 +0100)]
Update snapshot and/or references of policy/api to latest snapshots

policy/api 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: I4f7a7b041d7f681a0975f673725abfad249d5671

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

This commit releases docker images for repo policy/api.

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

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

2 years agoRelease policy/api: 2.6.2 14/128514/1
liamfallon [Tue, 12 Apr 2022 18:23:21 +0000 (19:23 +0100)]
Release policy/api: 2.6.2

This commit releases repo policy/api.

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

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

2 years agoupdate references in policy/api pom 06/128506/1
liamfallon [Tue, 12 Apr 2022 17:41:42 +0000 (18:41 +0100)]
update references in policy/api pom

updated references in the policy/api pom

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

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

2 years agoPolicy-API Jakarta postman collection changes 64/128364/5
a.sreekumar [Thu, 7 Apr 2022 11:17:36 +0000 (12:17 +0100)]
Policy-API Jakarta postman collection changes

Change-Id: I51ae38d3c705a1fa503e9ca8788638aca49ff556
Issue-ID: POLICY-3993
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMerge "Fix spring transaction issue in getNodetemplates"
Liam Fallon [Wed, 23 Mar 2022 09:50:46 +0000 (09:50 +0000)]
Merge "Fix spring transaction issue in getNodetemplates"

2 years agoMerge "API healthcheck must return healthcheck report object"
Ajith Sreekumar [Tue, 22 Mar 2022 16:40:27 +0000 (16:40 +0000)]
Merge "API healthcheck must return healthcheck report object"

2 years agoFix spring transaction issue in getNodetemplates 33/127933/2
rameshiyer27 [Mon, 21 Mar 2022 00:00:03 +0000 (00:00 +0000)]
Fix spring transaction issue in getNodetemplates

changes on the db service template object gets auto updated to the db
by spring transaction. Creating new object copy to avoid the same.

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

2 years agoAPI healthcheck must return healthcheck report object 43/127943/1
Rashmi Pujar [Tue, 22 Mar 2022 02:17:14 +0000 (22:17 -0400)]
API healthcheck must return healthcheck report object

Retain previous behavior of returning the healthcheck
report object for the healthcheck API upon DB failures.
This is also needed for the enhanced readiness probe on
policy components which uses the healthcheck endpoint.

Issue-ID: POLICY-4030
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: Ifdbb23c8302567b4aa0f686bf9e77cdac37d1a62

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

policy/api 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: I849fcec0757eab4425cf92f19c609d50f38986d3

2 years agoRelease docker images for policy/api: 2.6.1 98/127698/1
liamfallon [Fri, 11 Mar 2022 14:07:30 +0000 (14:07 +0000)]
Release docker images for policy/api: 2.6.1

This commit releases docker images for repo policy/api.

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

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

2 years agoRelease policy/api: 2.6.1 88/127688/1
liamfallon [Fri, 11 Mar 2022 12:07:48 +0000 (12:07 +0000)]
Release policy/api: 2.6.1

This commit releases repo policy/api.

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

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

2 years agoupdate references in policy/api pom 15/127615/2
liamfallon [Thu, 10 Mar 2022 09:12:41 +0000 (09:12 +0000)]
update references in policy/api pom

updated references in the policy/api pom

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

Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Idc17a71a7ab98cd035a93efb76d7963bbc2e5aa9
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoFix logback file not used by policy-api 98/127498/1
a.sreekumar [Fri, 4 Mar 2022 11:24:33 +0000 (11:24 +0000)]
Fix logback file not used by policy-api

Change-Id: I9d67b5527694d121bf35cf0d0092fe112dd08d80
Issue-ID: POLICY-3983
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoHandle exceptions around DB transcations, data integrity 59/127459/2
Rashmi Pujar [Thu, 3 Mar 2022 03:12:02 +0000 (22:12 -0500)]
Handle exceptions around DB transcations, data integrity

Issue-ID: POLICY-3976
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I9cdfff788d901824904bc74fdb7e2d482d28d562

2 years agoAdd spring repository and service layer for tosca node templates 82/127382/5
rameshiyer27 [Mon, 28 Feb 2022 16:55:31 +0000 (16:55 +0000)]
Add spring repository and service layer for tosca node templates

Removed policy, policyType providers along with models provider
configurations.

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

2 years agocleaner way to handle swagger serialization issue 71/127371/1
Rashmi Pujar [Mon, 28 Feb 2022 16:45:57 +0000 (11:45 -0500)]
cleaner way to handle swagger serialization issue

Instaed of altering the springboot default http
message converters, simply inject a GSON bean with
a custom type adapter with springfox Json serializer.

Issue-ID: POLICY-3753
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I0eb3b7cba538e7fd569f1cba9d540a7108db93e9

2 years agoMigrate API DB provider to springboot data jpa 57/127257/4
Rashmi Pujar [Wed, 23 Feb 2022 16:27:07 +0000 (11:27 -0500)]
Migrate API DB provider to springboot data jpa

PolicyProviders and PolicyTypeProvider will be removed
once the NodeTemplateController migration is complete.

Issue-ID: POLICY-3924
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I01a7491c9a09d78a79a4c887f5a49024af648b8b

2 years agoAdding spring data properties to apiParameters 72/127272/1
a.sreekumar [Thu, 24 Feb 2022 11:02:38 +0000 (11:02 +0000)]
Adding spring data properties to apiParameters

Change-Id: Iaada7de714210354f377d32549a1566d3b8cf615
Issue-ID: POLICY-3923
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoSpring repository and service layer for policy-api 32/127232/4
Rashmi Pujar [Tue, 22 Feb 2022 06:39:00 +0000 (01:39 -0500)]
Spring repository and service layer for policy-api

- Add the spring repository and service layers to policy-api.
- Unit tests are modified to use the spring service layers

Next-up: Migrate the usage of policy-models-provider in policy-api
to spring boot based services to talk to database (POLICY-3924)

Issue-ID: POLICY-3923
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: Ib6840040b32f24f019da802d3b246dab1bfccbe3

2 years agoMerge "Add REST Apis for Tosca Node template operations"
Liam Fallon [Tue, 22 Feb 2022 17:35:16 +0000 (17:35 +0000)]
Merge "Add REST Apis for Tosca Node template operations"

2 years agoAdd REST Apis for Tosca Node template operations 10/127210/2
rameshiyer27 [Thu, 17 Feb 2022 17:14:15 +0000 (17:14 +0000)]
Add REST Apis for Tosca Node template operations

Statistics handling for the new Apis are not added
as it is going to be handled via spring actuators as part of spring
migration.Please suggest if manual stats handling is required.

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

2 years agoUse classes from policy/common 52/127152/1
Ram Krishna Verma [Wed, 16 Feb 2022 17:04:23 +0000 (12:04 -0500)]
Use classes from policy/common

Use YamlHttpMessageConverter provided by policy/common.
Fix few sonar issues.

Issue-ID: POLICY-3931
Change-Id: I3c093df059f4ff70e3f99669c2bdea7d84cefcc6
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMigrate policy api startup & config, controller to springboot 75/126975/7
Rashmi Pujar [Sat, 5 Feb 2022 02:49:30 +0000 (21:49 -0500)]
Migrate policy api startup & config, controller to springboot

Issue-ID: POLICY-3753
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I4537ed49b7fc57683bfc487f0d212642b7e69f17

2 years agoRemove references to MariaDB from resource files 29/126629/2
waynedunican [Tue, 4 Jan 2022 21:49:42 +0000 (21:49 +0000)]
Remove references to MariaDB from resource files

Issue-ID: POLICY-2086
Change-Id: I3c7d95863e1f46f5d0217bad6bd486de95e16b3a
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoUpdate snapshot and/or references of policy/api to latest snapshots 30/126030/1
liamfallon [Thu, 2 Dec 2021 15:53:54 +0000 (15:53 +0000)]
Update snapshot and/or references of policy/api to latest snapshots

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

policy/api updated to its latest own and reference snapshots

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

2 years agoUpdate snapshot of policy/api to 2.6.1-SNAPSHOT 57/125957/1
liamfallon [Mon, 29 Nov 2021 11:30:48 +0000 (11:30 +0000)]
Update snapshot of policy/api to 2.6.1-SNAPSHOT

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

policy/api is update from 2.6.0-SNAPSHOT to 2.6.1-SNAPSHOT

Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I97fed624445ab4469af4fb700ec256639f529e62
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease docker images for policy/api: 2.6.0 34/125934/1
liamfallon [Fri, 26 Nov 2021 12:07:28 +0000 (12:07 +0000)]
Release docker images for policy/api: 2.6.0

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

This commit releases the docker images for repo policy/api.

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

2 years agoRelease policy/api: 2.6.0 25/125925/1
liamfallon [Fri, 26 Nov 2021 10:41:30 +0000 (10:41 +0000)]
Release policy/api: 2.6.0

*** Release Phase 8: This commit is generated by a PF release script ***

This is the eigth phase in releasing images, it releases policy/api.

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

2 years agoUpdate parent and common references 09/125909/2
liamfallon [Thu, 25 Nov 2021 11:41:00 +0000 (11:41 +0000)]
Update parent and common references

*** Release Phase 7: This commit is generated by a PF release script ***

This is the seventh release phase, it updates parent, common and models
references in policy/api.

Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I91ed4f245909d7d98b38b918a9835b4d3711df10
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRename username for API operations. 04/125504/2
adheli.tavares [Mon, 1 Nov 2021 10:33:40 +0000 (10:33 +0000)]
Rename username for API operations.

Use an account other than healthcheck in API for provisioning of policies.

Issue-ID: POLICY-2744
Change-Id: If41467531152a73ecda2756886914ba0a4c6d9b4
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoPoint to snapshot dependency 39/125339/1
Ram Krishna Verma [Mon, 25 Oct 2021 22:06:57 +0000 (18:06 -0400)]
Point to snapshot dependency

Issue-ID: POLICY-3788
Change-Id: Id2761acedb386b64f3014d9b98f2f7b20fedd649
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoUpdate api performance test jmx file 38/125138/1
Ram Krishna Verma [Tue, 19 Oct 2021 20:40:11 +0000 (16:40 -0400)]
Update api performance test jmx file

Issue-ID: POLICY-3652
Change-Id: If16c23460cc94738597d54de94e699fcffbc65e2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoPolicy-API S3P jmx changes for Istanbul 66/125066/1
a.sreekumar [Mon, 18 Oct 2021 09:08:03 +0000 (10:08 +0100)]
Policy-API S3P jmx changes for Istanbul

Pushing this review on behalf of prakhar.pandey@bell.ca

Change-Id: Iede1ecbbcec4d0d16636d69e770fed094257315a
Issue-ID: POLICY-3652
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoBump policy/api to jakarta 2.6.0-SNAPSHOT 69/124969/1
a.sreekumar [Thu, 14 Oct 2021 11:02:12 +0000 (12:02 +0100)]
Bump policy/api to jakarta 2.6.0-SNAPSHOT

Change-Id: I94e617c835a2413350ca6c77f4ee19a35001946b
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoBump policy/api to 2.5.2-SNAPSHOT 66/124966/1
a.sreekumar [Thu, 14 Oct 2021 10:26:20 +0000 (11:26 +0100)]
Bump policy/api to 2.5.2-SNAPSHOT

Change-Id: Ib1a2acd59f444b618ff20d293962aa1d5a6d5118
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoRelease policy-api 2.5.1 docker artifacts 57/124957/1
a.sreekumar [Thu, 14 Oct 2021 09:53:59 +0000 (10:53 +0100)]
Release policy-api 2.5.1 docker artifacts

Change-Id: Iee91c793628a1c7fa419a10bdb561ed28a67b5cd
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoRelease policy-api 2.5.1 maven artifacts 52/124952/1
a.sreekumar [Thu, 14 Oct 2021 09:34:28 +0000 (10:34 +0100)]
Release policy-api 2.5.1 maven artifacts

Change-Id: Ieb880f3840ccbf44b0a4c99a8c1f8d2db5329e9b
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoUpdate parent/common/models/docker references 96/124896/1
liamfallon [Wed, 13 Oct 2021 14:26:44 +0000 (15:26 +0100)]
Update parent/common/models/docker references

Issue-ID: POLICY-3696
Change-Id: If496413f8ab038c81ba18731d2341860f564d592
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoBump api to 2.5.1-SNAPSHOT 07/124207/1
Ram Krishna Verma [Tue, 14 Sep 2021 21:35:42 +0000 (17:35 -0400)]
Bump api to 2.5.1-SNAPSHOT

Issue-ID: POLICY-3587
Change-Id: Id1a7936fe6ac1769fb5c005a7a3c1a858dcf7104
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoRelease api 2.5.0 docker image 03/124203/1
Ram Krishna Verma [Tue, 14 Sep 2021 20:32:48 +0000 (16:32 -0400)]
Release api 2.5.0 docker image

Issue-ID: POLICY-3587
Change-Id: I14337c9d51c8865b42b9c7c417e770b0f5b0257b
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoRelease api 2.5.0 maven artifacts 91/124191/1
Ram Krishna Verma [Tue, 14 Sep 2021 18:38:39 +0000 (14:38 -0400)]
Release api 2.5.0 maven artifacts

Issue-ID: POLICY-3587
Change-Id: Ic45ecb63c598165742ad4a629e68cab33d6b92c8
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoUse released common and models 82/124082/1
liamfallon [Mon, 13 Sep 2021 15:40:36 +0000 (16:40 +0100)]
Use released common and models

Issue-ID: POLICY-3587
Change-Id: I61d9e96e3689b40244997a7f3c5db0c3c36968a8
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUpdate INFO.yaml 51/123951/3
liamfallon [Wed, 8 Sep 2021 11:27:58 +0000 (12:27 +0100)]
Update INFO.yaml

Update the INFO.yaml file with latest information.

Issue-ID: POLICY-3552
Change-Id: Ib003f8f9e176e79bc453e85fc9215701ff74bc08
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoPoint at released policy-parent 90/123990/2
liamfallon [Thu, 9 Sep 2021 12:30:49 +0000 (13:30 +0100)]
Point at released policy-parent

Issue-ID: POLICY-3587
Change-Id: I779dcf7a025824988148d7165208f739fcd17eaf
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoDecrease eclipselink verbosity to warning 03/123903/1
jhh [Tue, 7 Sep 2021 00:20:59 +0000 (19:20 -0500)]
Decrease eclipselink verbosity to warning

Issue-ID: POLICY-3611
Change-Id: Iadb64d651a2d75f1a2912e56af55ab70d912f8d0
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2 years agoUse policy/docker image 2.3.0 15/123615/1
Jim Hahn [Thu, 26 Aug 2021 17:32:08 +0000 (13:32 -0400)]
Use policy/docker image 2.3.0

Issue-ID: POLICY-3587
Change-Id: Id8ac81784bd0deb83654d391205e8c83d68e0d6f
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoEnable prometheus by default in policy-api 55/123455/1
a.sreekumar [Mon, 23 Aug 2021 14:18:39 +0000 (15:18 +0100)]
Enable prometheus by default in policy-api

Change-Id: I67368e3002601bab5dfbf3813af63ea90ac1a1f8
Issue-ID: POLICY-3538
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoAdd check to verify api to db connectivity 93/123393/3
Ram Krishna Verma [Thu, 19 Aug 2021 15:00:52 +0000 (11:00 -0400)]
Add check to verify api to db connectivity

Adding a method in policy/api HealthCheckProvider
to verify database connectivity.

The same can then be reported in policy consolidated heath check
done by PAP as well.

Issue-ID: POLICY-2896
Change-Id: Id80ade57829b37ace15ae19caeefd08af61aebd5
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoUpdate Policy Components not to create tables 33/123333/1
ktimoney [Tue, 17 Aug 2021 14:55:10 +0000 (15:55 +0100)]
Update Policy Components not to create tables

Issue-ID: POLICY-3488
Change-Id: I704e8b10db6fb8b5c3df13f255fc2076df03f1a2
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agouse url resource for docker-tag -- api 98/123198/1
Taka Cho [Mon, 9 Aug 2021 18:35:06 +0000 (14:35 -0400)]
use url resource for docker-tag -- api

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

Issue-ID: POLICY-3378
Change-Id: Ic16e0ba2edebb179f20366247aa848a1ea06d355
Signed-off-by: Taka Cho <takamune.cho@att.com>
2 years agoUse singleton for api statistics 99/122799/2
Jim Hahn [Fri, 16 Jul 2021 19:34:32 +0000 (15:34 -0400)]
Use singleton for api statistics

Reimplemented the statistics manager to use a singleton instead of
static fields.
Also changed some fields to "private".

Issue-ID: POLICY-3392
Change-Id: Ic708f7fa29cba795c47d387764267016163f679f
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoMerge "Use docker registry properties in policy-api"
Jim Hahn [Tue, 20 Jul 2021 15:42:44 +0000 (15:42 +0000)]
Merge "Use docker registry properties in policy-api"

2 years agoUse docker registry properties in policy-api 48/122748/1
Jim Hahn [Mon, 19 Jul 2021 18:51:21 +0000 (14:51 -0400)]
Use docker registry properties in policy-api

Issue-ID: POLICY-3374
Change-Id: Icd91864ec2959f7be024a575a72f262da4db8357
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse lombok annotations in policy-api 19/122719/1
a.sreekumar [Mon, 19 Jul 2021 16:09:02 +0000 (17:09 +0100)]
Use lombok annotations in policy-api

Change-Id: I858b3bff44804f3bf0c04bd637fafa0c01af2e57
Issue-ID: POLICY-3392
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoUpdate Pam's email INFO.yaml 04/122604/1
Dragosh, Pamela (pd1248) [Tue, 13 Jul 2021 14:32:53 +0000 (10:32 -0400)]
Update Pam's email INFO.yaml

Issue-ID: POLICY-3484
Change-Id: I8a17494c7d5bd516352526efe5c83b4b31e1e643
Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2 years agoFix new checkstyle issues in policy-api 50/122050/1
Jim Hahn [Fri, 18 Jun 2021 17:48:23 +0000 (13:48 -0400)]
Fix new checkstyle issues in policy-api

The new version of checkstyle identified new issues.  Fixed those.

Issue-ID: POLICY-3285
Change-Id: I47c7fe172d40ff5cd4b6309eeb1ed6ac5222240d
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRemove csit folder from policy/api 44/121344/1
Ram Krishna Verma [Thu, 13 May 2021 19:25:19 +0000 (15:25 -0400)]
Remove csit folder from policy/api

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: I04853aeddf9a3e4d28c82222de29ffd536fa6b8b
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMerge "Refactor policy/api csit tests"
Jim Hahn [Fri, 7 May 2021 13:06:57 +0000 (13:06 +0000)]
Merge "Refactor policy/api csit tests"

2 years agoRefactor policy/api csit tests 49/121149/1
Ram Krishna Verma [Thu, 6 May 2021 22:17:43 +0000 (18:17 -0400)]
Refactor policy/api csit tests

* Removed the deprecated methods.
* Removed duplicated code.
* Created method hierarchy to improve the readability.
* Updated the assertions on various tests.

Issue-ID: POLICY-3257
Change-Id: Id68bf50b397f9aff594268b3ce508858a726328d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoFix sonars in policy-api 33/121133/1
Jim Hahn [Thu, 6 May 2021 13:52:08 +0000 (09:52 -0400)]
Fix sonars in policy-api

Fixed sonars:
- use "var" instead of actual type name

Issue-ID: POLICY-3285
Change-Id: I349e57f7abe84138f5aa3478e22652a593b59845
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRemove GroupValidationResult 80/120980/2
Jim Hahn [Tue, 27 Apr 2021 13:52:51 +0000 (09:52 -0400)]
Remove GroupValidationResult

Removed GroupValidationResult, replacing it with BeanValidationResult.
Modified the ParameterGroup subclasses to use BeanValidator, adding
annotations where needed to trigger the validations that had been
automatically performed by GroupValidationResult.

Issue-ID: POLICY-2059
Change-Id: I774950e98c9421064bacf735e0f5a5ab18540570
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRefactor ApiCommandLineArguments class 55/120555/2
adheli.tavares [Tue, 13 Apr 2021 15:38:04 +0000 (16:38 +0100)]
Refactor ApiCommandLineArguments class

CMD Class to use CMD Handler from Common.

Issue-ID: POLICY-3129
Change-Id: I7a1b960b1e3ecc6df0f7dde6b3301d640f4feb11
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
3 years agoUse sh instead of ash in API 37/120237/3
Jim Hahn [Tue, 6 Apr 2021 19:36:50 +0000 (15:36 -0400)]
Use sh instead of ash in API

Issue-ID: POLICY-3160
Change-Id: Ie4ad5f99e12d2e7321b9ce4664b380e030db48dc
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdate jmx stability script for Policy-API 83/119983/1
lapentafd [Mon, 29 Mar 2021 10:40:16 +0000 (11:40 +0100)]
Update jmx stability script for Policy-API

Issue-ID: POLICY-3144
Change-Id: I1f275e65ff3b8624d0aa322e039a8dec853daecb
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoDelete keystores from policy-api 50/119550/1
Jim Hahn [Fri, 19 Mar 2021 15:38:39 +0000 (11:38 -0400)]
Delete keystores from policy-api

The Keystore is no longer needed in the tarball, as it is supplied
externally by the CSITs and Helm charts.  Deleted that file.
Also modified the junits to use utils-test to generates keystores at
runtime, thus deleted the junit keystore file, too.

Issue-ID: POLICY-3143
Change-Id: Ib3e2001f2dc41a528d1be2e81091a278cc31dff8
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdate policy-keystore with newer certificates 83/119383/1
jhh [Tue, 16 Mar 2021 15:31:30 +0000 (10:31 -0500)]
Update policy-keystore with newer certificates

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

3 years ago Address plugin-not-found issues 62/119262/1
Jim Hahn [Fri, 12 Mar 2021 16:48:16 +0000 (11:48 -0500)]
 Address plugin-not-found issues

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

Issue-ID: POLICY-3126
Change-Id: I80ff9b98fb1c63d17fd371b3a762f674ed7ed653
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoBump api to 2.5.0-SNAPSHOT 88/119188/1
pd1248 [Thu, 11 Mar 2021 20:25:31 +0000 (15:25 -0500)]
Bump api to 2.5.0-SNAPSHOT

Issue-ID: POLICY-3105
Change-Id: Ia2016f32738100e8c795b3045d5739a4985a97a1
Signed-off-by: pd1248 <pdragosh@research.att.com>
3 years agoBump api to 2.4.2-SNAPSHOT 03/119103/1
Ram Krishna Verma [Wed, 10 Mar 2021 19:21:06 +0000 (14:21 -0500)]
Bump api to 2.4.2-SNAPSHOT

Issue-ID: POLICY-3127
Change-Id: I2abb531ed01043777888cbb4c7412f3ddf18397d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoRelease api 2.4.1 docker image 97/119097/1
Ram Krishna Verma [Wed, 10 Mar 2021 18:04:45 +0000 (13:04 -0500)]
Release api 2.4.1 docker image

Issue-ID: POLICY-3127
Change-Id: I652a65a565358a04e55268990f23844776881e29
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoRelease api 2.4.1 maven artifacts 90/119090/1
Ram Krishna Verma [Wed, 10 Mar 2021 16:31:44 +0000 (11:31 -0500)]
Release api 2.4.1 maven artifacts

Issue-ID: POLICY-3127
Change-Id: I9dd8119c02c96406c0918258206f78ffe2127bd6
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoPoint to 2.4.1 models 94/118994/2
Ram Krishna Verma [Tue, 9 Mar 2021 21:28:00 +0000 (16:28 -0500)]
Point to 2.4.1 models

Issue-ID: POLICY-3127
Change-Id: Ib0cad9bba202428374281b29e1768975fcb09374
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoUpdate info.yaml in api 94/118394/1
Ram Krishna Verma [Wed, 24 Feb 2021 15:35:45 +0000 (10:35 -0500)]
Update info.yaml in api

Issue-ID: POLICY-3028
Change-Id: Ib87349119d04e1fb47a247cfe1b8cc2c4ecb6bc9
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoBump api to 2.4.1-SNAPSHOT 75/118375/1
Pamela Dragosh [Wed, 24 Feb 2021 12:16:07 +0000 (07:16 -0500)]
Bump api to 2.4.1-SNAPSHOT

Issue-ID: POLICY-3088
Change-Id: I8be2082cbae2c462807baeba2cb33e64d819e4be
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease api docker 2.4.0 image 07/118307/2
Pamela Dragosh [Tue, 23 Feb 2021 17:45:25 +0000 (12:45 -0500)]
Release api docker 2.4.0 image

Issue-ID: POLICY-3088
Change-Id: I98c6d58d500373fa6698454a08fcb358d09534e5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease 2.4.0 api java artifacts 88/118288/1
Pamela Dragosh [Tue, 23 Feb 2021 16:34:08 +0000 (11:34 -0500)]
Release 2.4.0 api java artifacts

Issue-ID: POLICY-3088
Change-Id: Iab9a9f08e3ffa0215b069dd0151646db93ea0a39
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPoint to released artifacts 75/118275/1
Pamela Dragosh [Tue, 23 Feb 2021 16:00:15 +0000 (11:00 -0500)]
Point to released artifacts

policy-common 1.8.0
policy-models 2.4.0
policy-parent 3.3.0

docker image 2.2.1

Issue-ID: POLICY-3088
Change-Id: Id68459351878c5e3221c5b9044f3ccb40016e6f7
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoMake filters on TOSCA entities generic 74/117574/1
liamfallon [Sun, 7 Feb 2021 15:20:23 +0000 (15:20 +0000)]
Make filters on TOSCA entities generic

The classes PolicyTypeFilter and PolicyFilter only work on Policy types
and policies. However they just filter on name/version/type/typeversion
so there is no reason that the filters could not be applied to other
entities.

This commit adapts the PolicyTypeFilter to EntityFilter and PolicyFilter
to TypedEntityFilter, so the filters can be applied to collections of
any ToscaEntity class.

Issue-ID: POLICY-2995
Change-Id: Ibf12c757758d31ec3075119c56243e0abcf259bf
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoadd JpaPdpPolicyStatus to persistence.xml 20/117120/1
jhh [Mon, 25 Jan 2021 21:09:31 +0000 (15:09 -0600)]
add JpaPdpPolicyStatus to persistence.xml

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