summaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
2021-10-14Bump policy/api to jakarta 2.6.0-SNAPSHOTa.sreekumar1-1/+1
Change-Id: I94e617c835a2413350ca6c77f4ee19a35001946b Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-10-14Bump policy/api to 2.5.2-SNAPSHOTa.sreekumar1-1/+1
Change-Id: Ib1a2acd59f444b618ff20d293962aa1d5a6d5118 Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-09-14Bump api to 2.5.1-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-3587 Change-Id: Id1a7936fe6ac1769fb5c005a7a3c1a858dcf7104 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-06Decrease eclipselink verbosity to warningjhh1-1/+1
Issue-ID: POLICY-3611 Change-Id: Iadb64d651a2d75f1a2912e56af55ab70d912f8d0 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-08-19Add check to verify api to db connectivityRam Krishna Verma1-3/+34
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>
2021-08-17Update Policy Components not to create tablesktimoney1-12/+4
Issue-ID: POLICY-3488 Change-Id: I704e8b10db6fb8b5c3df13f255fc2076df03f1a2 Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-07-21Use singleton for api statisticsJim Hahn10-291/+180
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>
2021-07-19Use lombok annotations in policy-apia.sreekumar6-96/+23
Change-Id: I858b3bff44804f3bf0c04bd637fafa0c01af2e57 Issue-ID: POLICY-3392 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-06-18Fix new checkstyle issues in policy-apiJim Hahn1-2/+1
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>
2021-05-06Fix sonars in policy-apiJim Hahn8-39/+38
Fixed sonars: - use "var" instead of actual type name Issue-ID: POLICY-3285 Change-Id: I349e57f7abe84138f5aa3478e22652a593b59845 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-04-29Remove GroupValidationResultJim Hahn6-117/+47
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>
2021-04-16Refactor ApiCommandLineArguments classadheli.tavares4-220/+41
CMD Class to use CMD Handler from Common. Issue-ID: POLICY-3129 Change-Id: I7a1b960b1e3ecc6df0f7dde6b3301d640f4feb11 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-03-19Delete keystores from policy-apiJim Hahn2-6/+6
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>
2021-03-16Update policy-keystore with newer certificatesjhh1-0/+0
Issue-ID: POLICY-3139 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I08670a96d0d37e5eb906eace95f15e2a4dfa0887
2021-03-11Bump api to 2.5.0-SNAPSHOTpd12481-1/+1
Issue-ID: POLICY-3105 Change-Id: Ia2016f32738100e8c795b3045d5739a4985a97a1 Signed-off-by: pd1248 <pdragosh@research.att.com>
2021-03-10Bump api to 2.4.2-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-3127 Change-Id: I2abb531ed01043777888cbb4c7412f3ddf18397d Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-03-09Point to 2.4.1 modelsRam Krishna Verma1-1/+1
Issue-ID: POLICY-3127 Change-Id: Ib0cad9bba202428374281b29e1768975fcb09374 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-24Bump api to 2.4.1-SNAPSHOTPamela Dragosh1-2/+2
Issue-ID: POLICY-3088 Change-Id: I8be2082cbae2c462807baeba2cb33e64d819e4be Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-02-07Make filters on TOSCA entities genericliamfallon4-30/+33
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>
2021-01-25add JpaPdpPolicyStatus to persistence.xmljhh2-1/+5
Issue-ID: POLICY-2648 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I3a71de299009e61f805d8c48a57a3c34a3f3ae76
2021-01-04Changed identifiers to concept identifiersliamfallon2-16/+14
The policy models tosca classes ToscaPolicyIdentifier and ToscaPolicyIdentifierOptVersion can be used to identify any TOSCA concept, not just TOSCA policies so they are renamed to ToscaConceptIdentifier and ToscaCinceptIdentifierOptVersion respectively. The class ToscaPolicyTypeIdentifier is redundant and is replaced by ToscaConceptIdentifier. Issue-ID: POLICY-2900 Change-Id: I9ba3deae8eb4a8e51df5a40cdb8be8d9d23c5990 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-12-22Update unit tests for new validation messagesliamfallon3-150/+143
The refactoring work in validation caused some validation messages to change. This review adapts the API unit tests for those changes. Issue-ID: POLICY-2900 Change-Id: Ifcd1b61488321c7d1cffa7d4ca50d016ab9787c7 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-12-17Update persistence.xml with new TOSCA classesliamfallon2-13/+42
Issue-ID: POLICY-2900 Change-Id: I3c83f7580a683c22dd1edc46da029851f28d9e0d Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-10-27Bump api master to 2.4.0-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-2875 Change-Id: Ib4aadc085ba3be5e8dd0ca6ad63d46a64b3c886a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-10-20Bump api 2.3.4 SNAPSHOTPamela Dragosh1-1/+1
Issue-ID: POLICY-2869 Change-Id: Ie70eec72b830c81fb2ae518a7747f8d504b2e831 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-10-07Bump api to 2.3.3-SNAPSHOTPamela Dragosh1-1/+1
Issue-ID: POLICY-2839 Change-Id: I7d35215e5b3dc404a6fbfcf45dee0735d74adfbb Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-09-25Merge "update default keystores"Jorge Hernandez1-0/+0
2020-09-24update default keystoresjhh1-0/+0
Issue-ID: POLICY-2827 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I69958705d3b626410748fabf4d41aa4e682309c1
2020-09-24Add DCAE legacy policy types for preloadPamela Dragosh1-0/+3
Moved from SDC. Issue-ID: SDC-3229 Change-Id: I7e2b16e7190cfd4dd3a0c789fc8c8e85496863de Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-09-16Remove base64 encoding of password from apiRam Krishna Verma3-6/+4
Remove base64 encoding of db password from policy-api component. Issue-ID: POLICY-2550 Change-Id: If395896f88f56f0284187f23d90ec5e0252ea17f Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-09-08Bump api to 2.3.2Jim Hahn1-1/+1
Issue-ID: POLICY-2789 Change-Id: Ib834f2cc5eeedcca7e2cb0aaeaf7f6230570508f Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-24Preload new Match Policy TypePamela Dragosh1-0/+1
Preloads the Match Policy Type. Issue-ID: POLICY-2596 Change-Id: I5e0843afb13c2ed9f8fcdefd44d9b7aede15fbcd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-19Updates tests for new tcagen2 policy typePamela Dragosh5-25/+25
Forgot to include these. Once models got merged api failed. Issue-ID: POLICY-2772 Change-Id: Iae64effcba71ecbfbf6ab253de91842a9271c207 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-19Preload new tcagen2 policy typePamela Dragosh1-1/+1
Older policy type is deprecated so replace with new tcagen2 policy type. Issue-ID: POLICY-2772 Change-Id: Ica8c15d4f560e7a114b3453470b624d733f1fed3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-17Preload new guard FilterPamela Dragosh1-0/+1
New guard filter should be pre-loaded. Issue-ID: POLICY-2590 Change-Id: I4c7338400a05f9e766c14f2477e84b10ac0a7f06 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-17Merge "Changes to make Policy-API container crash with non zero exitCode"Ram Krishna Verma2-31/+22
2020-08-14Remove legacy providers from apiRam Krishna Verma3-520/+1
Removed the legacy operational api's earlier but missed the provider. Removing provider and related tests now. Issue-ID: POLICY-2762 Change-Id: I902ad3939ba8b28b4ad182f666131a2c02cd98c4 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-08-14Changes to make Policy-API container crash with non zero exitCodea.sreekumar2-31/+22
Change-Id: I9e46aa87bfefbd56ef0077017293df34b654e36f Issue-ID: POLICY-2755 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-08-06Remove legacy operational policy from apiRam Krishna Verma3-534/+1
Issue-ID: POLICY-2762 Change-Id: I8e4b3cb5968a691dd9ac3ad9a42ccd7d9fc7b963 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-07-24Fetch and Delete policy API with PolicyName and PolicyVersionputhuparambil.aditya5-325/+869
Issue-ID: POLICY-2585 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Icabde6463105ed382c1e32b6f7c1319490a385b2
2020-07-10Bump api to 2.3.1-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-2695 Change-Id: Ic53e2b74f63962426fa8d91d1d85a82d80d7af60 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-06-29Fix issues in api for new sonar rulesJim Hahn4-14/+12
Addressed issues reported due to updates to the sonar rules: - use assertEquals, assertNull, etc. - use "<>" - use "{}" place-holder Issue-ID: POLICY-2680 Change-Id: I42d5e635e09bac6e520fc7aa386814ad617fc1f6 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-06-19Changes for Checkstyle 8.32liamfallon13-36/+22
Issue-ID: POLICY-2188 Change-Id: I8765849462cd866f2a3049a5a4a02bce17330e66 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-06-15Removing duplicate yamls and jsonsaditya.puthuparambil3-440/+48
Issue-ID: POLICY-2052 Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech> Change-Id: Ib4125baa1415cdc7f8a34fabc21fa322bc9b82a1
2020-06-01Log missing preloaded policy and continueChris Ramstad1-2/+3
If a policy type can't be preloaded because it doesn't exist, log and continue. Issue-ID: POLICY-2487 Signed-off-by: Chris Ramstad <cramstad@ciena.com> Change-Id: I2a26e660d7337b2db153491a6bb3373b1470cbee
2020-05-19Bump api master to 2.3.0-SNAPSHOTJim Hahn1-1/+1
Issue-ID: POLICY-2514 Change-Id: I96a04bc18d92bf63e8fdf3a0b19a695d062633bb Signed-off-by: Jim Hahn <jrh3@att.com>
2020-05-10Policy DB contents removed on DB deadlockliamfallon2-47/+48
Unit test knock on from rework on Legacy policies. Issue-ID: POLICY-2548 Change-Id: I1f3469fb1f3e63da192614226b6ba456da7c1d4b Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-05-06Make type and type_version mandatory on policiesliamfallon2-5/+7
Up until now, the "type" and "type_version" fields defaulted to "NULL" and "0.0.0" respectively when they were not specified because the "type_version" field was not always specified on policies in previous releases. In cases where the "type_version" field was not specified, it was assumend that a "0.0.0" version of the policy type existed. In parallel, if the version field was not specified on the policy type, the version was stored as 0.0.0. This behaviour is now changed and the "type" and "type_version" fields are now always mandatory. Issue-ID: POLICY-2538 Change-Id: Ieec97f4a111edd13dbe31116c7549f07c19ef0aa Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-04-29Update SNDC Naming policy in APIJim Hahn1-5/+5
This fixes a broken junit test. Issue-ID: POLICY-2525 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: If5b97d168944471413149f4244d59c7d85ec7f0c
2020-04-24Point api to new parentJim Hahn1-1/+1
Issue-ID: POLICY-2510 Change-Id: Icc055f13ed43ade9c86d9402c1d27ea9ad3e4f9a Signed-off-by: Jim Hahn <jrh3@att.com>