Pamela Dragosh [Fri, 17 Feb 2023 15:22:39 +0000 (15:22 +0000)]
Merge "Update Dockerfile for PF base image"
waynedunican [Tue, 10 Jan 2023 11:07:33 +0000 (11:07 +0000)]
Automate S3P tests in Api
- Trigger S3P test execution
Issue-ID: POLICY-4156
Change-Id: If4d6401a6c8e9ee4767f8910956a7026bc971518
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
liamfallon [Tue, 14 Feb 2023 11:24:53 +0000 (11:24 +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: Idde5d41c667644610d1cdb070a6ddf9dbaa44b75
Signed-off-by: liamfallon <liam.fallon@est.tech>
Suresh Charan [Thu, 9 Feb 2023 17:17:13 +0000 (12:17 -0500)]
Fixed sonar issue in policy-api
Fixed cognitive complexity reported by sonar.
Issue-ID: POLICY-4536
Change-Id: Ic3b5b7d79165afed15a1593e03b8374fb2122e12
Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
lapentafd [Mon, 30 Jan 2023 17:36:59 +0000 (17:36 +0000)]
Contract Tests policy-api
Adding Contract tests, verifying the stubbed implementation.
Issue-ID: POLICY-4533
Change-Id: I729d0c2316b185967e0d7c292eb3c8c3da23ac23
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
liamfallon [Tue, 31 Jan 2023 10:41:41 +0000 (10:41 +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: Id003bd0fecbdc7fe96a529cd6178a9a373d33963
Signed-off-by: liamfallon <liam.fallon@est.tech>
lapentafd [Wed, 18 Jan 2023 13:34:27 +0000 (13:34 +0000)]
Adding Server stubs for policy-api
Added server stubs for policy-api with profile "stub",
with very simple implementation, and unit tests
Added context-path in the application.yaml
Issue-ID: POLICY-4143
Change-Id: Ibcf4cf2f6d3e6a87ac7eea365b387d75e19e96c0
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
lapentafd [Tue, 20 Dec 2022 12:03:46 +0000 (12:03 +0000)]
Use generated API interface for Swagger(2)
This commit removes the Swagger V2 annotations on the
ApiRestController in policy-api. 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 no code changes tot he controller except that the order of the
parameters is switched in some cases.
Adds unit test for SpingDoc swagger document generator endpoint.
Issue-ID: POLICY-4404
Change-Id: Ic8976362481a0b49ad05cebb2f4f9ce4147f3965
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
liamfallon [Thu, 15 Dec 2022 16:19:27 +0000 (16:19 +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-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I6e0e8be495ba56a259245c8452813a0a5d1d1a6a
liamfallon [Thu, 15 Dec 2022 15:38:12 +0000 (15:38 +0000)]
Release docker images for policy/api: 2.8.0
This commit releases docker images for repo policy/api.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I10204c945dbeca860f5d7ee294d116d838aa012c
liamfallon [Thu, 15 Dec 2022 14:12:22 +0000 (14:12 +0000)]
Release policy/api: 2.8.0
This commit releases repo policy/api.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I1aed07cbc7eaf48ce445509e5c30df58ff423690
liamfallon [Thu, 15 Dec 2022 12:39:41 +0000 (12:39 +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-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Icf8ccc5d5874eab7a9fbb3b784a5d110a5d2f322
liamfallon [Mon, 12 Dec 2022 16:42:24 +0000 (16:42 +0000)]
Use generated API interface for Swagger
This commit removes the Swagger V2 annotations on the
NodeTemplateController in policy-api. 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 no code changes tot he controller except that the order of the
parameters is switched in some cases.
Issue-ID: POLICY-4404
Change-Id: Iab49c7f3f197a85d3314a879d39fe2c95be041b8
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 8 Dec 2022 18:38:13 +0000 (18:38 +0000)]
Replace SpringFox with SpringDoc in policy-api
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: I5fb62e104c3a77e167a722a83f62dbddf2abedf1
Signed-off-by: liamfallon <liam.fallon@est.tech>
danielhanrahan [Fri, 25 Nov 2022 14:07:30 +0000 (14:07 +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: I8b2c69440032056641f5ba1bf1f9863678dc1dad
liamfallon [Fri, 11 Nov 2022 15:57:47 +0000 (15:57 +0000)]
Add OpenAPI Swagger 3 spc 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: Idf3763fe99fc9dfa5739d9074213fa7d293fbba6
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Fri, 21 Oct 2022 16:45:23 +0000 (17:45 +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-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I02910c3a06fb00167ba366281f5e06663395683f
liamfallon [Fri, 21 Oct 2022 09:50:10 +0000 (10:50 +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-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I3156e55b0bc6557e3ff157b3f07339c1d165d29e
liamfallon [Fri, 21 Oct 2022 09:19:05 +0000 (10:19 +0100)]
Release docker images for policy/api: 2.7.1
This commit releases docker images for repo policy/api.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: If84375933ecc583380fd60df38984dca7590cbc4
liamfallon [Fri, 21 Oct 2022 08:38:12 +0000 (09:38 +0100)]
Release policy/api: 2.7.1
This commit releases repo policy/api.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ife46f4daf3b2860565d91ba4124ea3f5ec7d7874
liamfallon [Fri, 21 Oct 2022 07:06:04 +0000 (08:06 +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-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ica25ba4472653ab47c604ee20cfe99692eadd8fd
liamfallon [Tue, 11 Oct 2022 19:18:25 +0000 (20:18 +0100)]
Use spring-boot-starter-actuator managed version
Issue-ID: POLICY-4393
Change-Id: Iec8b134a9a23edd13048c58b1054e413be05add8
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Mon, 10 Oct 2022 14:50:33 +0000 (15:50 +0100)]
Use current springboot version of actuator
THe springboot actuator was on a different version of springboot than
the rest of springboot due to an upadted dependency. Now that springboot
itself is updated, we should not use a different version for actuator.
Issue-ID: POLICY-4393
Change-Id: I58151e85859ef4f4ba1ad13ca4eee71114e66d3f
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Fri, 23 Sep 2022 09:58:39 +0000 (10:58 +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-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I5309004eb6e4bda552ed9896d61a9a0b92a18ea0
liamfallon [Fri, 23 Sep 2022 08:44:17 +0000 (09:44 +0100)]
Release docker images for policy/api: 2.7.0
This commit releases docker images for repo policy/api.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7dc7387b176c5e85c44e9fd83c6906a3f3915292
liamfallon [Fri, 23 Sep 2022 06:50:05 +0000 (07:50 +0100)]
Release policy/api: 2.7.0
This commit releases repo policy/api.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia1bfd3943805e02846071eb554731bb735031d74
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
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
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
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
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
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
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
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
Liam Fallon [Thu, 2 Jun 2022 08:08:10 +0000 (08:08 +0000)]
Merge "Add Ramesh Murugan Iyer as a committer"
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>
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
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
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>
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
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
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
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
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>
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>
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
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
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
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
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>
Liam Fallon [Wed, 23 Mar 2022 09:50:46 +0000 (09:50 +0000)]
Merge "Fix spring transaction issue in getNodetemplates"
Ajith Sreekumar [Tue, 22 Mar 2022 16:40:27 +0000 (16:40 +0000)]
Merge "API healthcheck must return healthcheck report object"
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
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
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
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
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
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>
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>
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
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
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
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
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>
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
Liam Fallon [Tue, 22 Feb 2022 17:35:16 +0000 (17:35 +0000)]
Merge "Add REST Apis for Tosca Node template operations"
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
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>
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
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>
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
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>
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jim Hahn [Tue, 20 Jul 2021 15:42:44 +0000 (15:42 +0000)]
Merge "Use docker registry properties in policy-api"
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>
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>