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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Liam Fallon [Tue, 18 Jun 2019 13:06:20 +0000 (13:06 +0000)]
Merge "added file to test RestServerParameters.java"
Liam Fallon [Tue, 18 Jun 2019 12:42:51 +0000 (12:42 +0000)]
Merge "Change getCanonicalName() to getName() in api"
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>
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>
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>
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
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>
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>
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>
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>
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>
Pamela Dragosh [Wed, 22 May 2019 17:07:54 +0000 (17:07 +0000)]
Merge "Reserve version integer check and delete eligibility check"
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>
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>
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>
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>
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>
Jorge Hernandez [Mon, 13 May 2019 14:18:09 +0000 (14:18 +0000)]
Merge "Upgrade policy/parent & policy/common in api"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Pamela Dragosh [Wed, 10 Apr 2019 15:59:05 +0000 (15:59 +0000)]
Merge "Modify policy provider to support GET/CREATE"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Pamela Dragosh [Thu, 7 Mar 2019 17:56:39 +0000 (17:56 +0000)]
Merge "Add code to follow ONAP API CVS guidelines"
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>
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>
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>
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>
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>
Liam Fallon [Fri, 22 Feb 2019 10:40:04 +0000 (10:40 +0000)]
Merge "Adds basic stability tests for Policy API"
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>
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>
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>
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>
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>
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>
Pamela Dragosh [Tue, 25 Sep 2018 13:20:32 +0000 (09:20 -0400)]
Clean up checkstyle declaration
Fixed the path for finding the src files.
Added eclipse lifecycle to ignore the oparent checkstyle
bug.
Cleaned up existing checkstyle issues.
Added entries into .gitignore to ignore debug logging
directories created.
Issue-ID: POLICY-1136
Change-Id: I684038babcb9723cfc4bef2b2a713425ae077599
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Krishnajinka [Fri, 31 Aug 2018 11:01:30 +0000 (20:01 +0900)]
Add basic main structure for policy-api
Define main pom xml and update to include main.
Add the main exception parameters rest
startstop classes. Add test cases. Modify comments
Issue-ID: POLICY-1066
Change-Id: I2e878a58eef4f021e3a9a991738194127edf4d16
Signed-off-by: krisjinka <kris.jinka@samsung.com>
Signed-off-by: krishnajinka <kris.jinka@samsung.com>
ramverma [Wed, 30 May 2018 14:00:02 +0000 (15:00 +0100)]
Changing artifactId for consistency
Change-Id: Iae899d360f2e393150312472d025cd3c6412eebe
Issue-ID: POLICY-806
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
ramverma [Thu, 24 May 2018 11:40:21 +0000 (12:40 +0100)]
Change pom to refer policy parent
Change-Id: Ib3232a12eaef1d1ba9fe00b2194680a18e489f17
Issue-ID: POLICY-806
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Pamela Dragosh [Tue, 1 May 2018 14:05:57 +0000 (10:05 -0400)]
Update api repo
Add missing license and change version to 2.0.0. Remove ECOMP
reference.
Issue-ID: POLICY-771
Change-Id: If26d97d90df538a554308ef3bbf612a615f3da03
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jessica Wagantall [Tue, 1 May 2018 03:07:38 +0000 (20:07 -0700)]
Add INFO.yaml file
Add INFO.yaml to list:
- Project description
- Properties
- PTL information
- Meeting information
- Committer information
Change-Id: If94f6b9015a1d9b0e6cfe024edd4feb49ea17704
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
liamfallon [Wed, 14 Mar 2018 21:35:52 +0000 (21:35 +0000)]
Update oparent version to 1.1.0
Directive from ONAP project that all repos should be
updated. Change vierified with a build with .m2 /org/onap
cleared.
Issue-ID: POLICY-693
Change-Id: Ib5d977cfb557bb41036e07971caba3a58cc2d4a7
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Jessica Wagantall [Fri, 8 Sep 2017 21:31:14 +0000 (14:31 -0700)]
Cleanup project's name in Sonar
The name parameter in the root pom.xml should
match the project name in gerrit to reflect consistency
in Sonar.
Change-Id: I70551368bbe86a566926870888057d95d9abdcf1
Issue-id: CIMAN-65
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Pamela Dragosh [Fri, 8 Sep 2017 16:56:33 +0000 (12:56 -0400)]
Removing duplicate version entries
Eclipse generates warnings for these values which are set in oparent.
Issue-ID: POLICY-216
Change-Id: Ifac11893ff74f06c8a167111207e0c46005135dd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Tue, 15 Aug 2017 15:39:16 +0000 (11:39 -0400)]
Add distributionManagement for stage site
The stage-site jenkins job fails because it is missing this entry.
Issue-Id: POLICY-139
Change-Id: I0bd6755fe07e1c05f15acff17df2f819fda32561
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Tue, 15 Aug 2017 12:46:19 +0000 (08:46 -0400)]
Missing nexusproxy property
Forgot to add this property for the deploy to work.
Issue-Id: POLICY-139
Change-Id: I93fcc57c7a298edfe143ac39e8b4448a7e9d549a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Fri, 11 Aug 2017 15:55:51 +0000 (11:55 -0400)]
Add deploy staging configuration
Unfortunately the last release build went directly
to release. It should go to staging.
Change-Id: I7a6082f7de674dfc0a13ab90d0aefa6f65b70ea3
Issue-Id: POLICY-139
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Thu, 10 Aug 2017 13:40:16 +0000 (09:40 -0400)]
Add stage site properties
Issue-ID: POLICY-139
Change-Id: I123320dd0625544043e008beb73ec042cb900b4f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Wed, 9 Aug 2017 18:30:39 +0000 (14:30 -0400)]
Include version.properties for release job
The release job failed because it could not find the
version.properties file when doing the mvn deploy
command. Adding this file so the release job will
succeed.
Change-Id: I8753e3ba862faa2885948b988835d798b91a6860
Issue-ID: POLICY-139
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Thu, 3 Aug 2017 16:56:47 +0000 (12:56 -0400)]
First commit, adding parent pom
Issue-ID: POLICY-139
Change-Id: I4599d855b0c5e44e002dac67f683278457fcde81
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jessica Wagantall [Tue, 20 Jun 2017 05:12:39 +0000 (05:12 +0000)]
Initial empty repository