policy/api.git
3 years agobump poms to 2.1.4-SNAPSHOT 39/108339/1 elalto 5.0.2-ONAP
jhh [Wed, 27 May 2020 18:36:06 +0000 (13:36 -0500)]
bump poms to 2.1.4-SNAPSHOT

Issue-ID: POLICY-2475
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Idcd8a61e56613447339c1cf41ab105fb24a332c4

3 years agodocker 2.1.3 release 32/108332/1 5.0.1-ONAP
jhh [Wed, 27 May 2020 17:16:10 +0000 (12:16 -0500)]
docker 2.1.3 release

Issue-ID: POLICY-2475
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Id0588ba3d231f5543b225bf803ab82eabff06c78

3 years agomaven release 2.1.3 23/108323/1
jhh [Wed, 27 May 2020 13:51:10 +0000 (08:51 -0500)]
maven release 2.1.3

Issue-ID: POLICY-2475
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I96616307bee1821114dc9d535b236c2db1582864

3 years agoreplace keystore with newer certs 97/107997/1
jhh [Wed, 20 May 2020 17:06:41 +0000 (12:06 -0500)]
replace keystore with newer certs

Issue-ID: POLICY-2475
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I897a6723d08a6b18191706c1eee77b4a6bbd25f4

4 years agoUpgrade to models release 30/97130/1
Pamela Dragosh [Tue, 15 Oct 2019 14:27:00 +0000 (10:27 -0400)]
Upgrade to models release

models 2.1.4 was released

Issue-ID: POLICY-2171
Change-Id: Ifa80fe061815d859ed4e1eb60c85014330141ed6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump versions for api elalto 69/95369/1
Jim Hahn [Tue, 10 Sep 2019 13:54:23 +0000 (09:54 -0400)]
Bump versions for api elalto

Change-Id: I231576801a7c6f1f9d5bc3a66cd1d667b1cf7222
Issue-ID: POLICY-2045
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoRelease api 2.1.2 88/95288/1 5.0.0-ONAP
Pamela Dragosh [Tue, 10 Sep 2019 00:25:07 +0000 (20:25 -0400)]
Release api 2.1.2

released 2.1.2

Issue-ID: POLICY-2045
Change-Id: Icff2a924188ae57a055aa52853ab4eee21545dc7
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoUpgrade to released artifacts 81/95281/1
Pamela Dragosh [Mon, 9 Sep 2019 23:31:33 +0000 (19:31 -0400)]
Upgrade to released artifacts

Released parent, common and models.

Issue-ID: POLICY-2045
Change-Id: I2e7ba2fe54d0761608e1c17104873d0e20e2a3ae
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoKnock on of changing policy types to map 38/94938/3
liamfallon [Thu, 5 Sep 2019 22:25:55 +0000 (22:25 +0000)]
Knock on of changing policy types to map

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>
4 years agoChange scope to list 93/94693/1
Pamela Dragosh [Fri, 30 Aug 2019 15:51:35 +0000 (11:51 -0400)]
Change scope to list

Missed this change in last review.

Issue-ID: POLICY-1899
Change-Id: I19c9bd3346b9dd870ca3b62e7a5fb61b468e804b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Update optimization policy type"
Jorge Hernandez [Fri, 30 Aug 2019 15:34:07 +0000 (15:34 +0000)]
Merge "Update optimization policy type"

4 years agoUpdate optimization policy type 66/91266/10
Pamela Dragosh [Thu, 11 Jul 2019 13:58:27 +0000 (09:58 -0400)]
Update optimization policy type

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>
4 years agoPreload control loop coordination type in API 44/94444/4
Jim Hahn [Wed, 28 Aug 2019 13:53:19 +0000 (09:53 -0400)]
Preload control loop coordination type in API

Modified json based on input from Chenfei.

Change-Id: Ibd70c5737713fee5dcd2370e02ef5f567d2a73b3
Issue-ID: POLICY-1847
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoupdate keystore 73/94173/2
jhh [Fri, 23 Aug 2019 03:35:28 +0000 (22:35 -0500)]
update keystore

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>
4 years agoAdd performance test for API component 16/93716/1
Chenfei Gao [Fri, 16 Aug 2019 16:47:31 +0000 (12:47 -0400)]
Add performance test for API component

Added the test plan for performance test.

Issue-ID: POLICY-1806
Change-Id: I3bd283e2aacac58ba3e0397eaa9ee8dada676871
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoMerge "Adding more policy-api junits"
Pamela Dragosh [Fri, 16 Aug 2019 15:33:00 +0000 (15:33 +0000)]
Merge "Adding more policy-api junits"

4 years agoAdding more policy-api junits 48/93548/4
Bilal A [Wed, 14 Aug 2019 19:03:07 +0000 (15:03 -0400)]
Adding more policy-api junits

Issue-ID: POLICY-1771
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: If85abb8280e28da7391bb4b4cb502473a404065b

4 years agoMerge "Disbale Jetty messages"
Pamela Dragosh [Thu, 15 Aug 2019 13:18:55 +0000 (13:18 +0000)]
Merge "Disbale Jetty messages"

4 years agoMerge "Add get deployed endpoints for legacy policies"
Jorge Hernandez [Wed, 14 Aug 2019 12:53:43 +0000 (12:53 +0000)]
Merge "Add get deployed endpoints for legacy policies"

4 years agoDisbale Jetty messages 27/92927/2
Bilal A [Tue, 13 Aug 2019 19:09:27 +0000 (15:09 -0400)]
Disbale Jetty messages

Issue-ID: POLICY-1771
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: I0fbf300af65e5500c3cc8e7bddf43bb29d988471

4 years agoAdd get deployed endpoints for legacy policies 16/92616/2
Chenfei Gao [Fri, 2 Aug 2019 20:41:19 +0000 (16:41 -0400)]
Add get deployed endpoints for legacy policies

Issue-ID: POLICY-1810
Change-Id: I47046fbbd7d319b58cabf57ff470ec0d5246c88a
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoUpgrade to snapshot integration parent artifact 00/93100/1
Bruno Sakoto [Thu, 8 Aug 2019 15:01:18 +0000 (11:01 -0400)]
Upgrade to snapshot integration parent artifact

Issue-ID: POLICY-1603
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I1318c17c48714d59966e8de60671bd3f1d14c351

4 years agoBump version of policy/api 23/92923/2
jrh3 [Wed, 7 Aug 2019 16:25:21 +0000 (12:25 -0400)]
Bump version of policy/api

Change-Id: I919625bd6a439d27c84389a046f6a5545e6f1911
Issue-ID: POLICY-1965
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoAdd 2.1.1 release file 06/92806/1
jhh [Tue, 6 Aug 2019 14:00:49 +0000 (09:00 -0500)]
Add 2.1.1 release file

Issue-ID: POLICY-1953
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I24838e03bfbe78df5896a89789cd995291917e3a

4 years agoUpdate to latest common/models released versions 80/92680/3
jhh [Mon, 5 Aug 2019 13:28:15 +0000 (08:28 -0500)]
Update to latest common/models released versions

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

4 years agoPolicy API Junit tests 93/92493/2
Bilal A [Thu, 1 Aug 2019 17:53:39 +0000 (13:53 -0400)]
Policy API Junit tests

Issue-ID: POLICY-1771
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: I8ee41b6df32a97cebdc4e07782e564698d10154b

4 years agoMerge "Policy API JUnit Tests"
Jim Hahn [Thu, 1 Aug 2019 15:36:11 +0000 (15:36 +0000)]
Merge "Policy API JUnit Tests"

4 years agoMerge "Add policy api stability test"
Jorge Hernandez [Thu, 1 Aug 2019 12:42:34 +0000 (12:42 +0000)]
Merge "Add policy api stability test"

4 years agoAdd policy api stability test 39/92239/3
Chenfei Gao [Tue, 30 Jul 2019 03:03:37 +0000 (23:03 -0400)]
Add policy api stability test

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>
4 years agoPolicy API JUnit Tests 95/92395/1
Bilal A [Wed, 31 Jul 2019 17:49:11 +0000 (13:49 -0400)]
Policy API JUnit Tests

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

4 years agoPolicy API more JUnit Tests 58/92058/5
Bilal A [Thu, 25 Jul 2019 22:10:07 +0000 (18:10 -0400)]
Policy API more JUnit Tests

Issue-ID: POLICY-1771
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: I8882d9aa6e1e56e9425224b9fdfba01552b5e993

4 years agoAdd lombok.config to API 12/92112/1
Jim Hahn [Fri, 26 Jul 2019 13:12:19 +0000 (09:12 -0400)]
Add lombok.config to API

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>
4 years agoModify policy/api to use RestServer from common 96/91696/3
Jim Hahn [Wed, 17 Jul 2019 13:43:08 +0000 (09:43 -0400)]
Modify policy/api to use RestServer from common

This also entailed removing the local copy of RestServerParameters.

Change-Id: Ie5c581ab70aee60844d1660fe0a61290de6470ec
Issue-ID: POLICY-1652
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoAdding unit tests for Policy API. 96/91396/5
Bilal A [Fri, 12 Jul 2019 23:29:11 +0000 (19:29 -0400)]
Adding unit tests for Policy API.

Issue-ID: POLICY-1771
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: I8ea0729ca029c15edcb7564fa35c8811976ca6a8

4 years agoFix sonar issues in policy-api 92/91292/3
Jim Hahn [Thu, 11 Jul 2019 19:26:12 +0000 (15:26 -0400)]
Fix sonar issues in policy-api

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>
4 years agoFix api due to sonar changes in common 44/91044/1
Jim Hahn [Mon, 8 Jul 2019 15:15:07 +0000 (11:15 -0400)]
Fix api due to sonar changes in common

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>
4 years agoAdd curly braces in shell script file 41/90641/1
shaoqiu [Fri, 28 Jun 2019 05:42:45 +0000 (05:42 +0000)]
Add curly braces in shell script file

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>
4 years agoBump up models to 2.1.1-SNAPSHOT 86/90586/1
ramverma [Thu, 27 Jun 2019 11:17:21 +0000 (11:17 +0000)]
Bump up models to 2.1.1-SNAPSHOT

Change-Id: I5259b1f2e977f69cdfe7f6391fa8ddc238752776
Issue-ID: POLICY-1746
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
4 years agochange policy/models version to 2.1.0 47/90547/1
ramverma [Wed, 26 Jun 2019 18:42:44 +0000 (18:42 +0000)]
change policy/models version to 2.1.0

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>
4 years agoUse ToStringTester from utils-test 29/90529/1
ramverma [Wed, 26 Jun 2019 15:00:39 +0000 (15:00 +0000)]
Use ToStringTester from utils-test

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>
4 years agoBump api patch to 2.1.1 12/90512/1
Pamela Dragosh [Wed, 26 Jun 2019 12:31:31 +0000 (08:31 -0400)]
Bump api patch to 2.1.1

Released 2.1.0

Issue-ID: POLICY-1737
Change-Id: I65909e110fd5cb7b8d99863e161562235025a9bd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRemove POLICY_API_HOME in Dockerfile 72/89972/3
shaoqiu [Tue, 25 Jun 2019 06:10:52 +0000 (06:10 +0000)]
Remove POLICY_API_HOME in Dockerfile

To use POLICY_HOME not POLICY_XXX_HOME

Issue-ID: POLICY-1702
Change-Id: I14e3415f1ee00cd7a82b0d1768eb6c1ab8775424
Signed-off-by: shaoqiu <tim.huang@est.tech>
4 years agoUpgrade to released common & models 32/90332/1 2.1.0
Pamela Dragosh [Fri, 21 Jun 2019 20:16:43 +0000 (16:16 -0400)]
Upgrade to released common & models

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>
4 years agoUpgrade to release 3.0.0 parent 57/90257/1
Pamela Dragosh [Thu, 20 Jun 2019 20:29:49 +0000 (16:29 -0400)]
Upgrade to release 3.0.0 parent

Policy/parent released

Issue-ID: POLICY-1737
Change-Id: I5d0bb151235da73c95f0b3486da5ea9ba1e7ffcd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoFix the bug of cannot return multiple versions of tosca entity 40/90040/4
Chenfei Gao [Mon, 17 Jun 2019 21:15:37 +0000 (17:15 -0400)]
Fix the bug of cannot return multiple versions of tosca entity

Issue-ID: POLICY-1807
Change-Id: I143f3228fd5e23365c95ee13f2e639f9862fc33e
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoMerge "added file to test RestServerParameters.java"
Liam Fallon [Tue, 18 Jun 2019 13:06:20 +0000 (13:06 +0000)]
Merge "added file to test RestServerParameters.java"

4 years agoMerge "Change getCanonicalName() to getName() in api"
Liam Fallon [Tue, 18 Jun 2019 12:42:51 +0000 (12:42 +0000)]
Merge "Change getCanonicalName() to getName() in api"

4 years agoChange getCanonicalName() to getName() in api 10/90010/2
Jim Hahn [Mon, 17 Jun 2019 14:00:18 +0000 (10:00 -0400)]
Change getCanonicalName() to getName() in api

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>
4 years agoadded file to test ApiStatisticsManager.java 80/89780/1
Sandeep J [Thu, 13 Jun 2019 07:17:39 +0000 (12:47 +0530)]
added file to test ApiStatisticsManager.java

to increase code coverage

Issue-ID: POLICY-1791
Change-Id: Ie0a5027ad61224c44b30127348c4a81454549fc9
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
4 years agoadded file to test RestServerParameters.java 74/89774/1
Sandeep J [Thu, 13 Jun 2019 07:03:28 +0000 (12:33 +0530)]
added file to test RestServerParameters.java

to increase code coverage

Issue-ID: POLICY-1791
Change-Id: I9d6632d995b4dfd014b51467a66b95d042d6113c
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
4 years agopolicy/api must publish docker images with tag X.Y-SNAPSHOT-latest 05/89605/1
Rashmi Pujar [Fri, 7 Jun 2019 19:48:40 +0000 (15:48 -0400)]
policy/api must publish docker images with tag X.Y-SNAPSHOT-latest

Issue-ID: POLICY-1808
Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca>
Change-Id: Iedd6b7ef98524424ac104e18285a10bb76cd29cc

4 years agoFix api docker chmod 73/89273/2
Jim Hahn [Tue, 4 Jun 2019 18:41:34 +0000 (14:41 -0400)]
Fix api docker chmod

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>
4 years agoBump to version 2.1.0 96/88896/1
Pamela Dragosh [Thu, 30 May 2019 13:42:01 +0000 (09:42 -0400)]
Bump to version 2.1.0

New snapshot due to branch

Issue-ID: POLICY-1747
Change-Id: I8f82950ec863987322c39fb7254f9ea8b5d7f471
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump to 2.0.2-SNAPSHOT 23/88423/1
Pamela Dragosh [Thu, 23 May 2019 23:05:25 +0000 (19:05 -0400)]
Bump to 2.0.2-SNAPSHOT

Released 2.0.1

Issue-ID: POLICY-1700
Change-Id: I75e2ea1e32dca747f1e093d352909818513f0820
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoUpgrade to released policy/models 89/88389/1 2.0.1 4.0.0-ONAP
Pamela Dragosh [Thu, 23 May 2019 17:13:03 +0000 (13:13 -0400)]
Upgrade to released policy/models

2.0.1 is released

Issue-ID: POLICY-1700
Change-Id: I88ef0a619818c2bde982e6143fdd8360581a26ca
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoLog POST requests 78/88378/1
Jim Hahn [Thu, 23 May 2019 15:29:51 +0000 (11:29 -0400)]
Log POST requests

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>
4 years agoMerge "Reserve version integer check and delete eligibility check"
Pamela Dragosh [Wed, 22 May 2019 17:07:54 +0000 (17:07 +0000)]
Merge "Reserve version integer check and delete eligibility check"

4 years agoReserve version integer check and delete eligibility check 84/88284/1
Chenfei Gao [Wed, 22 May 2019 16:40:48 +0000 (12:40 -0400)]
Reserve version integer check and delete eligibility check

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>
4 years agoUpdate INFO.yaml to add Jim and Ram 58/88258/1
liamfallon [Wed, 22 May 2019 14:41:54 +0000 (14:41 +0000)]
Update INFO.yaml to add Jim and Ram

Issue-ID: POLICY-1775
Change-Id: I50ece282341da05652fb6a2e186a6033ce40bd1e
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoModify legacy API and policy provider to support version enabled features in legacy... 14/88214/1
Chenfei Gao [Wed, 22 May 2019 02:43:25 +0000 (22:43 -0400)]
Modify legacy API and policy provider to support version enabled features in 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>
4 years agoStep snapshot version of policy-api 51/87851/1
liamfallon [Thu, 16 May 2019 08:55:47 +0000 (08:55 +0000)]
Step snapshot version of policy-api

Change-Id: I41df0fbcb1e3e830ad3e0b93c8a2dc42cf7e2ffb
Issue-ID: POLICY-1630
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpgrade to release policy/models 23/87723/1 2.0.0
Pamela Dragosh [Wed, 15 May 2019 00:12:40 +0000 (20:12 -0400)]
Upgrade to release policy/models

Release 2.0.0

Issue-ID: POLICY-1630
Change-Id: I08b3ee06e8a97e7ec08ade2011b37973137fd8df
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Upgrade policy/parent & policy/common in api"
Jorge Hernandez [Mon, 13 May 2019 14:18:09 +0000 (14:18 +0000)]
Merge "Upgrade policy/parent & policy/common in api"

4 years agoUpgrade policy/parent & policy/common in api 34/87534/1
ramverma [Mon, 13 May 2019 10:18:26 +0000 (10:18 +0000)]
Upgrade policy/parent & policy/common in api

Change-Id: I656c0caccce674aed51df00dfa2cc80a1677a7ab
Issue-ID: POLICY-1630
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
4 years agoAdd more filtering conditions to filter returned PdpGroups with specified policy... 88/87488/1
Chenfei Gao [Fri, 10 May 2019 21:15:39 +0000 (17:15 -0400)]
Add more filtering conditions to filter returned PdpGroups with specified policy deployed

Add groupState=ACTIVE and pdpState=ACTIVE to pdpGroupFilter for filtering
returned pdpGroup list with specified policy deployed in it.

Issue-ID: POLICY-1738
Change-Id: Ie777ab1f6438871b2034c8f2fe7a61595a3f633c
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoPreload legacy operational policy type and guard policy types 80/87180/2
Chenfei Gao [Tue, 7 May 2019 18:46:22 +0000 (14:46 -0400)]
Preload legacy operational policy type and guard policy types

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>
4 years agoFix api sonar bugs - logging exceptions 59/86759/3
Chenfei Gao [Thu, 2 May 2019 00:48:00 +0000 (20:48 -0400)]
Fix api sonar bugs - logging exceptions

Fix api sonar bugs by logging exceptions in api controllers

Issue-ID: POLICY-1710
Change-Id: Ie591e0d4709c43f3e91aa7b94a1305d8814bd695
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoAdd version to preloaded policy types 33/86733/1
Jim Hahn [Wed, 1 May 2019 18:43:09 +0000 (14:43 -0400)]
Add version to preloaded policy types

Change-Id: Iee60e74742dce9df03b5409356dcf2cb433c811c
Issue-ID: POLICY-1724
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoFix legacy policy type names 15/86415/1 3.0.2-ONAP
Pamela Dragosh [Fri, 26 Apr 2019 16:51:22 +0000 (12:51 -0400)]
Fix legacy policy type names

The default names were incorrect in the api path.

Issue-ID: POLICY-1704
Change-Id: Ib95a7954c6b4a6fef0e871dfd4130e600e03c957
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoAdd exact version of parent image 58/83858/2
Dmitry Puzikov [Mon, 1 Apr 2019 12:39:15 +0000 (14:39 +0200)]
Add exact version of parent image

Change-Id: I70b6f703e7eaf63c348df75e15b93a42834b2b3e
Issue-ID: INT-998
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
5 years agoRebase api image on policy-common-alpine 64/83464/2
Dmitry Puzikov [Mon, 25 Mar 2019 14:00:06 +0000 (15:00 +0100)]
Rebase api image on policy-common-alpine

Issue-ID: INT-998
Change-Id: I7d128035bb94db860036d9f80151439e79aac8f6
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
5 years agoOne year cert with new component names 80/85380/2
jhh [Mon, 15 Apr 2019 23:18:31 +0000 (18:18 -0500)]
One year cert with new component names

Change-Id: I0c82534c87ae7fe4007d658d3d5645530458230f
Issue-ID: POLICY-1580
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoPreload policy types when api starts up 68/85368/3
Chenfei Gao [Mon, 15 Apr 2019 19:56:31 +0000 (15:56 -0400)]
Preload policy types when api starts up

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>
5 years agoAdd junit tests for endpoints 29/85129/2
Chenfei Gao [Thu, 11 Apr 2019 22:47:26 +0000 (18:47 -0400)]
Add junit tests for endpoints

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>
5 years agoModify delete safety net and DB lab setup 48/84948/4
Chenfei Gao [Wed, 10 Apr 2019 20:54:47 +0000 (16:54 -0400)]
Modify delete safety net and DB lab setup

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>
5 years agoMerge "Modify policy provider to support GET/CREATE"
Pamela Dragosh [Wed, 10 Apr 2019 15:59:05 +0000 (15:59 +0000)]
Merge "Modify policy provider to support GET/CREATE"

5 years agoModify policy provider to support GET/CREATE 53/84453/6
Chenfei Gao [Mon, 8 Apr 2019 01:33:02 +0000 (21:33 -0400)]
Modify policy provider to support GET/CREATE

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>
5 years agoAdds basic performance tests for Policy API 41/84541/2
Bilal A [Mon, 8 Apr 2019 15:28:58 +0000 (11:28 -0400)]
Adds basic performance tests for Policy API

Includes
1) Basic health and stats tests
2) Log analysis script

Change-Id: I239ad1fbb4793873a82cd804da5408f968fce875
Issue-ID: POLICY-1458
Signed-off-by: Bilal A <bilal@research.att.com>
5 years agoIncorporate filters in provider functions 97/84297/3
Chenfei Gao [Fri, 5 Apr 2019 01:47:01 +0000 (21:47 -0400)]
Incorporate filters in provider functions

Use filters to GET wildcard/latest/deployed policies
and policy types.

Junit tests for providers are coming in next patch/review.

Issue-ID: POLICY-1441
Change-Id: Iccd02f395d612ba95728d1bc5808ad16c6f386fe
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoImplement policy provider functions 71/83971/5
Chenfei Gao [Tue, 2 Apr 2019 12:55:17 +0000 (08:55 -0400)]
Implement policy provider functions

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>
5 years agoadded file to test ApiRunttimeException.java 71/82571/5
Sandeep J [Mon, 18 Mar 2019 09:32:32 +0000 (15:02 +0530)]
added file to test ApiRunttimeException.java

to increase code coverage

Issue-ID: POLICY-1606
Change-Id: I03b7680df972f3c809d57e6432e61c2422ecea60
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoadded test cases to TestApiParameterGroup.java 75/82575/4
Sandeep J [Mon, 18 Mar 2019 10:03:00 +0000 (15:33 +0530)]
added test cases to TestApiParameterGroup.java

to increase code coverage

Issue-ID: POLICY-1606
Change-Id: I23350df11457422eb6b56cb6e175dcea0ba2be14
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
5 years agoAdd API endpoints for legacy policies 47/82547/2
Chenfei Gao [Mon, 18 Mar 2019 02:16:18 +0000 (22:16 -0400)]
Add API endpoints for legacy policies

Includes:
a) Added separate endpoints for legacy guard and ops policies
b) Added legacy policy providers
c) Added hotfix for models package name
d) Added new REST controller to http server properties

Issue-ID: POLICY-1515
Change-Id: Id69c88810efc8b76fccc62f386d6e189ba297b1e
Signed-off-by: Chenfei Gao <cgao@research.att.com>
5 years agoAdd test policytype and policies 60/82060/17
Pamela Dragosh [Tue, 12 Mar 2019 18:41:49 +0000 (14:41 -0400)]
Add test policytype and policies

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>
5 years agoManually add NSS libraries to images. 28/82528/1
Jorge Hernandez [Sun, 17 Mar 2019 05:09:56 +0000 (00:09 -0500)]
Manually add NSS libraries to images.

Alpine OpenJDK was updated 2 days ago (3/14), this
upgrade seems to break java applications that depend on libnss*.so
OS libraries, which seem are no longer installed with the jdk

Added other nice to have basic utilities for debugging
to base image.

Change-Id: Ia836c15b17836d46cd61d312f514bd6eb9a8c956
Issue-ID: POLICY-1604
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoUpdate INFO.yaml file 87/82487/1
Jessica Wagantall [Fri, 15 Mar 2019 20:53:30 +0000 (13:53 -0700)]
Update INFO.yaml file

Update missing information blocks and
indentation to pass verify job.

Change-Id: Ice4e1d3979eb92b8f7e1e835622096e8b5a510ca
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
5 years agoHotfix for compilation errors 35/82435/1
Chenfei Gao [Fri, 15 Mar 2019 15:28:16 +0000 (11:28 -0400)]
Hotfix for compilation errors

Added hotfix for compilation errors due to model package name change.

Issue-ID: POLICY-1515
Change-Id: Ia58671234bc5a5cfe201ee448d38adca870333b3
Signed-off-by: Chenfei Gao <cgao@research.att.com>
5 years agoMerge "Add code to follow ONAP API CVS guidelines"
Pamela Dragosh [Thu, 7 Mar 2019 17:56:39 +0000 (17:56 +0000)]
Merge "Add code to follow ONAP API CVS guidelines"

5 years agoAdd code to follow ONAP API CVS guidelines 45/79845/5
Chenfei Gao [Wed, 6 Mar 2019 23:54:25 +0000 (18:54 -0500)]
Add code to follow ONAP API CVS guidelines

Includes:
a) Added custom headers of versioning info into API response.
b) Added custom header of requestID into API response for fulfilling
   logging v1.2 requirements by copying from client's request header.
   If no requestID is contained in client's request header, API server
   will randomly generate one and include it in response header.
c) Added extension annotations into swagger to comply with swagger 2.0
   spec extension requirements posted in the table of ONAP API CVS
   guidelines wiki page.
d) Updated the package name of TOSCA model POJOs.

Issue-ID: POLICY-1270
Change-Id: Ia9e0f18c088604636008201fe5a149dc5fa21de3
Signed-off-by: Chenfei Gao <cgao@research.att.com>
5 years agoUse Alpine as base docker image in /policy/api 54/79754/1
shaoqiu [Wed, 6 Mar 2019 05:37:04 +0000 (05:37 +0000)]
Use Alpine as base docker image in /policy/api

Issue-ID: POLICY-1549
Change-Id: I422ea3d70469dc6d2a840c5ce3aa70117f83864f
Signed-off-by: shaoqiu <tim.huang@est.tech>
5 years agoUpdate INFO.yaml Liam's email 69/79369/1
Pamela Dragosh [Thu, 28 Feb 2019 15:22:25 +0000 (10:22 -0500)]
Update INFO.yaml Liam's email

est.tech

Issue-ID: POLICY-1556
Change-Id: I5f762d215b59a0cb1246c3dd1144b5cba297676f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoReference lombok from parent 61/79361/1
Pamela Dragosh [Thu, 28 Feb 2019 14:43:39 +0000 (09:43 -0500)]
Reference lombok from parent

Policy/parent now declares lombok dependency - remove the
version so that we are consistent.

Issue-ID: POLICY-1547
Change-Id: Ic283cceaed0d8f55530a6357d788d15a826d1b52
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoAdd more endpoints and swagger annotations 08/78708/6
Chenfei Gao [Mon, 18 Feb 2019 21:28:54 +0000 (16:28 -0500)]
Add more endpoints and swagger annotations

Includes:
a) Organized swagger models into new rest.model package
b) Organized provider classes into new rest.provider package
c) Added policyType GET/POST/DELETE endpoints
d) Added policy GET/POST/DELETE endpoints
e) Added swagger annotations for the new endpoints

Issue-ID: POLICY-1515
Change-Id: Ia159a4cfebdad36cb1b4a5cc6456d07d2fde09ee
Signed-off-by: Chenfei Gao <cgao@research.att.com>
5 years agoMerge "Adds basic stability tests for Policy API"
Liam Fallon [Fri, 22 Feb 2019 10:40:04 +0000 (10:40 +0000)]
Merge "Adds basic stability tests for Policy API"

5 years agoAdds basic stability tests for Policy API 19/78519/5
Bilal A [Thu, 14 Feb 2019 19:49:44 +0000 (14:49 -0500)]
Adds basic stability tests for Policy API

Includes
1) Basic health check test
2) Statistics API test

Change-Id: Iccf20bfc4aae7496a0fad1dcb0e9e8378d94b47a
Issue-ID: POLICY-1458
Signed-off-by: Bilal A <bilal@research.att.com>
5 years agoChange ubuntu version in DockerFile 41/78341/1
Chenfei Gao [Tue, 12 Feb 2019 20:35:45 +0000 (15:35 -0500)]
Change ubuntu version in DockerFile

Changed ubuntu from 14.04 to 16.04 in DockerFile

Issue-ID: POLICY-1270
Change-Id: I17a4ee632eb7fb10ddfb3cd2c0c8d57ff22347ff
Signed-off-by: Chenfei Gao <cgao@research.att.com>
5 years agoAdd changes to basic structure of api component 77/77677/7
Chenfei Gao [Thu, 31 Jan 2019 21:09:09 +0000 (16:09 -0500)]
Add changes to basic structure of api component

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>
5 years agoAdd intellij file types to .gitignore 18/73418/1
liamfallon [Fri, 23 Nov 2018 12:07:12 +0000 (12:07 +0000)]
Add intellij file types to .gitignore

Issue-ID: POLICY-1264
Change-Id: I06369ecb1837f0c080ff2a47c502f4b0d5e5e51b
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoChange to released common patch 36/71336/1
Pamela Dragosh [Fri, 26 Oct 2018 17:54:21 +0000 (13:54 -0400)]
Change to released common patch

Although this is pointing to released policy/parent v2.0.0,
it points to policy/common 1.3.0 which points to the
policy/parent SNAPSHOT.

Issue-ID: POLICY-1213
Change-Id: I9d4a9faab981ba12fa687f33d0f8661f787dff12
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoFix refering to snapshot in policy/api 55/71155/2
ramverma [Wed, 24 Oct 2018 14:17:05 +0000 (15:17 +0100)]
Fix refering to snapshot in policy/api

Issue-ID: POLICY-1213
Change-Id: Ia0a4adbb00507175df4f574da0699147fa430434
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>