policy/apex-pdp.git
4 years agoMerge "Fix copy&paste typo in KeyedMapDifference"
Pamela Dragosh [Tue, 13 Aug 2019 15:42:29 +0000 (15:42 +0000)]
Merge "Fix copy&paste typo in KeyedMapDifference"

4 years agoFix copy&paste typo in AxEvent.compareTo 31/93031/2
Artem Naluzhnyy [Thu, 8 Aug 2019 09:41:05 +0000 (11:41 +0200)]
Fix copy&paste typo in AxEvent.compareTo

Coverity-scan: CID-229652
Issue-ID: POLICY-1961
Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com>
Change-Id: I29fa25d0ead6930dd47a0eed17d2a4dd6e489ee6

4 years agoMerge "Review maven dependency for snakeyaml"
Ram Krishna Verma [Fri, 9 Aug 2019 14:51:50 +0000 (14:51 +0000)]
Merge "Review maven dependency for snakeyaml"

4 years agoReview maven dependency for snakeyaml 04/93104/1
Bruno Sakoto [Thu, 8 Aug 2019 15:08:31 +0000 (11:08 -0400)]
Review maven dependency for snakeyaml

Remove explicit version for snakeyaml maven dependency and inherit it
from integration parent artifact.

Upgrade snakeyaml to latest 1.24 version.

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

4 years agoFix copy&paste typo in KeyedMapDifference 28/93028/1
Artem Naluzhnyy [Thu, 8 Aug 2019 09:32:53 +0000 (11:32 +0200)]
Fix copy&paste typo in KeyedMapDifference

Coverity-scan: CID-229696
Issue-ID: POLICY-1961
Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com>
Change-Id: I4ed17eb14310501cb5de864e8c62839a4d41b56c

4 years agoChange to fix PDP-A incorrectly going into ACTIVE state even during APEX engine failure 11/92911/2
a.sreekumar [Thu, 8 Aug 2019 08:57:34 +0000 (08:57 +0000)]
Change to fix PDP-A incorrectly going into ACTIVE state even during APEX engine failure

PDP-A goes to ACTIVE state even when the APEX engine failed to start.
This is fixed.

Change-Id: Iad4b45abf257f68267dd2526a624dc6d882c84af
Issue-ID: POLICY-1980
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoBump version of apex-pdp 47/92947/1
jrh3 [Wed, 7 Aug 2019 19:27:11 +0000 (15:27 -0400)]
Bump version of apex-pdp

Issue-ID: POLICY-1965
Signed-off-by: jrh3 <jrh3@att.com>
Change-Id: Icd437f10c4d991030652ffa1abf48b7b5738145c

4 years agoAdd release 2.2.1 file 37/92837/1
jhh [Tue, 6 Aug 2019 19:46:28 +0000 (14:46 -0500)]
Add release 2.2.1 file

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

4 years agoMerge "Fix typo in eventTab_activate()"
Jorge Hernandez [Tue, 6 Aug 2019 16:09:43 +0000 (16:09 +0000)]
Merge "Fix typo in eventTab_activate()"

4 years agoUpdate to latest common/models released versions 93/92693/3
jhh [Mon, 5 Aug 2019 14:43:50 +0000 (09:43 -0500)]
Update to latest common/models released versions

policy/models: 2.1.2
policy/common: 1.5.1

Change-Id: I2e4fa7d01468054b478668c2a2bbd34f6b6c03d8
Issue-ID: POLICY-1953
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoFix typo in eventTab_activate() 04/92204/3
Artem Naluzhnyy [Mon, 29 Jul 2019 13:24:02 +0000 (15:24 +0200)]
Fix typo in eventTab_activate()

Coverity-scan: CID-229736
Issue-ID: POLICY-1961
Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com>
Change-Id: I6149f2c13d6721a5e026bf8ceb901c2d20913f82

4 years agoUse new addTopic() method in apex-pdp 12/92312/1
jrh3 [Tue, 30 Jul 2019 19:50:13 +0000 (15:50 -0400)]
Use new addTopic() method in apex-pdp

Replaced ParameterUtils with the use of the new
addTopic(TopicParameterGroup) method.

Issue-ID: POLICY-1953
Signed-off-by: jrh3 <jrh3@att.com>
Change-Id: Ie1952c3bdf6d40834261029141ccb21edcdc1ad7

4 years agointegration test for execution property rest API 81/92081/4
ning.xi [Tue, 30 Jul 2019 00:31:18 +0000 (00:31 +0000)]
integration test for execution property rest API

Issue-ID: POLICY-1936
Change-Id: Ifc720cd320f5eced2f3c039b2ce6442387de240b
Signed-off-by: ning.xi <ning.xi@est.tech>
4 years agoUpdating scripts to support APEX CLI Tosca editor 92/92092/2
a.sreekumar [Fri, 26 Jul 2019 13:02:44 +0000 (13:02 +0000)]
Updating scripts to support APEX CLI Tosca editor

As per the new LifeCycle API, the policies are expected to be defined as
a ToscaServiceTemplate. Hence, the Apex CLIEditor is extended to support the tosca way.
Scripts to support these changes are added here.

Change-Id: I1d9e9607af10cbb258d5c9994342cc4622962a23
Issue-ID: POLICY-1885
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoExtend APEX CLIEditor to generate policy in ToscaServiceTemplate format 97/91797/5
a.sreekumar [Wed, 24 Jul 2019 09:35:31 +0000 (09:35 +0000)]
Extend APEX CLIEditor to generate policy in ToscaServiceTemplate format

Currently apex CLIEditor is used to generate a json policy model from
apex CLI language (.apex) file.
As per the new  LifeCycle API, the policies are expected to be defined
as ToscaServiceTemplate. Hence, the current CLIEditor is extended to
generate the policies in ToscaServiceTemplate way.

Change-Id: I2eb5d5b146643d40b623e329a2a63d6bb0c1fb42
Issue-ID: POLICY-1885
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoadd status filter in restclient and restrequestor 84/90884/16
Henry.Sun [Fri, 12 Jul 2019 15:49:30 +0000 (15:49 +0000)]
add status filter in restclient and restrequestor

Issue-ID: POLICY-1742
Change-Id: Ib4984b18c0353cddb12c13c352277728be691bf5
Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
4 years agoMerge "fix sonar issues in restclient/restrequest"
Jim Hahn [Fri, 12 Jul 2019 13:10:58 +0000 (13:10 +0000)]
Merge "fix sonar issues in restclient/restrequest"

4 years agofix sonar issues in restclient/restrequest 19/91319/1
ning.xi [Fri, 12 Jul 2019 08:02:09 +0000 (08:02 +0000)]
fix sonar issues in restclient/restrequest

Issue-ID: POLICY-1743
Change-Id: I2bd2224904e459d56f5802e8b5276823e7f5d454
Signed-off-by: ning.xi <ning.xi@est.tech>
4 years agoRemoving docs from apex-pdp repo 82/91282/1
ramverma [Thu, 11 Jul 2019 16:24:18 +0000 (16:24 +0000)]
Removing docs from apex-pdp repo

The documents are moved to policy/parent and hence removing them from
apex-pdp repo.

Change-Id: I479cf477e953049292dc9681f960ca965b90d591
Issue-ID: POLICY-1898
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
4 years agoMerge "Make URL configurable in REST Requestor/Client"
Jim Hahn [Thu, 11 Jul 2019 12:24:21 +0000 (12:24 +0000)]
Merge "Make URL configurable in REST Requestor/Client"

4 years agoMake URL configurable in REST Requestor/Client 78/90878/10
ning.xi [Thu, 11 Jul 2019 07:31:31 +0000 (07:31 +0000)]
Make URL configurable in REST Requestor/Client

Change-Id: Ifb9870636996d1af786f05fcef7aa811d6f57532
Issue-ID: POLICY-1743
Signed-off-by: ning.xi <ning.xi@est.tech>
4 years agoAdd integration tests for executor properties 58/91158/5
liamfallon [Wed, 10 Jul 2019 19:44:39 +0000 (19:44 +0000)]
Add integration tests for executor properties

Added integration test that sets properties in a dummy plugin and amends
them in tasks in a policy. Variosu tests added to check combinations of
where properties are set in plugins or in tasks or both.

Implementaiton changed to:
- Always pass in a Properies object, the properties object coming into
  the policy cannot be null because the task/TSL/SFL may wish to set it
- Fix a bug where the properties were not passed from the ApexEvent to
  the engine event in the ApexEventUnmarshaller class

Issue-ID: POLICY-1743
Change-Id: I6aa152b28d46cf3cc6fa56a1a95b76a8e55f5a49
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoMerge "Updating documentation with the topic.properties removal changes"
Ram Krishna Verma [Wed, 10 Jul 2019 09:18:15 +0000 (09:18 +0000)]
Merge "Updating documentation with the topic.properties removal changes"

5 years agoUpdating documentation with the topic.properties removal changes 95/91095/1
a.sreekumar [Tue, 9 Jul 2019 14:35:39 +0000 (14:35 +0000)]
Updating documentation with the topic.properties removal changes

Change-Id: Id770c0b4e16f4c8123b2bb2d0356aed75f9e54db
Issue-ID: POLICY-1744
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoFix typo in CLI editor error message 76/91076/3
liamfallon [Tue, 9 Jul 2019 12:29:34 +0000 (12:29 +0000)]
Fix typo in CLI editor error message

Issue-ID: POLICY-1897
Change-Id: I810c2550c6615d32b8d30148efc36a3660c3c1a5
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoFix apex-pdp due to sonar changes in common 42/91042/1
jrh3 [Mon, 8 Jul 2019 17:16:46 +0000 (13:16 -0400)]
Fix apex-pdp due to sonar changes in common

Fixed breakages due to changes made in policy/common to satisfy
sonar.

Issue-ID: POLICY-1791
Signed-off-by: jrh3 <jrh3@att.com>
Change-Id: I79ee847db2fc3c5af992af85b78ccaa587328463

5 years agoAdd duplicate check, examples for kafka Properties 43/90943/5
liamfallon [Fri, 5 Jul 2019 13:41:03 +0000 (13:41 +0000)]
Add duplicate check, examples for kafka Properties

Added checks for dealing with duplication of specification of properties
explicitly and in kafkaPropertes
Added examples for kafkaProperties
Added documentation for kafkaProperties

Issue-ID: POLICY-1818
Change-Id: Icbe01d6f1d25d4570dcc85cc3db28588743b9c41
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoApexPDP: Fixed jenkin failure in Nordix 95/90795/1
JohnKeeney [Tue, 2 Jul 2019 15:50:56 +0000 (15:50 +0000)]
ApexPDP: Fixed jenkin failure in Nordix
getLocalHost() fails in Nordix jenkins test build - misconfiguration of
nordix jenkins vms/containers

Change-Id: I726fc141ced07f15cfaa8a9815b4d090dbb74c9a
Issue-ID: POLICY-1879
Signed-off-by: JohnKeeney <John.Keeney@est.tech>
5 years agoFix security vulnerabilities in apex-pdp 73/90773/1
liamfallon [Tue, 2 Jul 2019 11:01:03 +0000 (11:01 +0000)]
Fix security vulnerabilities in apex-pdp

Upgraded the versions of avro, jquery and jgroups to versions
in order to remove security vulnerabilities.

Issue-ID: POLICY-1074
Change-Id: I412b9c951b061b19e6ae6edacf7b3785d4c7869b
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoMerge "ApexPDP: Adding support to omit the (context) albums entry in an apex policy...
Pamela Dragosh [Mon, 1 Jul 2019 18:15:50 +0000 (18:15 +0000)]
Merge "ApexPDP: Adding support to omit the (context) albums entry in an apex policy model if it is empty. Implemented as a pair of JAXB XMLAdaters Updated copyright, fixed somecheckstyle issues, refactored affected tests & Merge"

5 years agoMerge "Fix issues from Checkstyle reviews"
Ram Krishna Verma [Mon, 1 Jul 2019 15:21:39 +0000 (15:21 +0000)]
Merge "Fix issues from Checkstyle reviews"

5 years agoMerge "Bump apex-pdp to 2.2.1-SNAPSHOT"
Jim Hahn [Mon, 1 Jul 2019 15:09:23 +0000 (15:09 +0000)]
Merge "Bump apex-pdp to 2.2.1-SNAPSHOT"

5 years agoApexPDP: Adding support to omit the (context) albums entry in an apex 24/90724/3
JohnKeeney [Mon, 1 Jul 2019 14:46:49 +0000 (14:46 +0000)]
ApexPDP: Adding support to omit the (context) albums entry in an apex
policy model if it is empty. Implemented as a pair of JAXB XMLAdaters
Updated copyright, fixed somecheckstyle issues, refactored affected tests
& Merge

Issue-ID: POLICY-1802
Change-Id: Id68d9a524700f44c164939b7533f2d511b591e36
Signed-off-by: JohnKeeney <John.Keeney@est.tech>
5 years agoFix issues from Checkstyle reviews 47/90647/3
liamfallon [Mon, 1 Jul 2019 09:01:19 +0000 (09:01 +0000)]
Fix issues from Checkstyle reviews

Use lombok on fields in EnEvent.
Remove unnecessary code in BBS WebClient class
Address Sonar issue in Execurot class

Issue-ID: POLICY-1791
Change-Id: If07dc4529b121f8bfcd6ab1ae6c9def4774f9f4d
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoMerge "Remove topic.properties and incorporate into overall properties"
Ram Krishna Verma [Mon, 1 Jul 2019 08:57:52 +0000 (08:57 +0000)]
Merge "Remove topic.properties and incorporate into overall properties"

5 years agoBump apex-pdp to 2.2.1-SNAPSHOT 78/90678/1
Pamela Dragosh [Fri, 28 Jun 2019 17:51:45 +0000 (13:51 -0400)]
Bump apex-pdp to 2.2.1-SNAPSHOT

Released 2.2.0

Issue-ID: POLICY-1737
Change-Id: I144a3c07d3eaf8c53d339eecedf2b3d8d3ce3c7e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoRemove topic.properties and incorporate into overall properties 58/90658/1
a.sreekumar [Fri, 28 Jun 2019 11:36:58 +0000 (11:36 +0000)]
Remove topic.properties and incorporate into overall properties

1) The properties in the topic.properties file is moved into overall
config json file and the topic.properties file is removed.
2) Common parameters such as RestServer and Topic related parameters
from policy-common is used.

Change-Id: Ifc25185c8f717c95a226b2db25c1a8e96b9bbff9
Issue-ID: POLICY-1744
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoReplace non-Javadoc comments with inheritDocs 56/90656/1
liamfallon [Fri, 28 Jun 2019 10:42:34 +0000 (10:42 +0000)]
Replace non-Javadoc comments with inheritDocs

Copyright headers not changed as this review only amends comments.

Issue-ID: POLICY-1791
Change-Id: Icbeb2c6e591b3b160ae102bb67aef2d407924a4d
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoMerge "Add period after inheritDoc for Sonar"
Ram Krishna Verma [Thu, 27 Jun 2019 19:12:31 +0000 (19:12 +0000)]
Merge "Add period after inheritDoc for Sonar"

5 years agoMerge "Fix Sonar/Checkstyle issues in apex-pdp"
Ram Krishna Verma [Thu, 27 Jun 2019 19:12:16 +0000 (19:12 +0000)]
Merge "Fix Sonar/Checkstyle issues in apex-pdp"

5 years agoAdd period after inheritDoc for Sonar 05/90605/1
liamfallon [Thu, 27 Jun 2019 15:43:14 +0000 (15:43 +0000)]
Add period after inheritDoc for Sonar

Issue-ID: POLICY-1791
Change-Id: I60f65fb60ca77fe97bd1c23822038b835bd98a11
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoFix Sonar/Checkstyle issues in apex-pdp 93/90593/2
liamfallon [Thu, 27 Jun 2019 14:58:28 +0000 (14:58 +0000)]
Fix Sonar/Checkstyle issues in apex-pdp

BBS Java code introduced Sonar issues, these are resolved.
Also fixed checkstyle errors in other classes.
Also fiexed "unexpected type" eclipse errors.

Issue-ID: POLICY-1791
Change-Id: I3931051f0944c6d53745c8dd1db7cca4ee118f1c
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoAdd passthrough properties for APEX engine 39/90539/1
liamfallon [Wed, 26 Jun 2019 15:40:41 +0000 (15:40 +0000)]
Add passthrough properties for APEX engine

APEX event receiver and sender plugins sometimes need to exchange
information with tasks, especially in the case of REST communication.
This change enables passthrough of Properties from the event carrier
technology plugins to APEX task, task selection, and state finalizer
logics.

Apologies for the size of the review but this change involves passinng
the properties through all the APEX components, hence the large number
of small changes.

Issue-ID: POLICY-1742
Change-Id: I219fd69550f06702ef64adbb165fe7baac422e96
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoAllow Kafka plugin to take arbitrary properties 55/90455/2 2.2.0
liamfallon [Tue, 25 Jun 2019 16:10:25 +0000 (16:10 +0000)]
Allow Kafka plugin to take arbitrary properties

This change adds support for arbitrary Kafka properties to be passed to
Kafka through the Kafka plugin.

Issue-ID: POLICY-1818
Change-Id: I4389876286747b250c8abe492e9e31674a9483c9
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoUpgrade to released common and models 98/90398/1
Pamela Dragosh [Mon, 24 Jun 2019 15:44:03 +0000 (11:44 -0400)]
Upgrade to released common and models

Released common 1.5.0 and models 2.1.0

Issue-ID: POLICY-1737
Change-Id: I677d1c210869ea565fc4edd9c190567a6ad01642
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoReplace uses of getCanonicalName() with getName() in APEX 97/90297/1
a.sreekumar [Fri, 21 Jun 2019 11:21:14 +0000 (11:21 +0000)]
Replace uses of getCanonicalName() with getName() in APEX

Change-Id: Ifcd8866e65a7bc1238d5a4137f7bad288a5bfb3b
Issue-ID: POLICY-1861
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoUpgrade to release 3.0.0 parent 54/90254/2
Pamela Dragosh [Thu, 20 Jun 2019 20:23:14 +0000 (16:23 -0400)]
Upgrade to release 3.0.0 parent

Policy/parent released

Issue-ID: POLICY-1737
Change-Id: I55c99667e2775c934c7e1f41d2225facdecb121b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoEnable maven-checkstyle-plugin in apex-pdp 72/90172/3
a.sreekumar [Thu, 20 Jun 2019 09:39:59 +0000 (09:39 +0000)]
Enable maven-checkstyle-plugin in apex-pdp

Enable maven-checkstyle-plugin in apex-pdp/pom.xml to fail the build at warning level.
Fix all the existing check style issues in the component.

Change-Id: I4de9c1bd9ca5a2876de9086d2d3526cbdc25c080
Issue-ID: POLICY-1732
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoUse io.fabric8:docker-maven-plugin to build and push docker images 14/90014/3
Rashmi Pujar [Mon, 17 Jun 2019 14:34:49 +0000 (10:34 -0400)]
Use io.fabric8:docker-maven-plugin to build and push docker images

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

5 years agoFix junit tests in apex-pdp 45/90145/1
liamfallon [Wed, 19 Jun 2019 09:43:28 +0000 (09:43 +0000)]
Fix junit tests in apex-pdp

Sonar fix broke some of the junit tests for parameters; fixed those.

Issue-ID: POLICY-1791
Change-Id: If39472b9936d5312a1d4109ad83610f5913d3e34
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoPolicy JSON formatting issues in APEX 88/89888/1
a.sreekumar [Fri, 14 Jun 2019 13:07:14 +0000 (13:07 +0000)]
Policy JSON formatting issues in APEX

In APEX, the policy model currently needs to be escaped, otherwise
causes json formatting issues. This is fixed.

Change-Id: If9d5043acef0b175494be797fc7acd9c6c4f4494
Issue-ID: POLICY-1839
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoBBS APEX policy not updating PNF attachment point after relocation 96/89696/1
s00370346 [Tue, 11 Jun 2019 12:32:57 +0000 (18:02 +0530)]
BBS APEX policy not updating PNF attachment point after relocation

Issue-ID: POLICY-1835
Signed-off-by: s00370346 <swarup.nayak1@huawei.com>
Change-Id: I47473444b58fa3b064ba142ce13c5e3520adb8c7

5 years agoMerge "Removing rpm build option from apex-pdp"
Jorge Hernandez [Thu, 6 Jun 2019 18:56:10 +0000 (18:56 +0000)]
Merge "Removing rpm build option from apex-pdp"

5 years agoMerge "BBS Apex Policy vendor --> manufacturer and other"
Jorge Hernandez [Thu, 6 Jun 2019 18:55:40 +0000 (18:55 +0000)]
Merge "BBS Apex Policy vendor --> manufacturer and other"

5 years agoRemoving rpm build option from apex-pdp 26/89526/1
ramverma [Thu, 6 Jun 2019 14:44:52 +0000 (14:44 +0000)]
Removing rpm build option from apex-pdp

Removing the commented rpm profile from pom of apex-pdp-package-full as
the rpm build is no longer needed. Also, in ONAP build servers the rpm
package is missing which leads to build failure.
However, I have created a wiki under Policy R5 collboration area to
document the steps needed to generate a rpm build if needed in fture.

Change-Id: Ie3703f7bcf7b07d23c2d9de813583c29ea2af720
Issue-ID: POLICY-1121
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoBBS Apex Policy vendor --> manufacturer and other 10/89510/1
s00370346 [Thu, 6 Jun 2019 12:57:25 +0000 (18:27 +0530)]
BBS Apex Policy vendor --> manufacturer and other

Issue-ID: POLICY-1831
Signed-off-by: s00370346 <swarup.nayak1@huawei.com>
Change-Id: Ib1e60287c6209e1f16764d071e28facc75a12c6e

5 years agoFix apex docker chmod 77/89177/2
jrh3 [Tue, 4 Jun 2019 15:02:43 +0000 (11:02 -0400)]
Fix apex docker chmod

The chmod in the docker builder for my local VM does not appear to
support the "+x" style options. Modified the apex docker
file to use "755" instead.

Issue-ID: POLICY-1829
Signed-off-by: jrh3 <jrh3@att.com>
Change-Id: I99faa8a31e92243bcc28207afba40b2b680ba1bf

5 years agoRemove POLICY_APEX_PDP_HOME in Dockerfile 21/89121/1
shaoqiu [Mon, 3 Jun 2019 07:08:41 +0000 (07:08 +0000)]
Remove POLICY_APEX_PDP_HOME in Dockerfile

To use POLICY_HOME not POLICY_XXX_HOME

Issue-ID: POLICY-1702
Change-Id: I145164f662d2d0fdd94875e8bcacd4f7a669309a
Signed-off-by: shaoqiu <tim.huang@est.tech>
5 years agoBump apex-pdp to version 2.2.0 38/88938/1
Jim Hahn [Thu, 30 May 2019 17:04:05 +0000 (13:04 -0400)]
Bump apex-pdp to version 2.2.0

Issue-ID: POLICY-1747
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: Iba1c6a80917a37cc63e2250a32df40046df9ee4f

5 years agoUpdate Apex PDP Documentation 54/88354/1
a.sreekumar [Thu, 23 May 2019 13:44:09 +0000 (13:44 +0000)]
Update Apex PDP Documentation

Updating the Apex PDP documentation to support the new architecture.

Change-Id: Ice4d91080d57504d10db24ada08757ae3d03afd3
Issue-ID: POLICY-1682
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoUpdate INFO.yaml to add Jim and Ram 59/88259/1
liamfallon [Wed, 22 May 2019 14:42:18 +0000 (14:42 +0000)]
Update INFO.yaml to add Jim and Ram

Issue-ID: POLICY-1775
Change-Id: I5d3b555c6a089c7562d8b00584a5b3e2a616f880
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoupdate apexApps.sh to support JMX connection 55/88055/2
Hengye [Tue, 21 May 2019 02:51:57 +0000 (02:51 +0000)]
update apexApps.sh to support JMX connection

Issue-ID: POLICY-1781
Change-Id: Ic0dba48c67048dbafd4e2efa106b466f4dd4ca81
Signed-off-by: Hengye <yehui.wang@est.tech>
5 years agoStep snapshot version of apex-pdp 56/87856/1
liamfallon [Thu, 16 May 2019 09:46:58 +0000 (09:46 +0000)]
Step snapshot version of apex-pdp

Issue-ID: POLICY-1630
Change-Id: I6dfce7eb33d9bc41caabf6b8842377b486de672d
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoUpgrade to release policy/models 26/87726/1 2.1.0 4.0.0-ONAP
Pamela Dragosh [Wed, 15 May 2019 00:47:04 +0000 (20:47 -0400)]
Upgrade to release policy/models

Release 2.0.0

Issue-ID: POLICY-1630
Change-Id: I2ccca4576253d066e219c367097d98d9594730ea
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoUpgrade policy/parent & policy/common in apex-pdp 36/87536/1
ramverma [Mon, 13 May 2019 10:45:00 +0000 (10:45 +0000)]
Upgrade policy/parent & policy/common in apex-pdp

Change-Id: If8120ba787fbd721f334c6f4d19df8d168ba9182
Issue-ID: POLICY-1630
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoMerge "ONAP BBS Policy: CPE-Authentication event throwing error"
Pamela Dragosh [Thu, 9 May 2019 16:07:59 +0000 (16:07 +0000)]
Merge "ONAP BBS Policy: CPE-Authentication event throwing error"

5 years agoFix to accomodate recent changes in policy-models-tosca 48/87148/1
a.sreekumar [Tue, 7 May 2019 13:13:12 +0000 (13:13 +0000)]
Fix to accomodate recent changes in policy-models-tosca

Recent change in JpaToscaPolicy require corresponding changes in PDP-A as the code
was expecting a simple string earlier. This review contains the changes to fix
this

Change-Id: I3bbae264800b2c8bb8bdd61eae7b171028a85bc3
Issue-ID: POLICY-1739
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoONAP BBS Policy: CPE-Authentication event throwing error 83/86883/2
s00370346 [Fri, 3 May 2019 06:10:28 +0000 (11:40 +0530)]
ONAP BBS Policy: CPE-Authentication event throwing error

Issue-ID: POLICY-1734
Change-Id: I8d209afb67e9b46a7db516fce76977e679d7ab7b
Signed-off-by: s00370346 <swarup.nayak1@huawei.com>
5 years agoFix HTTPS configuration on PDP-A 95/86895/1
liamfallon [Fri, 3 May 2019 12:08:27 +0000 (12:08 +0000)]
Fix HTTPS configuration on PDP-A

This review enables HTTPS for health check on PDP-A

Issue-ID: POLICY-1732
Change-Id: I139a4c3ba043f978d1a75ae560037f713def1c1f
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoFix docker version for Apex 20/86720/1
liamfallon [Wed, 1 May 2019 14:53:46 +0000 (14:53 +0000)]
Fix docker version for Apex

Docker build is breaking, version of base alpine set in this
review. Changed to use version 1.4.0.

Issue-ID: INT-997
Change-Id: Icacb31e1fa9abef29930507fab7d53af125588e3
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoMerge "Rebase image on policy-base-alpine"
Liam Fallon [Tue, 30 Apr 2019 16:08:06 +0000 (16:08 +0000)]
Merge "Rebase image on policy-base-alpine"

5 years agoRebase image on policy-base-alpine 63/83463/4
Dmitry Puzikov [Mon, 25 Mar 2019 09:47:23 +0000 (10:47 +0100)]
Rebase image on policy-base-alpine

Issue-ID: INT-997
Change-Id: I1a39eaf9cc0fc546eafde10d0b81a90ed5d32b13
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
5 years agoUpdating the supportedPolicyTypes in config files 26/86526/1
a.sreekumar [Mon, 29 Apr 2019 14:06:04 +0000 (14:06 +0000)]
Updating the supportedPolicyTypes in config files

Changing the supportedPolicyTypes in apex-pdp configuration files
to "onap.policies.controlloop.operational.Apex"

Change-Id: Ie92d5284fbd80da48318ce7863471876ccb380bb
Issue-ID: POLICY-1632
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoMerge "ONAP BBS: Apex Nomadic ONT bug fixes"
Liam Fallon [Mon, 29 Apr 2019 11:43:01 +0000 (11:43 +0000)]
Merge "ONAP BBS:  Apex Nomadic ONT bug fixes"

5 years agoONAP BBS: Apex Nomadic ONT bug fixes 50/86150/7
s00370346 [Wed, 24 Apr 2019 13:40:05 +0000 (19:10 +0530)]
ONAP BBS:  Apex Nomadic ONT bug fixes

Issue-ID: DCAEGEN2-1237
Change-Id: Ibc1b5a221af5eb28799764498b2751d99f5764f3
Signed-off-by: s00370346 <swarup.nayak1@huawei.com>
5 years agoChanges to fix PDP-A not going to ACTIVE state 72/86272/2
a.sreekumar [Thu, 25 Apr 2019 12:29:06 +0000 (12:29 +0000)]
Changes to fix PDP-A not going to ACTIVE state

PDP-A state will now change to ACTIVE even when the policy list is
empty.
When the state is ACTIVE and PAP sends a PDP_UPDATE with policies, PDP-A
will start executing the policies.

Change-Id: Icb5b139939698920d4fa3991dcca33536c6caefc
Issue-ID: POLICY-1674
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoMerge "ONAP BBS: Apex Nomadic ONT bug fixes"
Jorge Hernandez [Mon, 22 Apr 2019 17:38:54 +0000 (17:38 +0000)]
Merge "ONAP BBS:  Apex Nomadic ONT bug fixes"

5 years agoONAP BBS: Apex Nomadic ONT bug fixes 25/85625/2
s00370346 [Wed, 17 Apr 2019 18:02:08 +0000 (23:32 +0530)]
ONAP BBS:  Apex Nomadic ONT bug fixes

Issue-ID: DCAEGEN2-1237
Change-Id: I739f8e55113793f5cd4d3b70e0a1296d775bb414
Signed-off-by: s00370346 <swarup.nayak1@huawei.com>
5 years agoAdd DMaaP sim configuration files 95/85595/1
liamfallon [Wed, 17 Apr 2019 13:58:47 +0000 (13:58 +0000)]
Add DMaaP sim configuration files

Add configurtion files that work with the DMaaP simulator.

Issue-ID: POLICY-1643
Change-Id: I719f9db4ec5273a32ba350811eb39b4238002341
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoMerge "ONAP BBS: Apex Nomadic ONT Policy Implementation"
Pamela Dragosh [Tue, 16 Apr 2019 16:05:51 +0000 (16:05 +0000)]
Merge "ONAP BBS: Apex Nomadic ONT Policy Implementation"

5 years agoBug fix as per Jim's comment 88/85488/2
a.sreekumar [Tue, 16 Apr 2019 15:32:46 +0000 (15:32 +0000)]
Bug fix as per Jim's comment

Changing the PdpUpdate already handled check back to previous code.

Change-Id: Icc195b5a8609fba8601dc151f62fdaf0c67b7be0
Issue-ID: POLICY-1632
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoMerge "One year cert with new component names"
Pamela Dragosh [Tue, 16 Apr 2019 13:34:38 +0000 (13:34 +0000)]
Merge "One year cert with new component names"

5 years agoMerge "Fix Security and Unit Test DB issues"
Pamela Dragosh [Tue, 16 Apr 2019 13:32:48 +0000 (13:32 +0000)]
Merge "Fix Security and Unit Test DB issues"

5 years agoFix Security and Unit Test DB issues 48/85448/2
liamfallon [Tue, 16 Apr 2019 11:20:08 +0000 (11:20 +0000)]
Fix Security and Unit Test DB issues

This review removes more links to the Zookeeper version 3.5.4-beta with
Zookeeper version 3.4.14.

It also replaces the Derby in-memory database with the H2 in memory
database for unit tests.

Issue-ID: POLICY-1540
Change-Id: Ic44f2e866644114b7c0cf66aac7e528017b8206b
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoChanges for RestServer support and some sonar fix 48/85348/3
a.sreekumar [Tue, 16 Apr 2019 09:40:48 +0000 (09:40 +0000)]
Changes for RestServer support and some sonar fix

1) Changes to add RestServer to the PDP-A for healthcheck.
2) Adding Junit testcases.
3) Fixing some sonar issues.
4) Fixing checkstyle issues.

Change-Id: I03530190c733432d219284dda9d9d4cc32ab0773
Issue-ID: POLICY-1632
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoOne year cert with new component names 79/85379/1
jhh [Mon, 15 Apr 2019 23:15:30 +0000 (18:15 -0500)]
One year cert with new component names

Change-Id: Ia3025f2a0eada4f53623bb45d5849ceddf368925
Issue-ID: POLICY-1580
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoONAP BBS: Apex Nomadic ONT Policy Implementation 27/84927/2
s00370346 [Wed, 10 Apr 2019 18:44:39 +0000 (00:14 +0530)]
ONAP BBS: Apex Nomadic ONT Policy Implementation

Issue-ID: DCAEGEN2-1237
Change-Id: I81831f6498b6c47c0a43215e0445c791b12dac6e
Signed-off-by: s00370346 <swarup.nayak1@huawei.com>
5 years agoFix security problem with Zookeeper 38/85338/1
liamfallon [Mon, 15 Apr 2019 15:31:55 +0000 (15:31 +0000)]
Fix security problem with Zookeeper

Issue-ID: POLICY-1540
Change-Id: I5c549a1dffb21b54c81a44ba69ca49cb24732558
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoChanges for packaging services-onappf and some refactoring 54/85054/2
a.sreekumar [Thu, 11 Apr 2019 16:56:29 +0000 (16:56 +0000)]
Changes for packaging services-onappf and some refactoring

1) Added the code for packaging PDP-A.
2) Updating the package names.
3) Updating the dependencies in services-onappf. Some dependencies can
be removed as they are brought in while packaging.
4) Some other minor changes.

Change-Id: Idf62d7854f3435806a9e8aa975138fbfd45e3ea8
Issue-ID: POLICY-1632
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoRemove hibernate from apex 02/84902/1
liamfallon [Wed, 10 Apr 2019 16:18:43 +0000 (16:18 +0000)]
Remove hibernate from apex

Issue-ID: POLICY-1368
Change-Id: I67f448fc9d89eef4829cd6f999f5c21ac8ebff12
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoMerge "Some changes and bug fixes for PdpMessage handling"
Jorge Hernandez [Wed, 10 Apr 2019 14:46:18 +0000 (14:46 +0000)]
Merge "Some changes and bug fixes for PdpMessage handling"

5 years agoFix Kafka partiion support in APEX 71/84871/1
liamfallon [Wed, 10 Apr 2019 12:52:37 +0000 (12:52 +0000)]
Fix Kafka partiion support in APEX

The kafka producer property ‘partitioner.class’ should be configurable via
the EngineConfig.json file so that a specialized or custom Kafka partitioner
can be used.

Issue-ID: POLICY-1627
Change-Id: Ic36ccdf3d244ab932b58c3e2ae1cd668249726c5
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoSome changes and bug fixes for PdpMessage handling 46/84746/1
a.sreekumar [Tue, 9 Apr 2019 20:48:32 +0000 (20:48 +0000)]
Some changes and bug fixes for PdpMessage handling

1) Updating pom file of services-onappf to fix dependency related
issues.
2) Some changes to accomodate recent updates.
3) Fix for some issues identified during testing.

Change-Id: I8150ed9858902ebbe12321a793770df3fdc7e773
Issue-ID: POLICY-1453
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoChanges to handle PdpUpdate and PdpStateChange messages 57/84257/5
a.sreekumar [Mon, 8 Apr 2019 12:38:21 +0000 (12:38 +0000)]
Changes to handle PdpUpdate and PdpStateChange messages

1) Adding listeners and handlers for PdpUpdate messages.
2) Adding listeners and handlers for PdpStateChange messages.
3) Some changes to accomodate recent changes in the models.
4) Test cases.

Change-Id: I66644d94fd2a242738d9b0f78e5d0ece76342057
Issue-ID: POLICY-1453
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoChanges to send pdp status messages 97/83597/3
a.sreekumar [Tue, 2 Apr 2019 09:09:51 +0000 (09:09 +0000)]
Changes to send pdp status messages

1) Adding handlers to create and send pdp status messages from apex-pdp.
2) Changes to read initial pdp status parameters from configuration
file.
3) Adding test cases.

Change-Id: Id2d1caa8abc124865a9ef8fbfe4d9f751e4491b5
Issue-ID: POLICY-1452
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoMerge "Change vCPE example to use POJOs"
Liam Fallon [Mon, 1 Apr 2019 00:35:11 +0000 (00:35 +0000)]
Merge "Change vCPE example to use POJOs"

5 years agoChange vCPE example to use POJOs 86/69986/31
liamfallon [Mon, 8 Oct 2018 12:36:31 +0000 (13:36 +0100)]
Change vCPE example to use POJOs

This review uses POJOs rather than Avro schema to unmarshal
and marshal events from and to DMaaP.

The POJO classes for interacting with DMaaP have been moved into
a common policy module.

This review is now ready for full review (finally!).

Issue-ID: POLICY-954
Change-Id: Ibb89d8af5b9006821e6a0a756e16bbe3815af15a
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Signed-off-by: liamfallon <liam.fallon@est.tech>
Signed-off-by: Liam Fallon <liam.fallon@est.tech>
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoAdding services-onappf module to apex-pdp 55/83355/1
a.sreekumar [Tue, 26 Mar 2019 13:54:45 +0000 (13:54 +0000)]
Adding services-onappf module to apex-pdp

1) Adding services-onappf module to apex-pdp.
2) Following the code base from policy/pap to build the module.
3) Currently PAP is using property & configuration file for bootstrap.
Continuing the same in this module as well.
4) Adding relevant test cases.

Change-Id: Id9740ea60ae3ecbd88e5d6d3586ee0dde1054cca
Issue-ID: POLICY-1452
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
5 years agoFix checkstyle/Sonar issues on juint/sonar fixes 71/82671/1
liamfallon [Tue, 19 Mar 2019 12:52:20 +0000 (12:52 +0000)]
Fix checkstyle/Sonar issues on juint/sonar fixes

Recent changes to increase code coverage and fox Sonar bugs have
introduced checkstyle and further Sonar issues. This review
cleans those up.

Issue-ID: POLICY-1523
Change-Id: I829217ef77d52e57f9713cfeee5b122e1f25efbc
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoUse Assertions class from policy-common 72/79372/4
liamfallon [Tue, 19 Mar 2019 01:16:38 +0000 (01:16 +0000)]
Use Assertions class from policy-common

Change import line in all classes that use
the Assertions class, there are a lot of them.

Issue-ID: POLICY-1264
Change-Id: I8480264be4e36348b3fc63acf1bc36e9c9dd250b
Signed-off-by: liamfallon <liam.fallon@est.tech>