aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2019-07-31Add policy api stability testChenfei Gao9-322/+8013
Add jmeter test plan for api stability test Add scripts and config files for setting up api docker Add scripts and config files for setting up other components Issue-ID: POLICY-1805 Change-Id: I103288fc4a4e97997cbf99a0af0cddec7d570416 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-07-31Policy API JUnit TestsBilal A4-15/+205
1) Adds tests for testing LegacyGuardPolicyProvider and LegacyOperationalPolicyProvider 2) Fixes issue in LegacyGuardPolicyProvider and LegacyOperationalPolicyProvider to handle policy version number properly while deleting policies. Issue-ID: POLICY-1771 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I01d48b5352e7e6da403faf1e4997d3550024755f
2019-07-29Policy API more JUnit TestsBilal A3-6/+283
Issue-ID: POLICY-1771 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I8882d9aa6e1e56e9425224b9fdfba01552b5e993
2019-07-26Add lombok.config to APIJim Hahn1-0/+2
This prevents sonar from checking lombok annotations for code coverage. Change-Id: Idde21c8a4f2fea13bdea989fe94f361b594550a8 Issue-ID: POLICY-1938 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-18Modify policy/api to use RestServer from commonJim Hahn11-412/+46
This also entailed removing the local copy of RestServerParameters. Change-Id: Ie5c581ab70aee60844d1660fe0a61290de6470ec Issue-ID: POLICY-1652 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-16Adding unit tests for Policy API.Bilal A4-0/+143
Issue-ID: POLICY-1771 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I8ea0729ca029c15edcb7564fa35c8811976ca6a8
2019-07-11Fix sonar issues in policy-apiJim Hahn8-521/+397
Extracted some methods to address cyclomatic complexity. Created super classes to address duplicate code. Did not address code coverage. Change-Id: I2ec07cdad9e671b0e239e2d4ae9395e89b9e4266 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-08Fix api due to sonar changes in commonJim Hahn6-35/+76
Fixed breakages due to changes made in policy/common to satisfy sonar. Also modified the code to allocate ports for junit tests, writing them into the config files. Change-Id: Id31d19e0691f7450c3e4158090dac6f3c3849631 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-06-28Add curly braces in shell script fileshaoqiu1-2/+2
According to comment: https://gerrit.onap.org/r/c/policy/xacml-pdp/+/90495/1/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh#43 Issue-ID: POLICY-1702 Change-Id: I105fe178c9d724f6e443aa2cff49ae02c76b67ca Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-06-27Bump up models to 2.1.1-SNAPSHOTramverma1-1/+1
Change-Id: I5259b1f2e977f69cdfe7f6391fa8ddc238752776 Issue-ID: POLICY-1746 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-06-26change policy/models version to 2.1.0ramverma1-1/+1
As per comment on last review, going back to 2.1.0 policy/models Change-Id: I9ace10dc13590ef498c9a7d0f1fc519957023309 Issue-ID: POLICY-1746 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-06-26Use ToStringTester from utils-testramverma3-3/+8
Changing ToStringTester from utils to utils-test. Correcting the policy/common & policy/models version. Change-Id: I33a590367732ff315a9b03aca917e4be5f1ae05e Issue-ID: POLICY-1746 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-06-26Bump api patch to 2.1.1Pamela Dragosh9-10/+10
Released 2.1.0 Issue-ID: POLICY-1737 Change-Id: I65909e110fd5cb7b8d99863e161562235025a9bd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-25Remove POLICY_API_HOME in Dockerfileshaoqiu2-12/+12
To use POLICY_HOME not POLICY_XXX_HOME Issue-ID: POLICY-1702 Change-Id: I14e3415f1ee00cd7a82b0d1768eb6c1ab8775424 Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-06-21Upgrade to released common & models2.1.0Pamela Dragosh1-2/+2
Released common 1.5.0 and models 2.1.0 Issue-ID: POLICY-1737 Change-Id: I95cd82c79d57df1b410ea0deaa2b93dee12878b0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-20Upgrade to release 3.0.0 parentPamela Dragosh1-1/+1
Policy/parent released Issue-ID: POLICY-1737 Change-Id: I5d0bb151235da73c95f0b3486da5ea9ba1e7ffcd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-18Fix the bug of cannot return multiple versions of tosca entityChenfei Gao1-1/+1
Issue-ID: POLICY-1807 Change-Id: I143f3228fd5e23365c95ee13f2e639f9862fc33e Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-06-18Merge "added file to test RestServerParameters.java"Liam Fallon1-0/+46
2019-06-18Merge "Change getCanonicalName() to getName() in api"Liam Fallon3-15/+10
2019-06-17Change getCanonicalName() to getName() in apiJim Hahn3-15/+10
Per javadocs, getName() should generally be used instead of Class.getCanonicalName(). This change only applies to classes; it does not apply to File objects. Change-Id: Ia1726f178f906bfdfbd056c50598228cff8e1a2d Issue-ID: POLICY-1646 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-06-13added file to test ApiStatisticsManager.javaSandeep J1-0/+45
to increase code coverage Issue-ID: POLICY-1791 Change-Id: Ie0a5027ad61224c44b30127348c4a81454549fc9 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-06-13added file to test RestServerParameters.javaSandeep J1-0/+46
to increase code coverage Issue-ID: POLICY-1791 Change-Id: I9d6632d995b4dfd014b51467a66b95d042d6113c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-06-07policy/api must publish docker images with tag X.Y-SNAPSHOT-latestRashmi Pujar1-13/+13
Issue-ID: POLICY-1808 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: Iedd6b7ef98524424ac104e18285a10bb76cd29cc
2019-06-04Fix api docker chmodJim Hahn1-1/+1
The chmod in the docker builder for my local VM does not appear to support the "+x" style options. Modified the api docker file to use "755" instead. Change-Id: Idf376d0d4e2a44ee5a605b473b0307d8770b4ced Issue-ID: POLICY-1829 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-30Bump to version 2.1.0Pamela Dragosh9-13/+13
New snapshot due to branch Issue-ID: POLICY-1747 Change-Id: I8f82950ec863987322c39fb7254f9ea8b5d7f471 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-23Bump to 2.0.2-SNAPSHOTPamela Dragosh9-9/+9
Released 2.0.1 Issue-ID: POLICY-1700 Change-Id: I75e2ea1e32dca747f1e093d352909818513f0820 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-23Upgrade to released policy/models4.0.0-ONAP2.0.1Pamela Dragosh1-1/+1
2.0.1 is released Issue-ID: POLICY-1700 Change-Id: I88ef0a619818c2bde982e6143fdd8360581a26ca Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-23Log POST requestsJim Hahn2-0/+76
Add logging of POST requests received via the REST API. Change-Id: I8c71df3a45b8a3369b48eee06165dd5034c115a6 Issue-ID: POLICY-1777 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-22Merge "Reserve version integer check and delete eligibility check"Pamela Dragosh4-4/+4
2019-05-22Reserve version integer check and delete eligibility checkChenfei Gao4-4/+4
Per Jim's comment, version integer check should come first before checking delete elibibility (i.e. checking if policy is deployed in PDP group or not). Issue-ID: POLICY-1777 Change-Id: Ibd3d8d05a40ef34c558a2e9389596396a69469fe Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-05-22Update INFO.yaml to add Jim and Ramliamfallon1-1/+17
Issue-ID: POLICY-1775 Change-Id: I50ece282341da05652fb6a2e186a6033ce40bd1e Signed-off-by: liamfallon <liam.fallon@est.tech>