Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
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
|
|
- 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
|
|
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
|
|
Issue-ID: POLICY-3753
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I4537ed49b7fc57683bfc487f0d212642b7e69f17
|
|
Issue-ID: POLICY-2086
Change-Id: I3c7d95863e1f46f5d0217bad6bd486de95e16b3a
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
|
|
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>
|
|
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>
|
|
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>
|
|
Issue-ID: POLICY-3139
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I08670a96d0d37e5eb906eace95f15e2a4dfa0887
|
|
Issue-ID: POLICY-2648
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I3a71de299009e61f805d8c48a57a3c34a3f3ae76
|
|
Issue-ID: POLICY-2900
Change-Id: I3c83f7580a683c22dd1edc46da029851f28d9e0d
Signed-off-by: liamfallon <liam.fallon@est.tech>
|
|
|
|
Issue-ID: POLICY-2827
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I69958705d3b626410748fabf4d41aa4e682309c1
|
|
Moved from SDC.
Issue-ID: SDC-3229
Change-Id: I7e2b16e7190cfd4dd3a0c789fc8c8e85496863de
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Preloads the Match Policy Type.
Issue-ID: POLICY-2596
Change-Id: I5e0843afb13c2ed9f8fcdefd44d9b7aede15fbcd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
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>
|
|
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>
|
|
New guard filter should be pre-loaded.
Issue-ID: POLICY-2590
Change-Id: I4c7338400a05f9e766c14f2477e84b10ac0a7f06
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Issue-ID: POLICY-2052
Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech>
Change-Id: Ib4125baa1415cdc7f8a34fabc21fa322bc9b82a1
|
|
Issue-ID: POLICY-2402
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I1225afd76b3715500fb398f5151c3d99509e4d88
|
|
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>
|
|
Issue-ID: POLICY-2388
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I99da7247540101253206aac93a8da290d9389f8d
|
|
Issue-ID: POLICY-2317
Change-Id: I5794e617ea4fb99caf6e7a974a4886e72605979c
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Issue-ID: POLICY-1402
Change-Id: I3f97fbb4c11105118857d354970d6a3de1385f2d
Signed-off-by: liamfallon <liam.fallon@est.tech>
|
|
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>
|
|
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>
|
|
Change-Id: I544e275758945007b4d68d0a6b069f5963780178
Issue-ID: POLICY-2147
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
|
|
The following rules are implemented to validate the version provided
in the POST payloads of policies and policy types:
1) If version field is not specified in POST payload, "406 - Not Acceptable"
would be returned along with the message "mandantory version field is missing".
2) If the version is not in the DB, we simply insert it.
3) If the version is in the DB, "406 - Not Acceptable" is returned along with
the message saying "specified version x.x.x" is already existing and the latest
version is x.x.x. It can force the user to create a newer version than the latest one.
4) The same versioning validation is applied to legacy types of policies too
so that everything is consistent.
Issue-ID: POLICY-2316
Change-Id: I395df0196a9d3073fd1f09060f943aeeb554d277
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Change-Id: I2ff6af28eead0958e8bb2699e4b0ce91f1146f06
Issue-ID: POLICY-2315
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
|
|
Test initialization and shutown of h2 database and REST server only done
once at beginning of all API unit tests. Duplicate tests removed, all
test done to persistent database and other minor improvements.
We need to check coverage after this review, ti may have dropped by a
few percent. We should design new tests to bring the coverage back up
again.
Issue-ID: POLICY-2297
Change-Id: I7ccb9835e01e08c284fdc4602e3a00e946b5e902
Signed-off-by: liamfallon <liam.fallon@est.tech>
|
|
The type names were updated and added 2 new types.
Issue-ID: POLICY-2066
Change-Id: Ibbd149dec1809a9a815a5f6b64a8e7855fcc2010
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Preloading native policy type for apex-pdp so that policies can be
created and deployed using this policy type.
Removed few test cases not working on windows.
Issue-ID: POLICY-2279
Change-Id: I8e462118ee21e92fcb862ef94a6d15aec1b893c6
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
|
|
Issue-ID: POLICY-2212, POLICY-2213
Change-Id: I03be8132699b5af9ea60a06cb0e1332c05886ad9
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Issue-ID: POLICY-2210
Change-Id: I84b512a783c1fdc0834cf79bdce4c48a7803b884
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
This review adapts policy-api for the change in the structure
of the toasca service template from a list of maps to a plain map.
DUplication of policy types and policies removed and policy-models
examples used instead.
Issue-ID: POLICY-2047
Change-Id: Ie1fdeef79289348005314c5de9b2e37c0c45d786
Signed-off-by: liamfallon <liam.fallon@est.tech>
|
|
Missed this change in last review.
Issue-ID: POLICY-1899
Change-Id: I19c9bd3346b9dd870ca3b62e7a5fb61b468e804b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
|
|
Per work with Optimization team, identifying common attributes for matchable
optimization policies.
Fixed TOSCA syntax errors - use map instead of list.
Removed identity from PciPolicy, QueryPolicy and OptimizationPolicy.
Added example of how vCPE policies now look.
Updated the example for HPA Policy based on Ruoyo input. Fixed syntax
errors due to JSON conversion. Trailing spaces.
Added back in list for applicableResources and required scope attribute
for example policies.
Issue-ID: POLICY-1899
Change-Id: Ic8ae6db0575fb21fca6103ab2ed015c8524def80
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Issue-ID: POLICY-1988
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia3878cad1ec0eb22b21b09531ed99d33c4d104f2
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
|
|
This also entailed removing the local copy of RestServerParameters.
Change-Id: Ie5c581ab70aee60844d1660fe0a61290de6470ec
Issue-ID: POLICY-1652
Signed-off-by: Jim Hahn <jrh3@att.com>
|
|
legacy db provider
Includes:
a) Modify legacy API endpoints to retrieve the latest version of legacy policies
b) Modify legacy policy providers to support newly added version enabled features in db provider
c) Fix corresponding junit test failures
Issue-ID: POLICY-1777
Change-Id: I641170b37e2929b5060414832d4b8395493cecdc
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Includes:
a) Add legacy operational policy type and guard policy types into
preloading list.
b) Fix corresponding junit test failure.
Issue-ID: POLICY-1738
Change-Id: I071e898be31e62f47d427094f1e76069fafd0148
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Includes:
a) Preload monitoring and optimization policy types when api
component starts up
b) Fix the failure unit testing delete policy type
c) Enhance several junit test cases to be irrespective of running orders
Issue-ID: POLICY-1441
Change-Id: Ia1ba17d58dfbc9a8ee12e789e3867b20111e9cd2
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Add junit tests to improve code coverage to > 80%.
Modify db setting and remove db authorization from persistence.
Issue-ID: POLICY-1441
Change-Id: I6070ac9ba6adba836adeeb547610c27dccf577bd
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Includes:
a) Close db connection using try-with-resource
b) Modify delete safety net for policy, policy type and legacy policies
c) Modify db persistence
d) Modify db setup in bootstrap config
e) Add unit tests for providers and endpoints
Issue-ID: POLICY-1441
Change-Id: Id89bc361c73380df61df35f01f296e47e936e9cf
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Modify policy and policy type providers to better
support GET/CREATE policy/policy types.
Issue-ID: POLICY-1442
Change-Id: I7a513be4f9dbd5b48b85a948e3bda7b6c6ab7ddb
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Includes:
a) Implement policy provider functions
b) Implement policy type provider functions
c) Implement legacy guard policy provider functions
d) Implement legacy operational policy provider functions
e) Modify API endpoints to align with provider functions
f) Hook up API statistics counter
Junit tests for providers and new endpoints will be in next patch/review.
Issue-ID: POLICY-1441
Change-Id: I113de95f6e0ea5f5436c072536f5e9a178988e5e
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|
|
Some example policies for vDNS, vFW and vCPE use
cases using DCAE TCA.
The .input are the expected REST body from the
calling client (eg. CLAMP).
While the .output are the expected REST body for the return
response from policy.
The .tosca.yaml are what the DBAO will look like internally.
Upgraded to support policy/model merge.
Fixed missing tca_policy field in monitoring policies.
Update for policy-id.
Issue-ID: POLICY-1273
Change-Id: Ib087b184c3ac9a058fe600c6c8a28cca3a71fbea
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
|
|
Includes:
1) Changed logging from FlexLogger to slf4j and used the logback.xml aligned with
v1.2 logging requirements.
2) Added https as a configurable parameter of api rest server.
3) Added aaf as a condfigurable parameter of api rest server.
4) Added AafFilter classes for healthcheck and statistics.
5) Added api statistics REST entry point.
6) Created related junit tests.
7) Packaged docker
Issue-ID: POLICY-1270
Change-Id: I638f61361bb052545e8597531ba3d58019bf1f24
Signed-off-by: Chenfei Gao <cgao@research.att.com>
|