policy/apex-pdp.git
4 years agoMerge "Point to release versions of policy/parent and policy/common"
Pamela Dragosh [Fri, 6 Dec 2019 21:09:23 +0000 (21:09 +0000)]
Merge "Point to release versions of policy/parent and policy/common"

4 years agoPoint to release versions of policy/parent and policy/common 32/99232/4
HOCKLA [Thu, 5 Dec 2019 20:24:04 +0000 (14:24 -0600)]
Point to release versions of policy/parent and policy/common

Issue-ID: POLICY-1583
Change-Id: I5dd6f77991bd5e8419176ea4cba751f58c05d501
Signed-off-by: HOCKLA <ah999m@att.com>
4 years agoMerge "Minor changes for new Eclipse checkstyle checks"
Pamela Dragosh [Fri, 6 Dec 2019 14:08:23 +0000 (14:08 +0000)]
Merge "Minor changes for new Eclipse checkstyle checks"

4 years agoAPEX-PDP remove supported policy types from heartbeat 16/99216/1
a.sreekumar [Thu, 5 Dec 2019 16:01:40 +0000 (16:01 +0000)]
APEX-PDP remove supported policy types from heartbeat

Change-Id: Iafd2e2625cfabd89480ca1807eb1607788b30899
Issue-ID: POLICY-2235
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoMinor changes for new Eclipse checkstyle checks 26/99126/5
liamfallon [Wed, 4 Dec 2019 09:20:04 +0000 (09:20 +0000)]
Minor changes for new Eclipse checkstyle checks

The laest Eclipse checkstyle version 8.26.0 does more thorough checking
and identified a number of small issues in the apex-pdp codebase. This
review fixes those issues.

Issue-ID: POLICY-1913
Change-Id: I30ba25e3e425c6d54c77f925e8da3ab841a8357c
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoReplace getCaononicalName() with getName() in code base 97/98897/2
liamfallon [Wed, 27 Nov 2019 13:32:45 +0000 (13:32 +0000)]
Replace getCaononicalName() with getName() in code base

Issue-ID: POLICY-1861
Change-Id: Iccbdcbc5b5978305c56ab74c01a52a562697bee1
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoReduce verbosity of logging during unit test 59/98859/1
liamfallon [Tue, 26 Nov 2019 14:31:28 +0000 (14:31 +0000)]
Reduce verbosity of logging during unit test

Logging dialled back in logback.xml files and on ligging statements in
unit test java code.

Issue-ID: POLICY-2272
Change-Id: I3b9a46d8993b1571c8dc62687a9c136af46c1f51
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "Fixing Junit test cases causing too much logs output during APEX build"
Ram Krishna Verma [Tue, 26 Nov 2019 13:55:31 +0000 (13:55 +0000)]
Merge "Fixing Junit test cases causing too much logs output during APEX build"

4 years agoMerge "Update vCPE example for A&AI custom query"
Ram Krishna Verma [Tue, 26 Nov 2019 13:55:03 +0000 (13:55 +0000)]
Merge "Update vCPE example for A&AI custom query"

4 years agoFixing Junit test cases causing too much logs output during APEX build 50/98850/1
a.sreekumar [Mon, 25 Nov 2019 18:00:22 +0000 (18:00 +0000)]
Fixing Junit test cases causing too much logs output during APEX build

Change-Id: If0ad9c6b3a0f19ff3711d6230eb64e0dca1c1ef1
Issue-ID: POLICY-2272
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoUpdate vCPE example for A&AI custom query 72/98772/2
liamfallon [Fri, 22 Nov 2019 17:09:57 +0000 (17:09 +0000)]
Update vCPE example for A&AI custom query

The change in policy-models to use custom queries means that the named
queries used in apex examples must be updated to use custom queries.
This review is the second of two reviews to implement this change.

This patch updates the policy and its associated tests to work with A&AI
custom queries.

Issue-ID: POLICY-2125
Change-Id: I6a5b90002e43272e3cf296158f09f91a0f6d6907
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoBuild tar.gz without requiring docker image build 36/98636/3
jhh [Tue, 19 Nov 2019 22:48:24 +0000 (16:48 -0600)]
Build tar.gz without requiring docker image build

This allows the tar.gz to be released by LF jobs.

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

4 years agoApex PDP change to add PDP group 29/98729/1
a.sreekumar [Tue, 19 Nov 2019 17:00:59 +0000 (17:00 +0000)]
Apex PDP change to add PDP group

Change-Id: I6cff921bdc65fe505c0b5e7dba94a6cf9aa3ba91
Issue-ID: POLICY-2234
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoUpdate vCPE example for A&AI custom query 14/98714/1
liamfallon [Thu, 21 Nov 2019 13:52:37 +0000 (13:52 +0000)]
Update vCPE example for A&AI custom query

The change in policy-models to use custom queries means that the named
queries used in apex examples must be updated to use custom queries.
This review is the first of two reviews to implement this change. I
thcnages the A&AI simulator, which will allow the apex-pdp to build
again. A further change will bring in the policy changes to get the
example implementation fixed.

Issue-ID: POLICY-2125
Change-Id: I833c351b43995e648288cdf1c87c0abbe7a671cc
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoFix JRuby interpreter shutdown issue 50/98450/1
liamfallon [Fri, 15 Nov 2019 13:40:08 +0000 (13:40 +0000)]
Fix JRuby interpreter shutdown issue

The new version of JRuby fixes this issue. Also amended unit test to
check for shutdown and immediate recreation of JRuby interpreter.

Issue-ID: POLICY-1276
Change-Id: I723e0396985d3163b483e52fdaceb4b4fab7274b
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoRetaining context in APEX Engine based on policies received in PdpUpdate 13/98313/2
a.sreekumar [Tue, 5 Nov 2019 14:37:09 +0000 (14:37 +0000)]
Retaining context in APEX Engine based on policies received in PdpUpdate

Change-Id: I73fad5bf76ed6b4979f5ab76013f204ea82da30b
Issue-ID: POLICY-2215
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoMerge "Do not hardcode io.fabric8 plugin"
Pamela Dragosh [Mon, 11 Nov 2019 16:32:59 +0000 (16:32 +0000)]
Merge "Do not hardcode io.fabric8 plugin"

4 years agoDo not hardcode io.fabric8 plugin 06/98206/1
Pamela Dragosh [Fri, 8 Nov 2019 19:54:12 +0000 (14:54 -0500)]
Do not hardcode io.fabric8 plugin

policy/parent now has this plugin defined

Issue-ID: POLICY-2222
Change-Id: I2cc318e0f46f1ae9b9bda23a160c6db55003eca9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoFix vCPE example apex-pdp policy 61/98161/1
liamfallon [Thu, 7 Nov 2019 21:33:12 +0000 (21:33 +0000)]
Fix vCPE example apex-pdp policy

The changes in policy-models for appclcm had knock-on impacts on the
apex-pdp example policies. This patch fixes the vCPE policy to comply
with the new APPCLCM POJOs.

Issue-ID: POLICY-2043
Change-Id: Ieebc2cf97a05efde560a2f5a819924ff63dfd695
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "Fixing multiple policies with optional event fields fails execution in APEX"
Pamela Dragosh [Tue, 5 Nov 2019 12:21:42 +0000 (12:21 +0000)]
Merge "Fixing multiple policies with optional event fields fails execution in APEX"

4 years agoUse jersey dependencies from policy-endpoints 24/97924/1
liamfallon [Mon, 4 Nov 2019 18:07:20 +0000 (18:07 +0000)]
Use jersey dependencies from policy-endpoints

There is no need to have Jersey dependencies in the PDP POMs as they are
inherited from the policy-endpoints POM.

Issue-ID: POLICY-2209
Change-Id: I5c53e7b29f4df25fd730f7a521e149e4ee70d964
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoFixing multiple policies with optional event fields fails execution in APEX 18/97918/1
a.sreekumar [Mon, 4 Nov 2019 15:40:46 +0000 (15:40 +0000)]
Fixing multiple policies with optional event fields fails execution in APEX

Policy execution fails when multiple policy models are running and the policies have optional fields.

Change-Id: Ifb1a45a25e3a88b8707fb8b76f8279b6ec0b91ce
Issue-ID: POLICY-2211
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoAdd common Jersey version 47/97847/3
liamfallon [Fri, 1 Nov 2019 11:47:21 +0000 (11:47 +0000)]
Add common Jersey version

Add a common version of Jersey for all Policy Framework components.

Issue-ID: POLICY-2209
Change-Id: I6282bc9938cbb63ddf3bf85e488f7b6be0dbdfc3
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoResolve mapping between TOSCA policies and APEX policy models 83/97383/8
a.sreekumar [Wed, 16 Oct 2019 10:46:21 +0000 (11:46 +0100)]
Resolve mapping between TOSCA policies and APEX policy models

Change-Id: Ifaedc5074bcc51a5d495e342feae89b6a2aac1cf
Issue-ID: POLICY-1626
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoUse updated APPC model code in apex vcpe example 94/97394/2
liamfallon [Mon, 21 Oct 2019 18:59:22 +0000 (19:59 +0100)]
Use updated APPC model code in apex vcpe example

The APPC implementation was changed in a recent review, this review
fixes the apex vcpe example to use this new model.

Also fixes an an issue in the CLI editor where escape characters are not
now required in example JSON.

Issue-ID: POLICY-2043
Change-Id: Id251948c9de27f73ba48cec498e68a43f71c4062
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoTemporarily enable trace in startup script 20/97620/1
jhh [Fri, 25 Oct 2019 17:57:38 +0000 (12:57 -0500)]
Temporarily enable trace in startup script

No kubernetes logs are produced at start up.
This will be used temporarily to trace execution of
the initialization script.

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

4 years agooverride cert stores 90/97290/1
jhh [Thu, 17 Oct 2019 20:29:19 +0000 (15:29 -0500)]
override cert stores

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

4 years agoreplace grizzly server with policy common endpoint 91/96991/4
Henry.Sun [Wed, 9 Oct 2019 10:02:56 +0000 (18:02 +0800)]
replace grizzly server with policy common endpoint

Issue-ID: POLICY-1915
Change-Id: I8702a8b54e158dfd0ac08140ca083f14f23963a2
Signed-off-by: Henry.Sun <henry.a.sun@est.tech>
4 years agoAdd example for creating apex policy in Tosca format 75/96475/2
a.sreekumar [Tue, 1 Oct 2019 14:32:25 +0000 (15:32 +0100)]
Add example for creating apex policy in Tosca format

Change-Id: I30e7d162a2aecdfe5c51e920b48d659130ae74e4
Issue-ID: POLICY-2127
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoChanging APEX PDP logging similar to other Policy components 19/96419/1
a.sreekumar [Mon, 30 Sep 2019 11:21:21 +0000 (12:21 +0100)]
Changing APEX PDP logging similar to other Policy components

Change-Id: I73dcfd581f82b5aa633b1f777166cdd3fa7a3b93
Issue-ID: POLICY-2062
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoFix typos in dependencies 30/96230/1
liamfallon [Wed, 25 Sep 2019 13:13:37 +0000 (15:13 +0200)]
Fix typos in dependencies

Dependencies were spelt incorrectly in the dependency management section
of the main apex-pdp POM.

Issue-ID: POLICY-2115
Change-Id: I622dafe9f74b82dcc1c094eaee4ec113fe7f9c99
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpgrade dependency versions for security 23/95923/2
liamfallon [Wed, 18 Sep 2019 14:23:06 +0000 (15:23 +0100)]
Upgrade dependency versions for security

This change upgrades dependencies to versions that ve no or lesser
security issues than the current versions.

Issue-ID: POLICY-1644
Change-Id: Ib6dc8193c8da2547046791d82956019e0c741544
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUse snapshot version of models in apex-pdp 28/96028/1
jrh3 [Thu, 19 Sep 2019 19:14:12 +0000 (15:14 -0400)]
Use snapshot version of models in apex-pdp

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

4 years agoUpgrade jquery to 3.4.1 in jquery-ui 01/95901/1
liamfallon [Wed, 18 Sep 2019 09:39:55 +0000 (10:39 +0100)]
Upgrade jquery to 3.4.1 in jquery-ui

Jquery 3.3.1 is embedded in jquery-ui 1.12.1. This review replaces the
embedded jquery with version 3.4.1. This change is to remove security
vulnerabilities in jquery 3.3.1.

Issue-ID: POLICY-2083
Change-Id: I132dd83d2fc5add7df9988e21c663c17c5993aeb
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "Disable Jython Excutor for security"
Liam Fallon [Mon, 16 Sep 2019 12:57:34 +0000 (12:57 +0000)]
Merge "Disable Jython Excutor for security"

4 years agoDisable Jython Excutor for security 93/95693/2
liamfallon [Sat, 14 Sep 2019 11:39:25 +0000 (12:39 +0100)]
Disable Jython Excutor for security

The Jython interpreter pulls in many dependencies that are flagged as
having security problems. We will disable Python support in apex-pdp
until Frankfurt, users can compile from source if they wish to re-enable
python support.

Issue-ID: POLICY-1509
Change-Id: I84215ba8d1009cb7af99cd98ba19008fdff5c378
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoBump version in apex-pdp master 85/95585/1
jrh3 [Thu, 12 Sep 2019 14:07:06 +0000 (10:07 -0400)]
Bump version in apex-pdp master

Also added defaultbranch to the .gitreview file to make it easier
to change it when apex-pdp is branched in the future.

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

4 years agoRelease apex-pdp 2.2.2 94/95294/2 5.0.0-ONAP
Pamela Dragosh [Tue, 10 Sep 2019 01:02:41 +0000 (21:02 -0400)]
Release apex-pdp 2.2.2

Releasing 2.2.2

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

Released parent, common and models.

Issue-ID: POLICY-2045
Change-Id: Ia812c58673a1e271a3cf84c6b78e7274ef126e62
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoEnable https support in ApexRestServer 16/94416/5
a.sreekumar [Tue, 3 Sep 2019 14:44:15 +0000 (14:44 +0000)]
Enable https support in ApexRestServer

Enable https support in ApexRestServer by using the RestServer from policy-common

Change-Id: I3dc8d88a499dfa9f0a82585a083526e236420c6e
Issue-ID: POLICY-2016
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoadd unit test for tools-common 16/94316/1
shaoqiu [Tue, 27 Aug 2019 01:30:48 +0000 (01:30 +0000)]
add unit test for tools-common

Issue-ID: POLICY-1992
Change-Id: I6935b24b11ce62a18ae3d45795ff53cb4fa60f8b
Signed-off-by: shaoqiu <tim.huang@est.tech>
4 years agoupdate keystore 72/94172/2
jhh [Fri, 23 Aug 2019 03:34:09 +0000 (22:34 -0500)]
update keystore

Issue-ID: POLICY-1988
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I576cf60ef4915f9e79246c42f0dd90710a244f47
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agotest case of model generator 35/93935/4
ning.xi [Thu, 22 Aug 2019 03:11:18 +0000 (03:11 +0000)]
test case of model generator

Issue-ID: POLICY-1992
Change-Id: I90143d9903e0ada74dd9efba80aa6589b9f3dff4
Signed-off-by: ning.xi <ning.xi@est.tech>
4 years agoFix checkstyle warnings in apex-pdp 82/93982/2
liamfallon [Wed, 21 Aug 2019 09:39:44 +0000 (09:39 +0000)]
Fix checkstyle warnings in apex-pdp

Unit tests introduced some checkstyle warnings, this review resolves
those warnings.

Issue-ID: POLICY-1942
Change-Id: I16438621c1db0adfbe70bc8b237d05bd7cc72697
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpdate version of Kafka for security 81/93681/1
liamfallon [Fri, 16 Aug 2019 10:16:37 +0000 (10:16 +0000)]
Update version of Kafka for security

Issue-ID: POLICY-1882
Change-Id: Ic26b0f43c27473e83b3c7a38019078d4db398b25
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "add JUnit test in client deployment and client full"
Pamela Dragosh [Tue, 13 Aug 2019 15:42:56 +0000 (15:42 +0000)]
Merge "add JUnit test in client deployment and client full"

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 agoadd JUnit test in client deployment and client full 85/92785/4
ning.xi [Tue, 13 Aug 2019 05:20:20 +0000 (05:20 +0000)]
add JUnit test in client deployment and client full

Issue-ID: POLICY-1962
Change-Id: Ic10b0edc9364624161f71935f51f4411fe67c882
Signed-off-by: ning.xi <ning.xi@est.tech>
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>
4 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"

4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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"

4 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"

4 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"

4 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>
4 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>
4 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"

4 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>
4 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>
4 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>
4 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"

4 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"

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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"