summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
Jim Hahn [Fri, 29 Mar 2019 22:36:56 +0000 (18:36 -0400)]
Add mapper class
Added class to map between classes in models-pap and models-pdp.
Used constants in appropriate places.
Re-use maker functions.
Added some comment.
Corrected a comment.
Added mapping method for PdpDeployPolicies.
Added PdpDeployPolicies to "internal" package.
Updated to reflect refactoring of ToscaPolicy.
Fixed bug/typo in assertEquals test.
Updated tests to work with models-pdp not based on PfConceptKey.
Change-Id: I31cd4aaf58fa7dc39cea76349cc1337637a1b786
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Fri, 29 Mar 2019 13:57:17 +0000 (09:57 -0400)]
Fix issues with timer manager junits
Attempt to fix intermittent issues with junit tests for timer manager.
Eliminated duplicate method in junit test and renamed another method.
Always release a semaphore, just to be sure.
Logged different message depending whether timer is cancelled or expired.
Locked access to the current time to prevent the timer thread from
accessing it while registering a new timer.
Change-Id: Icb499acb18197fd8042eb186f88b61d5c30daeb0
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
ramverma [Wed, 27 Mar 2019 16:27:36 +0000 (16:27 +0000)]
Adding db provider parameters to pap config file
Change-Id: I573a345bcf69eb40782277f211fff2b7c69c4f55
Issue-ID: POLICY-1443
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Jim Hahn [Wed, 27 Mar 2019 13:07:37 +0000 (09:07 -0400)]
Add and register DAO provider wrapper
Added a DAO provider wrapper supporting a single create() method
to create a DAO provider. PapActivator registers it at start-up.
Commented out some junit timer tests that seem to fail intermittently -
doesn't impact code coverage.
Removed TODO from close() method.
Change-Id: Ie3abd7c7a4f9ffa7aa086609515a0bb3891585d9
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Sun, 24 Mar 2019 12:13:58 +0000 (08:13 -0400)]
Add components for PDP communication
Added PAP DAO interfaces.
Added Publisher.
Added TimerManager.
Added RequestDataParams.
Added PdpModifyRequestMapParams.
Added RequestData.
Added PdpModifyRequestMapTest.
Updated timer test.
Extracted nested MessageData classes into their own files.
Addressed merge conflict.
Removed unneeded methods from PapActivator.
Fixed mismatchint action name.
Change-Id: I3aebef68a62b48d9154dd7a4c4ff366f9914717c
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Sun, 24 Mar 2019 12:13:58 +0000 (08:13 -0400)]
Changes to PAP infrastructure to support PDP
Modified PapActivator to implement the Startable interface and used
that to manage it instead of the original method names.
Replaced pdp-common enums with models-pdp enums.
Added the use of the Registry.
Added parameters to be used for PDP interaction.
Added DAO interface classes.
Modified HTTP client, in junit tests, to use GSON instead of Jackson.
Removed DAO code, as the interfaces are not merged into policy/common
yet.
Added pdpParameters to default json config file.
Changed tabs to spaces in json files.
Removed "internal" classes that were moved to models-pdp.
Change-Id: I969a7747e926680ad403557b44a0a52d289fb6d9
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
ramverma [Wed, 20 Mar 2019 15:05:45 +0000 (15:05 +0000)]
Adding query & state change PAP REST API's
Change-Id: I861ace4811032314c3ce2c3f227f17354e127e5e
Issue-ID: POLICY-1541
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Jorge Hernandez [Sun, 17 Mar 2019 05:24:34 +0000 (00:24 -0500)]
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 some other libraries to aid when debugging
Change-Id: I0f5cbe5792038cf569940a1b32c109c9dd1e66cc
Issue-ID: POLICY-1604
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
Pamela Dragosh [Sat, 16 Mar 2019 14:56:13 +0000 (14:56 +0000)]
Merge "Update INFO.yaml file"
Jorge Hernandez [Sat, 16 Mar 2019 14:51:45 +0000 (14:51 +0000)]
Merge "Add additional constructors to Exception classes"
Jessica Wagantall [Fri, 15 Mar 2019 20:54:13 +0000 (13:54 -0700)]
Update INFO.yaml file
Update missing information blocks and
indentation to pass verify job.
Change-Id: I03eecae246a9da24c82d60aae19cce12b1f62d0b
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Jim Hahn [Fri, 15 Mar 2019 17:23:57 +0000 (13:23 -0400)]
Updates to PDP deploy/undeploy per Ram's comments
Change-Id: Ic038ec8571cb50918c5f0d63602112ca05233629
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Fri, 15 Mar 2019 17:28:08 +0000 (13:28 -0400)]
Add additional constructors to Exception classes
Modified test class to use auto-tester.
Updated comments.
Updated licenses.
Change-Id: I993d0b78f31d15e6e6c35b701ed801616708628a
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Wed, 13 Mar 2019 21:58:17 +0000 (17:58 -0400)]
Add simple deploy/undeploy REST API
Change-Id: I4b789bfe4f92dae930f3675c6648b90f3c9fc9e4
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Tue, 12 Mar 2019 15:53:22 +0000 (11:53 -0400)]
Add PDP Group Deploy and Delete REST API stubs
Note: this will not build until the models-pap code has been added.
Added PDP group Delete methods, with and without version.
Added checks for OK status codes.
Added topic configuration.
Still does not have the "simplified" PDP Group deploy/undeploy.
Still won't build without "Move PDP Group classes to concepts subdirectory".
Will add junit tests for code changes in another review.
Updated comments about unlocking after updates.
Made ServiceManager final.
Included topic start/stop actions.
Fixed parameter comment.
Removed unneeded parameters from json files.
Fixed argument test in shell script.
Updated licenses.
Change-Id: I6176d51918ae758e04fb68562dc9ca70534137d4
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jorge Hernandez [Thu, 7 Mar 2019 16:10:34 +0000 (16:10 +0000)]
Merge "Refactor REST server tests"
Jorge Hernandez [Thu, 7 Mar 2019 14:53:45 +0000 (14:53 +0000)]
Merge "Use Alpine as base docker image in /policy/pap"
Jim Hahn [Wed, 6 Mar 2019 16:03:57 +0000 (11:03 -0500)]
Refactor REST server tests
Refactored the REST server tests so that each controller has
its own test class.
Also ensure things are shutdown by various tests.
Added comments.
Removed unneeded constant.
Updated license.
Modified code that restarts the REST server during tests.
Modified code to just change the activator's "alive" state to
false, leaving the REST server running.
Fixed comment.
Allocated server port.
Removed file that should not have been included.
Changed code to throw exceptions if activator methods are called while
in the wrong state.
Change-Id: I04a3a6654150797c23b3c86a6a39ecf8bb7f5a78
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Pamela Dragosh [Wed, 6 Mar 2019 16:33:58 +0000 (16:33 +0000)]
Merge "Use request id instead of PDP name in listener"
Jim Hahn [Tue, 5 Mar 2019 22:19:33 +0000 (17:19 -0500)]
Use request id instead of PDP name in listener
Modified the listener that receives messages from the PDPs
to use the request id instead of the PDP name for tracking
purposes.
Modified the listener to make it more generic so any arbitrary ID
can be used, depending on the context.
Combined extractId into handleEvent.
Corrected a comment.
Change-Id: I6b7097c67d73f51b78ae4063341bcb118eb14bbc
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
ning.xi [Wed, 6 Mar 2019 03:24:28 +0000 (03:24 +0000)]
Use Alpine as base docker image in /policy/pap
Issue-ID: POLICY-1553
Change-Id: Ie69d32c0d8c23ff2fadeb074e654f20c1acbdf76
Signed-off-by: ning.xi <ning.xi@est.tech>
Jim Hahn [Tue, 5 Mar 2019 20:15:28 +0000 (15:15 -0500)]
Refactor PAP REST controller
Split health check and statistics REST controllers out of the
PAP REST controller and made PAP REST controller into a superclass.
Change-Id: I6f492c9fd5d058d81143ed34d70760dbd05a5770
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Wed, 27 Feb 2019 20:35:22 +0000 (15:35 -0500)]
Receive PDP status messages
Added infrastructure code to facilitate receipt and tracking of
PDP status messages.
Removed temporary PdpStatus class.
Use variable for pdp-common version.
Change-Id: Id76c45f26b6d9f5eb9395332b637a0b1e90bc496
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
Liam Fallon [Mon, 4 Mar 2019 14:04:58 +0000 (14:04 +0000)]
Merge "Update INFO.yaml Liam's email"
Jorge Hernandez [Thu, 28 Feb 2019 18:03:15 +0000 (18:03 +0000)]
Merge "Use Coder class"
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>
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>
Jorge Hernandez [Thu, 28 Feb 2019 15:05:33 +0000 (15:05 +0000)]
Merge "Add code to publish to PDP"
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>
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>
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>
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>
Liam Fallon [Fri, 22 Feb 2019 10:40:53 +0000 (10:40 +0000)]
Merge "Adds basic stability tests for Policy PAP"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Pamela Dragosh [Tue, 1 May 2018 17:24:47 +0000 (17:24 +0000)]
Merge "Update pap repo"
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>
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>
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>
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>
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>
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>
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>
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>
Jessica Wagantall [Tue, 20 Jun 2017 05:13:41 +0000 (05:13 +0000)]
Initial empty repository