summaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
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>
2020-04-22Skip policy preload if DB already contains dataJim Hahn2-1/+98
Issue-ID: POLICY-2517 Change-Id: I430eaed1dbc2f81aa2d15af0ced3e879349a8bea Signed-off-by: Jim Hahn <jrh3@att.com>
2020-04-15Bump api to 2.2.3-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-2378 Change-Id: I9b20aa5dcdb6517b1abfba2725a19a77e98bb217 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-04-14Bump api to 2.2.2-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-2378 Change-Id: I29affc99176950f463f7bb8fc41af883e709c4ca Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-03-30Add BARE and REFERENCED mode to policy fetchesliamfallon5-499/+576
In BARE mode (default), just the policy definitions are returned, in REFERENCED mode, the policy and all referenced policy and data types are returned. Issue-ID: POLICY-2377 Change-Id: Idc227d512d56945cc14dec0eae9264dbb3ca52a0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-24Bump api to 2.2.1-SNAPSHOTPamela Dragosh1-1/+1
Issue-ID: POLICY-2378 Change-Id: Ia7b147ebfb6e3222310116da644ac4c820093fe5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-19Test change due to versions fix in Modelsliamfallon1-54/+52
Knock on change due to a change in error message returned by policy-models Issue-ID: POLICY-2377 Change-Id: I69702c52715b2c92c8bd87c8d34264f954b63891 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-03-18renew policy certs till 03/17/2021jhh1-0/+0
Issue-ID: POLICY-2402 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I1225afd76b3715500fb398f5151c3d99509e4d88
2020-03-06Removing legacy guard from policy/apiRam Krishna Verma19-1034/+19
Renamed the guard policy types per this review: https://gerrit.onap.org/r/c/policy/models/+/103127 Issue-ID: POLICY-2243 Change-Id: I35ef95756483c869d374f36d0a1dfe6b588444c7 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-06Merge "Apply policy/models native drools policies changes"Jorge Hernandez1-1/+0
2020-03-05Apply policy/models native drools policies changesjhh1-1/+0
Issue-ID: POLICY-2388 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I99da7247540101253206aac93a8da290d9389f8d
2020-03-03Removing deployed from policy/apiRam Krishna Verma4-127/+0
The deployed API has already been created in PAP as part of Policy Update Notifications work. Removing the corresponding one from policy/api to make sure that all run time administration of PdpGroup and deployed policies are done only via PAP. Leaving the deployed API's in legacy controller as they will be removed together. Issue-ID: POLICY-1941 Change-Id: Ibe131f1aab3ec6a0eec05a2c91b5a140efc61b72 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-02-25Preload default policiesChenfei Gao13-118/+109
Issue-ID: POLICY-2317 Change-Id: I5794e617ea4fb99caf6e7a974a4886e72605979c Signed-off-by: Chenfei Gao <cgao@research.att.com>
2020-02-19Changes for cascaded get in policy modelsliamfallon5-218/+76
This review adapts policy API for changes introduced for cascaded returns on filtered gets in policy-models. Issue-ID: POLICY-1402 Change-Id: I7593eb64cc497809f8485f6add40b6a64291a060 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-02-18Add changes for safe delete in policy-modelsliamfallon10-363/+61
Issue-ID: POLICY-1402 Change-Id: I3f97fbb4c11105118857d354970d6a3de1385f2d Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-02-17Updates to pulling Drools into own yamlPamela Dragosh5-8/+34
Also renamed legacy types and constants to ensure folks know legacy vs tosca compliant. Fixes recommended by Liam. Issue-ID: POLICY-2146 Change-Id: I744f589c0154138f8526e583d0f2b480f172c0c4 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-02-17Change return code checks in unit testsliamfallon1-4/+3
The return codes issued by TOSCA handling in policy-models have been changed to be more correct. This change updates the unit tests in API to use thw new codes. Issue-ID: POLICY-1402 Change-Id: If9798e5fe28bd3f92576135b8c5a34fc456a4925 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-02-13Update API for changes in TOSCA providerliamfallon14-640/+385
Knock on changes and some simplification of the code because the TOSCA provider now does some of the checks that were in API, so those checks are not needed in API any more. Various JUnit fixes. Issue-ID: POLICY-1402 Change-Id: Ic3a08e415c8cce4f2aad4b5da2623e41280c4e66 Signed-off-by: liamfallon <liam.fallon@est.tech>