aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-01-14Update policy-api for java11 dockerJim Hahn4-7/+6
Issue-ID: POLICY-1586 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: Ifeb693b4849dfd07057d2139b9f5b58e2ce3f0e5
2020-01-14JDK 11 upgradesHOCKLA1-4/+27
Pointed to upgraded policy/parent and policy/common Issue-ID: POLICY-1582 Change-Id: I66bb6e2c103147916b6b284e594db1c24434e0ba Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-13Added the new versioning validation for policy and policy typeChenfei Gao21-268/+1443
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>
2020-01-09Enabling logback file to be loaded using oom configmapa.sreekumar2-3/+9
Change-Id: I839b687716a72e2538495b46660fa697cdc2f4f8 Issue-ID: POLICY-2308 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-01-09Changes related to persisiting data type of policy in dba.sreekumar2-5/+7
Change-Id: I2ff6af28eead0958e8bb2699e4b0ce91f1146f06 Issue-ID: POLICY-2315 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-01-02Speed up tests on policy-apiliamfallon11-2007/+1183
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>
2019-12-11Update preload optimization typesPamela Dragosh5-51/+57
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>
2019-12-06Merge "Preloading native policy type for apex-pdp"Pamela Dragosh7-51/+12
2019-12-06Point to new release version 1.6.1 policy/commonHOCKLA1-1/+1
Issue-ID: POLICY-1583 Change-Id: I95163af6929a6babd5669bee1cf7285cc9dace1c Signed-off-by: HOCKLA <ah999m@att.com>
2019-12-06Preloading native policy type for apex-pdpramverma7-51/+12
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>
2019-12-05Point to release versions of policy/parent and policy/commonHOCKLA1-2/+2
Issue-ID: POLICY-1594 Change-Id: I1d686487e0276a290fd8ae997d4e368edd474174 Signed-off-by: HOCKLA <ah999m@att.com>
2019-12-05Merge "change HealthCheckReport URL from self to hostName"Jim Hahn2-4/+6
2019-12-05change HealthCheckReport URL from self to hostNameHengye2-4/+6
Issue-ID: POLICY-1689 Consolidate Policy Health Check into PAP Change-Id: Ie7f8edf1d1a083c6c696824f249544959f72694d Signed-off-by: Hengye <yehui.wang@est.tech>
2019-12-02Fix sonar issues in policy-apiJim Hahn2-2/+2
The change to sonar cloud resulted in new issues being uncovered. Addressed two of the three issues with this: Remove this unused import... Add at least one assertion to this test case. The item left outstanding is: Make sure that command line arguments are used safely here. Issue-ID: POLICY-2206 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: Ie5dc339640102a5b4471e5b719338358ec3e0209 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-11-25Preload the policy types for native policiesChenfei Gao5-6/+18
Issue-ID: POLICY-2212, POLICY-2213 Change-Id: I03be8132699b5af9ea60a06cb0e1332c05886ad9 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-11-19Build tar.gz without requiring docker image buildjhh1-0/+3
This allows the tar.gz to be released by LF jobs. Issue-ID: POLICY-2250 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I1e35705c60b7daa86364dd9ca308a6b6708f4ae5
2019-11-13Added changes to make the list of preloaded policy types configurableChenfei Gao18-58/+168
Issue-ID: POLICY-2210 Change-Id: I84b512a783c1fdc0834cf79bdce4c48a7803b884 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-11-08Do not hardcode io.fabric8 pluginPamela Dragosh1-1/+0
policy/parent now has this defined Issue-ID: POLICY-2222 Change-Id: I0fde39c1bce25ee8f0e0c1dfd773963dc4bdf6ff Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-11-01Preload the SDNC Naming Policy typePamela Dragosh1-1/+2
Needs to be available for policy creation. Issue-ID: POLICY-1740 Change-Id: Id473492ce1ba923131ec3505ecd8f27b18e30013 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-11-01Add common Jersey versionliamfallon1-1/+2
Add a common version of Jersey for all Policy Framework components. Issue-ID: POLICY-2209 Change-Id: Ibb7e4fdfe55e34b3c7c788c3637dbcdacc8a70a8 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-10-30Fix new eclipse warnings in policy-apiJim Hahn1-1/+0
Unused import. Issue-ID: POLICY-2206 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I1d443997a676d3833e60330c9a58a9715844efa2
2019-10-24Update S3P for new API endpointChenfei Gao2-1/+1093
Issue-ID: POLICY-2185 Change-Id: I2d6e29ab6615734abcb1b16336bc5d6afa9937f1 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-10-21Merge "Add missing Optimization base policy type"Jorge Hernandez1-0/+1
2019-10-21Add missing Optimization base policy typePamela Dragosh1-0/+1
This should be there - it has "matchable" metadata needed by the XACML PDP optimization application. Issue-ID: POLICY-2066 Change-Id: Id20996f3cee1b45360e47731bc3d6a4f9457275d Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-10-17override cert storesjhh1-0/+10
Issue-ID: POLICY-2064 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I50b0583bfdf940ed1a4d7a7ac511267c715b7223
2019-10-09Created a new simplified API for creating policiesChenfei Gao4-0/+198
Added a new endpoint to create multiple policies in one call Added corresponding provider method Added corresponding junit tests Issue-ID: POLICY-1991 Change-Id: I09202ededfd88cf9f1ac62ea036e98e3b5d78f98 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-09-16Add changes to support application/yaml in apiChenfei Gao9-529/+821
Issue-ID: POLICY-2101 Change-Id: I0860ff11231b6a649f52355d8d9333eec7d78826 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-09-10Bump versions for api masterJim Hahn10-10/+11
Change-Id: Ic9789f0041e463891d675baac32a7619d9a5bfd4 Issue-ID: POLICY-2045 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-09-09Release api 2.1.25.0.0-ONAPPamela Dragosh1-0/+4
released 2.1.2 Issue-ID: POLICY-2045 Change-Id: Icff2a924188ae57a055aa52853ab4eee21545dc7 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-09-09Upgrade to released artifactsPamela Dragosh1-3/+3
Released parent, common and models. Issue-ID: POLICY-2045 Change-Id: I2e7ba2fe54d0761608e1c17104873d0e20e2a3ae Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-09-05Knock on of changing policy types to mapliamfallon71-3765/+331
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>
2019-08-30Change scope to listPamela Dragosh1-1/+1
Missed this change in last review. Issue-ID: POLICY-1899 Change-Id: I19c9bd3346b9dd870ca3b62e7a5fb61b468e804b Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-08-30Merge "Update optimization policy type"Jorge Hernandez11-287/+239
2019-08-30Update optimization policy typePamela Dragosh11-287/+239
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>
2019-08-28Preload control loop coordination type in APIJim Hahn6-4/+43
Modified json based on input from Chenfei. Change-Id: Ibd70c5737713fee5dcd2370e02ef5f567d2a73b3 Issue-ID: POLICY-1847 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-22update keystorejhh2-0/+0
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>
2019-08-16Add performance test for API componentChenfei Gao3-335/+7833
Added the test plan for performance test. Issue-ID: POLICY-1806 Change-Id: I3bd283e2aacac58ba3e0397eaa9ee8dada676871 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-08-16Merge "Adding more policy-api junits"Pamela Dragosh1-1/+296
2019-08-16Adding more policy-api junitsBilal A1-1/+296
Issue-ID: POLICY-1771 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: If85abb8280e28da7391bb4b4cb502473a404065b
2019-08-15Merge "Disbale Jetty messages"Pamela Dragosh1-0/+2
2019-08-14Merge "Add get deployed endpoints for legacy policies"Jorge Hernandez11-120/+622
2019-08-13Disbale Jetty messagesBilal A1-0/+2
Issue-ID: POLICY-1771 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I0fbf300af65e5500c3cc8e7bddf43bb29d988471
2019-08-08Add get deployed endpoints for legacy policiesChenfei Gao11-120/+622
Issue-ID: POLICY-1810 Change-Id: I47046fbbd7d319b58cabf57ff470ec0d5246c88a Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-08-08Upgrade to snapshot integration parent artifactBruno Sakoto1-1/+1
Issue-ID: POLICY-1603 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I1318c17c48714d59966e8de60671bd3f1d14c351
2019-08-07Bump version of policy/apijrh39-11/+11
Change-Id: I919625bd6a439d27c84389a046f6a5545e6f1911 Issue-ID: POLICY-1965 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-06Add 2.1.1 release filejhh1-0/+4
Issue-ID: POLICY-1953 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I24838e03bfbe78df5896a89789cd995291917e3a
2019-08-05Update to latest common/models released versionsjhh1-2/+2
policy/models: 2.1.2 policy/common: 1.5.1 Issue-ID: POLICY-1953 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I5221b35a4e2b6337ac32e51b5d62f89bf6401b41
2019-08-01Policy API Junit testsBilal A1-0/+51
Issue-ID: POLICY-1771 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I8ee41b6df32a97cebdc4e07782e564698d10154b
2019-08-01Merge "Policy API JUnit Tests"Jim Hahn4-15/+205
2019-08-01Merge "Add policy api stability test"Jorge Hernandez9-322/+8013