policy/apex-pdp.git
4 years agoUpdating module names to resolve conflicts 02/101202/2
Ram Krishna Verma [Wed, 5 Feb 2020 21:31:01 +0000 (16:31 -0500)]
Updating module names to resolve conflicts

Issue-ID: POLICY-2355
Change-Id: I67f0ca2ced9cbe37a3d00d9f312101e756454107
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoAdding Tosca compliant operational policy type to default config file for apex-pdp 00/101100/1
a.sreekumar [Mon, 3 Feb 2020 15:14:48 +0000 (15:14 +0000)]
Adding Tosca compliant operational policy type to default config file for apex-pdp

Change-Id: I6de1fd31c2e73814a546b05ee71419fded4a3357
Issue-ID: POLICY-2147
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoRemove content section from ToscaPolicy properties in APEX 87/100887/3
a.sreekumar [Wed, 29 Jan 2020 09:50:33 +0000 (09:50 +0000)]
Remove content section from ToscaPolicy properties in APEX

Currently APEX specific information is placed under properties|content in ToscaPolicy.
Avoid keeping under "content" and keep the information directly under properties.

Change-Id: Ic437271c9a2d71104013b5568af5525df4a4bb56
Issue-ID: POLICY-2332
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoRemove unnecessary sonar config 21/100821/1
Pamela Dragosh [Mon, 27 Jan 2020 15:04:00 +0000 (10:04 -0500)]
Remove unnecessary sonar config

This is no longer needed now that it is pointing to
latest policy/parent.

BTW - I decided there were too many changes required
for combining into one single .exec jacoco file. And it
was not improving any of the numbers. This repo is very
close to original numbers before the move to sonar cloud.

Will investigate another time.

Issue-ID: POLICY-2321
Change-Id: If2f3a762de943fb6f73709d9308333b8feda436e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRemove apex-pdp TextFileUtils class 01/100701/1
liamfallon [Thu, 23 Jan 2020 16:50:47 +0000 (16:50 +0000)]
Remove apex-pdp TextFileUtils class

This class was moved to policy-common some time ago. Removing it in
apex-pdp.

Issue-ID: POLICY-1913
Change-Id: I982fbd799334b34f1526e19f339236b52205b91e
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoRun apex-pdp in Java 11: base changes 92/100592/6
liamfallon [Wed, 22 Jan 2020 12:11:11 +0000 (12:11 +0000)]
Run apex-pdp in Java 11: base changes

This change brings in the minimum changes to get apex-pdp running in
Java 11. Other reviews will bring in changes to remove Java 11 warnings
and to convert apex-pdp Javascript handling from the now deprecated
nashorn engine.

Issue-ID: POLICY-1581
Change-Id: I879bbae08d4e67aca3f1bfeedeca639d8dbbc281
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoFirst sonar update 78/100478/1
Pamela Dragosh [Mon, 20 Jan 2020 14:41:21 +0000 (09:41 -0500)]
First sonar update

Just updating this way gets apex to around 79%, which
passes. Previously around 80%, when JDK11 is done I will
fix it up and hopefully we will get it back to over 80%.

Issue-ID: POLICY-2321
Change-Id: If3440e8c8c71f858adcc3f1b349da4e1048f8464
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to policy/models release version 20/100220/1
HOCKLA [Fri, 10 Jan 2020 21:37:28 +0000 (15:37 -0600)]
Point to policy/models release version

Issue-ID: POLICY-1592
Change-Id: I4a795fc1496f5608884a7b8bdad0c212c4321392
Signed-off-by: HOCKLA <ah999m@att.com>
4 years agoMerge "Populate the PdpStatistics data in heartbeat"
Jim Hahn [Thu, 9 Jan 2020 14:34:54 +0000 (14:34 +0000)]
Merge "Populate the PdpStatistics data in heartbeat"

4 years agoMerge "Enabling logback file to be loaded using oom configmap"
Pamela Dragosh [Thu, 9 Jan 2020 13:38:02 +0000 (13:38 +0000)]
Merge "Enabling logback file to be loaded using oom configmap"

4 years agoMerge "Update vCPE example to use Avro schemas"
Jorge Hernandez [Wed, 8 Jan 2020 16:53:02 +0000 (16:53 +0000)]
Merge "Update vCPE example to use Avro schemas"

4 years agoEnabling logback file to be loaded using oom configmap 85/100085/1
a.sreekumar [Wed, 8 Jan 2020 12:55:20 +0000 (12:55 +0000)]
Enabling logback file to be loaded using oom configmap

Change-Id: I746ee57003175ae9e3f903ee3e5948ed1875dceb
Issue-ID: POLICY-2308
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoUpdate vCPE example to use Avro schemas 89/99989/5
liamfallon [Fri, 20 Dec 2019 03:42:34 +0000 (21:42 -0600)]
Update vCPE example to use Avro schemas

THis change updates the vCPE example to show how the example can work
towards the APPC using Avro schemas only. This means that Policies can
be adapted to changes in controller APIs using Avro alone.

This example works with the old and new format policy-models.

Issue-ID: POLICY-2043
Change-Id: I42ac0eac5203eaa37316cf6c460c67f7e8d6deb2
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoPopulate the PdpStatistics data in heartbeat 95/99595/6
shaoqiu [Fri, 13 Dec 2019 07:10:29 +0000 (15:10 +0800)]
Populate the PdpStatistics data in heartbeat

Apex to populate the PdpStatistics data in every heartbeat sent to PAP

Issue-ID: POLICY-2302
Change-Id: I2d3a6c1e8605d53bf754a135980527bd50762abd
Signed-off-by: shaoqiu <tim.huang@est.tech>
4 years agoChanging ownership of configuration files in APEX 25/100025/3
a.sreekumar [Mon, 6 Jan 2020 15:48:31 +0000 (15:48 +0000)]
Changing ownership of configuration files in APEX

Default user when logging into APEX container is apexuser. Updating the
ownership of configuration files such as logback.xml and key files so
that these can be updated at runtime.

Change-Id: Icf21e0b408d3b4ef829e1b1c5505f142a7d08adc
Issue-ID: POLICY-2308
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoMerge "Adding native policy type to the config file in APEX"
Pamela Dragosh [Fri, 6 Dec 2019 21:56:04 +0000 (21:56 +0000)]
Merge "Adding native policy type to the config file in APEX"

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 agoAdding native policy type to the config file in APEX 54/99254/1
a.sreekumar [Fri, 6 Dec 2019 12:37:05 +0000 (12:37 +0000)]
Adding native policy type to the config file in APEX

Change-Id: If8167c837d7d28ec9049b00ff6ca314eb4199930
Issue-ID: POLICY-2279
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
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>