aboutsummaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
12 daysSet snapshot and/or references of policy/api for new releasesaul.gill1-1/+1
policy/api updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4999 Change-Id: Ica7317c77fda12bcf9a83dfc201db0f1b1853e47 Signed-off-by: saul.gill <saul.gill@est.tech>
2024-05-17Update snapshot and/or references of policy/api to latest snapshotswaynedunican1-1/+1
policy/api updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-5001 Change-Id: I9ddb6b6a33c6cc1894548e6b2e6dee5d8748e7fb Signed-off-by: waynedunican <wayne.dunican@est.tech>
2024-04-26Update snapshot and/or references of policy/api to latest snapshotssaul.gill1-1/+1
policy/api updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4970 Change-Id: I992030e6990aa9f73bfd413c0402833bf5560c4c Signed-off-by: saul.gill <saul.gill@est.tech>
2024-04-10Dependency management updateadheli.tavares1-1/+25
- including dependencies to pom.xml files only where they are used, avoiding extra dependencies being added in all packages. Issue-ID: POLICY-4945 Change-Id: I181d03f45ccedff8658903150b160feaf692ee10 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-02-20Fix config files to remove outdated hibernate configurationadheli.tavares4-8/+2
Issue-ID: POLICY-4929 Change-Id: I218b6f0bc095d2693f8fa278a255dac0ad145588 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-02-19Update snapshot and/or references of policy/api to latest snapshotswaynedunican1-1/+1
policy/api updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4932 Change-Id: I26c467f814815f72d9f749f365f28e931be617f9 Signed-off-by: waynedunican <wayne.dunican@est.tech>
2023-12-11Update snapshot and/or references of policy/api to latest snapshotssaul.gill1-1/+1
policy/api updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4907 Signed-off-by: saul.gill <saul.gill@est.tech> Change-Id: I98dc67f682eae288f5f461f191d8a9ddfdcd1eb1
2023-11-27Allow semantic versioning in all templates in apiFrancescoFioraEst3-0/+278
Issue-ID: POLICY-4888 Change-Id: I824618039f49581cf82ea2ca570960b41cead6bd Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-11-14Set snapshot and/or references of policy/api for new releaseliamfallon1-1/+1
policy/api 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: Ib5c0564e591f515bdf0f469102b6ddfd675a2bbe
2023-11-13Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
policy/api 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: Idb818220a15d81ef9fd395e7b697c7a6f86ab72a
2023-11-10Fix synchronization issues in policy-apiFrancescoFioraEst3-0/+57
Issue-ID: POLICY-4864 Change-Id: Ieed49019bee3dbd9e5c81dde341d18e6f4bac784 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-10-18Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
policy/api 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: I97f9ae3d9c1116661899229e2c520f062fbe48ef
2023-10-11Removing AAF references from policy-apiadheli.tavares5-116/+2
Issue-ID: POLICY-4592 Change-Id: Ic8fbcb7ac58539fd91d7b077eedcb32b5c4e4a49 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-09-22Java 17 / Spring 6 / Spring Boot 3 Upgradeadheli.tavares38-515/+494
Issue-ID: POLICY-4670 Change-Id: Ie25d0501e5b936621e41f0d3c637320784d56627 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-08-08Removed db-based statistics featureSuresh Charan15-856/+12
Statistics code cleanup Issue-ID: POLICY-4109 Change-Id: I5ad893deaf365c7e289b57c00260672f127d2630 Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
2023-05-25Set snapshot and/or references of policy/api for new releaseliamfallon1-1/+1
policy/api 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: I62ae7a024f3b3b5ab52b78b797d1571c4761d5ec
2023-04-25Update snapshot and/or references of policy/api to latest snapshotsSuresh Charan1-1/+1
policy/api 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: Ifa1f54e6636729966538e61979a6f5008bb7926f
2023-03-01Update snapshot and/or references of policy/api to latest snapshotssaul.gill1-1/+1
policy/api 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: Id95ea702a90ae07dfd256d9b1aa37da0431efd47
2023-02-17Clean up dependencies for London Releaseliamfallon1-8/+6
Issue-ID: POLICY-4482 Change-Id: Ib61e0f3349d2741d990311fe661957500f8b7343 Signed-off-by: liamfallon <liam.fallon@est.tech>
2023-02-09Fixed sonar issue in policy-apiSuresh Charan1-9/+14
Fixed cognitive complexity reported by sonar. Issue-ID: POLICY-4536 Change-Id: Ic3b5b7d79165afed15a1593e03b8374fb2122e12 Signed-off-by: Suresh Charan <suresh.charan@bell.ca>
2023-02-01Contract Tests policy-apilapentafd2-92/+143
Adding Contract tests, verifying the stubbed implementation. Issue-ID: POLICY-4533 Change-Id: I729d0c2316b185967e0d7c292eb3c8c3da23ac23 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2023-01-31Upgrade and clean up dependenciesliamfallon4-14/+28
- 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>
2023-01-18Adding Server stubs for policy-apilapentafd13-21/+460
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>
2022-12-21Use generated API interface for Swagger(2)lapentafd5-665/+145
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>
2022-12-15Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
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
2022-12-12Use generated API interface for Swaggerliamfallon3-227/+39
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>
2022-12-08Replace SpringFox with SpringDoc in policy-apiliamfallon3-49/+23
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>
2022-11-11Add OpenAPI Swagger 3 spc and API generationliamfallon2-0/+3413
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>
2022-10-21Set snapshot and/or references of policy/api for new releaseliamfallon1-1/+1
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
2022-10-21Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
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
2022-10-11Use spring-boot-starter-actuator managed versionliamfallon1-2/+1
Issue-ID: POLICY-4393 Change-Id: Iec8b134a9a23edd13048c58b1054e413be05add8 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-10-10Use current springboot version of actuatorliamfallon1-1/+1
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>
2022-09-23Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
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
2022-08-17Preloading onap.policies.monitoring.tcagen2 2.0.0jhh2-5/+50
Issue-ID: POLICY-4317 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I8885ddbc942a40081583194e0ff03ff700b77975
2022-05-03Set snapshot and/or references of policy/api for new releaseliamfallon1-1/+1
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>
2022-04-28Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
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
2022-04-21Remove warnings in policy-api codeliamfallon4-9/+1
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>
2022-04-12Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
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
2022-03-23Merge "Fix spring transaction issue in getNodetemplates"Liam Fallon1-2/+1
2022-03-22Merge "API healthcheck must return healthcheck report object"Ajith Sreekumar4-13/+18
2022-03-22Fix spring transaction issue in getNodetemplatesrameshiyer271-2/+1
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
2022-03-21API healthcheck must return healthcheck report objectRashmi Pujar4-13/+18
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
2022-03-11Update snapshot and/or references of policy/api to latest snapshotsliamfallon1-1/+1
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
2022-03-03Handle exceptions around DB transcations, data integrityRashmi Pujar11-37/+117
Issue-ID: POLICY-3976 Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca> Change-Id: I9cdfff788d901824904bc74fdb7e2d482d28d562
2022-03-01Add spring repository and service layer for tosca node templatesrameshiyer2719-708/+660
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
2022-02-28cleaner way to handle swagger serialization issueRashmi Pujar1-12/+11
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
2022-02-24Migrate API DB provider to springboot data jpaRashmi Pujar9-84/+119
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
2022-02-23Spring repository and service layer for policy-apiRashmi Pujar20-687/+1808
- 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
2022-02-22Merge "Add REST Apis for Tosca Node template operations"Liam Fallon11-203/+2602
2022-02-21Add REST Apis for Tosca Node template operationsrameshiyer2711-203/+2602
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