policy/pap.git
5 years agoMerge "Update INFO.yaml Liam's email"
Liam Fallon [Mon, 4 Mar 2019 14:04:58 +0000 (14:04 +0000)]
Merge "Update INFO.yaml Liam's email"

5 years agoMerge "Use Coder class"
Jorge Hernandez [Thu, 28 Feb 2019 18:03:15 +0000 (18:03 +0000)]
Merge "Use Coder class"

5 years agoUpdate INFO.yaml Liam's email 70/79370/1
Pamela Dragosh [Thu, 28 Feb 2019 15:24:56 +0000 (10:24 -0500)]
Update INFO.yaml Liam's email

est.tech

Issue-ID: POLICY-1556
Change-Id: I978b0df092c5bc2020ef16862d8653c230e3936b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoReference lombok from parent 63/79363/2
Pamela Dragosh [Thu, 28 Feb 2019 14:44:47 +0000 (09:44 -0500)]
Reference lombok from parent

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

Also must change this repo to point to correct policy/parent.

Issue-ID: POLICY-1547
Change-Id: I6530b7d34ba4f4bd826e07e9d27ec83d6be94b0d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoMerge "Add code to publish to PDP"
Jorge Hernandez [Thu, 28 Feb 2019 15:05:33 +0000 (15:05 +0000)]
Merge "Add code to publish to PDP"

5 years agoUse Coder class 07/79307/2
Jim Hahn [Wed, 27 Feb 2019 16:31:34 +0000 (11:31 -0500)]
Use Coder class

Modified existing PAP code to use the Coder class instead of Gson.

Change-Id: I770d0adf201d7c1118085f85c36582e1143deb08
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoAdd code to publish to PDP 16/79216/4
Jim Hahn [Tue, 26 Feb 2019 19:09:35 +0000 (14:09 -0500)]
Add code to publish to PDP

Added code to take an arbitrary object and send it to PDPs using a
topic sink.  Does not include the code or properties needed to
configure the topic.

Fixed method name - test case does not cover what the method name
implied.
Fixed some comments.

Add test to verify that the PdpClient works with a real TopicSink.

Moved coder classes to policy/common.

Change-Id: I4dec746b07d384c5d9d1449ca91fa39a4f680260
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoReplace static methods with single getInstance 18/79118/3
Jim Hahn [Mon, 25 Feb 2019 16:36:23 +0000 (11:36 -0500)]
Replace static methods with single getInstance

Some of the PAP classes use a number of static methods.  These have
been modified to use regular, non-static methods, a single static
method, getInstance.
Also modified PapStatisticsManager so its methods are thread safe.
Changed "instance" to "current" for the activator, as it may be changed.
Fix new checkstyle issues.
Updated copyrights.
Renamed test class to be consistent.
Added test for getCurrent/setCurrent and isAlive.

Change-Id: Id6df55fa4c116852032ad61f80f899fcd292f864
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoUse constants for http property names 52/79052/4
jh7358 [Fri, 22 Feb 2019 21:41:54 +0000 (16:41 -0500)]
Use constants for http property names

Modified the PAP REST server to use constants from policy-endpoints
instead of hard-coding property names.
Also made "alive" volatile.
Also modified to use standard gson as the serialization provider to
ensure that it will always work with gson.
Removed unneeded constant.
Removed trailing whitespace.
Replaced another literal with a constant name.
Updated licenses.

Change-Id: Ibfc6d19ad4dae62ebd610d6127d1d253175ae71e
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoMerge "Adds basic stability tests for Policy PAP"
Liam Fallon [Fri, 22 Feb 2019 10:40:53 +0000 (10:40 +0000)]
Merge "Adds basic stability tests for Policy PAP"

5 years agoAdds basic stability tests for Policy PAP 44/78944/1
Bilal A [Thu, 21 Feb 2019 16:31:02 +0000 (11:31 -0500)]
Adds basic stability tests for Policy PAP

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

Change-Id: I89bd11e1f10a2b6cdd3cf440654f3415f21f9edb
Issue-ID: POLICY-1460
Signed-off-by: Bilal A <bilal@research.att.com>
5 years agoAdd swagger annotations to PAP API's 60/78860/2
ramverma [Thu, 21 Feb 2019 11:21:10 +0000 (11:21 +0000)]
Add swagger annotations to PAP API's

Change-Id: I2adafa5957bb4ede76196c6ac887a45b3375ce48
Issue-ID: POLICY-1480
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoCreating package & docker image of policy/pap 45/78145/2
ramverma [Mon, 11 Feb 2019 15:20:09 +0000 (15:20 +0000)]
Creating package & docker image of policy/pap

1) Creating zip package of entire policy pap.
2) Creating docker image of policy pap.

Change-Id: I41bd705966e75e9cf501154da71f90d11ff2b3e1
Issue-ID: POLICY-1478
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoAdding statistics endpoint to policy/pap 92/78092/1
ramverma [Thu, 7 Feb 2019 21:52:23 +0000 (21:52 +0000)]
Adding statistics endpoint to policy/pap

1) Adding statistics endpoint to policy pap component.
2) Introducing lombok libraray.
3) Adding configurable support for aaf authentication.
4) Adding configurable support for https communication.
5) Adding related test cases.

Change-Id: Ib3131810c42fbd23878b97302da8d54f095da373
Issue-ID: POLICY-1482
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoAdding healthcheck endpoint to policy/pap 93/77793/2
ramverma [Tue, 5 Feb 2019 10:28:22 +0000 (10:28 +0000)]
Adding healthcheck endpoint to policy/pap

1) Adding healthcheck REST endpoint to policy/pap using the
policy-endpoints module in policy/common.
2) Added the related unit test cases.

Change-Id: I6a215cceccc9cd42494aef1dfcdd46f0f3fd7d13
Issue-ID: POLICY-1477
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoCreate basic structure of pap component 42/77642/1
ramverma [Thu, 31 Jan 2019 13:09:00 +0000 (13:09 +0000)]
Create basic structure of pap component

1) Creating the basic code structure of pap component which includes
main sub-module having Main, PapActivator, PapCommandLineArguments,
PapParameterGroup & PapParameterHandler. Along with few exception
classes. Basicalliy the structure follows the pattern developed in
policy/distribution component.

2) Created the related unit test cases and required test resources.

Change-Id: I67c82f9d072e6c8a306cb983accb693da70e58a2
Issue-ID: POLICY-1476
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoUpgrade policy/parent 2.0.0 46/71246/1
Pamela Dragosh [Thu, 25 Oct 2018 14:56:23 +0000 (10:56 -0400)]
Upgrade policy/parent 2.0.0

Policy parent v2.0.0

Issue-ID: POLICY-1213
Change-Id: I29ac8768b14072872da4a108173b9afd77230023
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoSetup checkstyle and coverage 77/68877/4
Pamela Dragosh [Tue, 25 Sep 2018 13:47:24 +0000 (09:47 -0400)]
Setup checkstyle and coverage

Added plugin management pieces for code coverage and
checkstyle for future development.

Added entries to gitignore for idea and checkstyle.

Removed redundant version.

Change-Id: Idca740a42b562e95319d5c196c1c3d5a0e16f214
Issue-ID: POLICY-1136
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoChanging artifactId for consistency 99/49499/1
ramverma [Wed, 30 May 2018 14:08:00 +0000 (15:08 +0100)]
Changing artifactId for consistency

Change-Id: I4e3a125a265c42d3987de09418aea54e4c9eb8d2
Issue-ID: POLICY-848
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
6 years agoChange pom to refer policy parent 49/48949/1
ramverma [Thu, 24 May 2018 13:23:19 +0000 (14:23 +0100)]
Change pom to refer policy parent

Change-Id: I32a2bc44ab87335738288de1b29c56339f4e17b4
Issue-ID: POLICY-848
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
6 years agoMerge "Update pap repo"
Pamela Dragosh [Tue, 1 May 2018 17:24:47 +0000 (17:24 +0000)]
Merge "Update pap repo"

6 years agoUpdate pap repo 47/45447/1
Pamela Dragosh [Tue, 1 May 2018 14:15:39 +0000 (10:15 -0400)]
Update pap repo

Updated license, readme and version to 2.0.0

Issue-ID: POLICY-771
Change-Id: I8b030a2733144bd7b117824dd4e02b10c687d39d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoAdd INFO.yaml file 71/45371/2
Jessica Wagantall [Tue, 1 May 2018 03:08:33 +0000 (20:08 -0700)]
Add INFO.yaml file

Add INFO.yaml to list:
- Project description
- Properties
- PTL information
- Meeting information
- Committer information

Change-Id: I96d1a9506d8fb811f7f164234c5c454c60b74368
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoUpdate oparent version to 1.1.0 45/35845/1
liamfallon [Wed, 14 Mar 2018 21:40:03 +0000 (21:40 +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.

Change-Id: I8f92975e5f112d64967ca0f2c1cfa5dab56d524d
Issue-ID: POLICY-693
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
6 years agoCleanup project's name in Sonar 11/11411/1
Jessica Wagantall [Fri, 8 Sep 2017 21:59:40 +0000 (14:59 -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: I817524eff0554b5f9684de7b595ba6da81b07c7c
Issue-id: CIMAN-65
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoRemoving duplicate version entries 41/11141/1
Pamela Dragosh [Fri, 8 Sep 2017 15:46:32 +0000 (11:46 -0400)]
Removing duplicate version entries

Seems oparent sets these and Eclipse dumps warnings that these are duplicates.

Issue-ID: POLICY-216
Change-Id: I006cc0d4d77b452896cc86b2cd0461c0e3161ab2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoAdd version.properties 49/7949/1
Pamela Dragosh [Thu, 17 Aug 2017 23:30:47 +0000 (19:30 -0400)]
Add version.properties

Need this for deploy

Issue-Id: POLICY-139
Change-Id: I12fc57cd208c3566cf4cb3d1fc5d874bdd9f861a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoAdd missing properties and distributionManagement 47/7847/1
Pamela Dragosh [Thu, 17 Aug 2017 14:29:36 +0000 (10:29 -0400)]
Add missing properties and distributionManagement

In order for the release jobs to execute successfully and the
stage-site jobs to also succeed.

Change-Id: I06be2aaee050517a5a04d7361190b554a4da0627
Issue-Id: POLICY-139
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoFirst commit, adding parent pom 61/6661/3
Pamela Dragosh [Thu, 3 Aug 2017 17:22:41 +0000 (13:22 -0400)]
First commit, adding parent pom

Issue-ID: POLICY-139
Change-Id: I93f9aa48a03d392028f5633a1bc6dd0ad8fd5ef3
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoInitial empty repository
Jessica Wagantall [Tue, 20 Jun 2017 05:13:41 +0000 (05:13 +0000)]
Initial empty repository