policy/apex-pdp.git
5 years agoTry new version of JRuby 25/66625/1
liamfallon [Fri, 14 Sep 2018 12:00:30 +0000 (13:00 +0100)]
Try new version of JRuby

We had to use an old versino of JRuby due to security issues.

A new version of JRuby was released in May, it
seems to have a lower vulnerability level when tested
using the "pom" test. Raising this review to check it
in CLM.

Change-Id: I77bf8bae4f7efe66d7e244d0ff9a52432b00a5ce
Issue-ID: POLICY-1065
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoSonar/Checkstyle in service/plugins 77/66377/1
liamfallon [Thu, 13 Sep 2018 14:25:32 +0000 (15:25 +0100)]
Sonar/Checkstyle in service/plugins

Sonar and Checkstyle changes in plugins and services, and
knock on changes

Issue-ID: POLICY-1034
Change-Id: Iff7df74e54fce2c661dcc2fae75ae93d4cacfe5b
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoSonar/Checkstyle in model/context/core 41/66241/2
liamfallon [Wed, 12 Sep 2018 22:29:25 +0000 (23:29 +0100)]
Sonar/Checkstyle in model/context/core

Checkstyle and sonar changes in the model, contexot
and core modules.

Issue-ID: POLICY-1034
Change-Id: I2d40bc877f3a548844470fc290fc89d63fa465ae
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoMerge "Fix soft stop and start of engine"
Pamela Dragosh [Wed, 12 Sep 2018 19:54:09 +0000 (19:54 +0000)]
Merge "Fix soft stop and start of engine"

5 years agoFix soft stop and start of engine 41/66141/2
liamfallon [Wed, 12 Sep 2018 15:12:14 +0000 (16:12 +0100)]
Fix soft stop and start of engine

Stopping an apexc engine is a soft stop, allowing the engine
to be restarted again. However, when a model upgrade is carried out
the engine must be stopped and cleared to clear the previous model,
loaded with the new model and started again.

THis handling must work over the Web Socket admin interface and
also when apex is started as a service.

This change fixes the handling so that it is consistent and
works the same when apex is stopped/started/upgraded from
the command line or over the management web socket interface

Issue-ID: POLICY-1101
Change-Id: I1fe619641cb6ecd34d0669b4b7df105280e5e2c0
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoFix build fails 29/66129/1
liamfallon [Wed, 12 Sep 2018 14:40:10 +0000 (15:40 +0100)]
Fix build fails

Apex end to end tests often fail because the tests are not tuned correctly
for Jenkins.

The JRuby test needs a delay to allow the first test to completely clear dowm
The volume of events sent in the Kafka tests is reduced from 100 to 10

The dom4j version is also changed back to 1.6.1 because 1.6 has the same security
issues.

Issue-ID: POLICY-954
Change-Id: Id38bf9fe526942870181bfd9c0762f0a471c0c02
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoMerge "Updated example config for CSIT test"
Liam Fallon [Wed, 12 Sep 2018 08:35:30 +0000 (08:35 +0000)]
Merge "Updated example config for CSIT test"

5 years agoUse parent version of websocket 71/65871/1
liamfallon [Tue, 11 Sep 2018 15:09:02 +0000 (16:09 +0100)]
Use parent version of websocket

Two conflicting versions of the websocket library were being used,
causing an exception to be thrown on apex shutdown.

Using the common version of websocket solves this issue.

Issue-ID: POLICY-954
Change-Id: Id1a004b1f09931b53ec389c776f74c58f7b29e99
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoMerge "Fix install script/examples on apex"
Pamela Dragosh [Tue, 11 Sep 2018 14:29:27 +0000 (14:29 +0000)]
Merge "Fix install script/examples on apex"

5 years agoMerge "Checkstyle changes for apex model"
Pamela Dragosh [Tue, 11 Sep 2018 14:11:01 +0000 (14:11 +0000)]
Merge "Checkstyle changes for apex model"

5 years agoUpdated example config for CSIT test 01/65801/1
mmis [Tue, 11 Sep 2018 10:45:11 +0000 (11:45 +0100)]
Updated example config for CSIT test

Changed the config for the CSIT test to use javascript instead of mvel and
changed the REST server host to enable communication from outside the
docker container

Issue-ID: POLICY-1099
Change-Id: I6173545d70d6b83c86bbee132cf057985487a501
Signed-off-by: mmis <michael.morris@ericsson.com>
5 years agoFix install script/examples on apex 91/65791/1
liamfallon [Tue, 11 Sep 2018 10:30:44 +0000 (11:30 +0100)]
Fix install script/examples on apex

The install script for apex did not coreate the soft link for apex
correctly.

One of the example json files was named incorrectlu.

Issue-ID: POLICY-954
Change-Id: If7923e2287aebb956bd4bc9ed4b26b23a40d048b
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoCheckstyle changes for apex model 73/65573/1
liamfallon [Mon, 10 Sep 2018 16:05:36 +0000 (17:05 +0100)]
Checkstyle changes for apex model

Fix checkstyle warnings in the apex mode
and knock on changes.

Issue-ID: POLICY-1034
Change-Id: I10537e4288e9cad5ef18165ed2cdc1d3ab3139c1
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoAdded config and model to examples 63/65563/1
mmis [Mon, 10 Sep 2018 14:20:00 +0000 (15:20 +0100)]
Added config and model to examples

Added a config and model file to examples to be used in CSIT test

Issue-ID: POLICY-1099
Change-Id: Idbd3bf323b366273bca9a5472abcf528725b2f77
Signed-off-by: mmis <michael.morris@ericsson.com>
5 years agoMerge "Address level 4-6 security issues"
Pamela Dragosh [Mon, 10 Sep 2018 13:10:59 +0000 (13:10 +0000)]
Merge "Address level 4-6 security issues"

5 years agoAdding jacoco plugin to main pom 93/65393/2
ramverma [Sun, 9 Sep 2018 14:07:34 +0000 (15:07 +0100)]
Adding jacoco plugin to main pom

Overriding jacoco plugin setting in main pom of apex-pdp to build
cumulative coverage report at project level so that the same gets
reflected in sonar dashboard

Change-Id: Ia4272192dae3af73806ed1caf3186b537ef10df1
Issue-ID: POLICY-1034
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoAddress level 4-6 security issues 65/65365/1
liamfallon [Sat, 8 Sep 2018 14:22:21 +0000 (15:22 +0100)]
Address level 4-6 security issues

Remove commons-compress and chage version of dom4j

Also fix checkstyle in affected modules

Issue-ID: POLICY-1065
Change-Id: Id37e54a54997656674af37dfd924aec5f69e410a
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoParameter group fields must have getters 13/65213/1
liamfallon [Fri, 7 Sep 2018 14:11:46 +0000 (15:11 +0100)]
Parameter group fields must have getters

Modifications to apex parameters to include getters
that follow naming conventions, and knock on changes.

Also checkstyle fixes taken in modifified classes.

Issue-ID: POLICY-1095
Change-Id: Iff5ccc7a069a4ec2b2b974ed9f5ed70a88692e00
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoFix package of apex examples and documents 83/64783/2
liamfallon [Wed, 5 Sep 2018 14:46:31 +0000 (15:46 +0100)]
Fix package of apex examples and documents

The examples are not packaged correctly in the apex build
and the client wars are missing

The links and location of the documents are corrected.

Some POM duplicate dependencies removed.

Javadoc warnings removed.

Issue-ID: POLICY-867
Change-Id: I555c29191c61c0a9887365d95005dbc584eddf04
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoFix checkstyle warnings in examples 51/63551/4
Dinh Danh Le [Wed, 29 Aug 2018 16:21:52 +0000 (17:21 +0100)]
Fix checkstyle warnings in examples

Change-Id: Iad533f3987792d8713426234f3277c1ef6b72284
Issue-ID: POLICY-1034
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
5 years agoMerge "Fix checkstyle issues in apex model basic"
Jorge Hernandez [Tue, 4 Sep 2018 20:13:38 +0000 (20:13 +0000)]
Merge "Fix checkstyle issues in apex model basic"

5 years agoDependency version changes for security 71/64471/2
liamfallon [Tue, 4 Sep 2018 16:49:55 +0000 (17:49 +0100)]
Dependency version changes for security

Versions of Jython and hazelcast changed to more
secure versions.

Change-Id: Iad918705170846b8813512c4bd8087ba429f6e82
Issue-ID: POLICY-1065
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoFix checkstyle issues in apex model basic 65/64465/1
liamfallon [Tue, 4 Sep 2018 16:24:15 +0000 (17:24 +0100)]
Fix checkstyle issues in apex model basic

CHeckstyle issues in apex model basic and knock on changes
in other apex modules.

Issue-ID: POLICY-1034
Change-Id: I65823f5e2e344526abc74b0812877113acb056ec
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoUse parameter service in apex 33/63733/8
liamfallon [Thu, 30 Aug 2018 08:37:29 +0000 (09:37 +0100)]
Use parameter service in apex

Switch parameter handling in apex to use
the ONAP PF common parameter service

Change-Id: Id318d19c726b18b1a69c630fa81ca7d695355e9c
Issue-ID: POLICY-954
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoFix checkstyle warning in tools & context packages 91/63091/2
Dinh Danh Le [Mon, 27 Aug 2018 14:57:41 +0000 (15:57 +0100)]
Fix checkstyle warning in tools & context packages

Change-Id: I5b72c7a35d56296cd5053659a9d4c1e8f3b058be
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-1034

5 years agoAdd docs for the examples package 29/61929/2
Dinh Danh Le [Wed, 22 Aug 2018 23:41:47 +0000 (00:41 +0100)]
Add docs for the examples package

This review is big because it contains examples for the whole project.
The big size is mainly due to the site.xml, logos and css files which
are repeatedly created, and more aciidoc files are needed. The pom.xml
files are changed properly.

Change-Id: I42a94e4d898529f9249ef03de908c8b1a0142c7f
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867

5 years agoAdd docs for Testsuites package 27/61927/1
Dinh Danh Le [Wed, 22 Aug 2018 23:00:00 +0000 (00:00 +0100)]
Add docs for Testsuites package

Change-Id: I807ec0fe35775226b611567904a9ac4627b33775
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867

5 years agoAdd docs for client package 81/61881/3
Dinh Danh Le [Wed, 22 Aug 2018 17:02:01 +0000 (18:02 +0100)]
Add docs for client package

Change-Id: I820e70463e1715a342d78fa9d413638068a05125
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867

5 years agoAdd docs for tools package & update main apex-pdp 37/61837/3
Dinh Danh Le [Wed, 22 Aug 2018 11:41:50 +0000 (12:41 +0100)]
Add docs for tools package & update main apex-pdp

Change-Id: I2990157eb7bae51f7d38a652fd8dd488b7287cea
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867

5 years agoUpdating docs for Plugins module 35/61335/1
Dinh Danh Le [Mon, 20 Aug 2018 16:25:25 +0000 (17:25 +0100)]
Updating docs for Plugins module

Change-Id: Ia0837cf2f86c42eea71c3f71e8cd99d684912485
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867

5 years agoMerge "Adding documentation for the packages module"
Pamela Dragosh [Wed, 15 Aug 2018 16:57:31 +0000 (16:57 +0000)]
Merge "Adding documentation for the packages module"

5 years agoMerge "Fix checkstyle warnings in core-engine module"
Jorge Hernandez [Wed, 15 Aug 2018 16:20:36 +0000 (16:20 +0000)]
Merge "Fix checkstyle warnings in core-engine module"

5 years agoMerge "Fix checkstyle warnings in context-test-utils"
Jorge Hernandez [Wed, 15 Aug 2018 16:20:14 +0000 (16:20 +0000)]
Merge "Fix checkstyle warnings in context-test-utils"

5 years agoFix checkstyle warnings in core-engine module 75/60575/1
Dinh Danh Le [Tue, 14 Aug 2018 16:05:56 +0000 (17:05 +0100)]
Fix checkstyle warnings in core-engine module

Change-Id: Ie79c88e21a3d1f4cd53fd678a7afcffe1c6c202c
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-1034

5 years agoFix checkstyle warnings in context-test-utils 69/60569/1
Dinh Danh Le [Tue, 14 Aug 2018 15:31:54 +0000 (16:31 +0100)]
Fix checkstyle warnings in context-test-utils

Change-Id: I6d6e7bdc19e4e90f5f0a31ac3c8f06514ac10264
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-1034

5 years agoAdding documentation for the packages module 59/60559/1
Dinh Danh Le [Tue, 14 Aug 2018 14:15:43 +0000 (15:15 +0100)]
Adding documentation for the packages module

Change-Id: I51c9963aca8381559643123ae2664c25117e3bee
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867

5 years agoFix checkstyle warnings in the auth package 31/60531/2
Dinh Danh Le [Tue, 14 Aug 2018 11:32:51 +0000 (12:32 +0100)]
Fix checkstyle warnings in the auth package

Change-Id: I64f783d5325301862e2438ac5d22cfcc0a150579
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-1034

5 years agoFix checkstyle warnings in the client module 73/60273/5
Dinh Danh Le [Mon, 13 Aug 2018 10:20:21 +0000 (11:20 +0100)]
Fix checkstyle warnings in the client module

Change-Id: I3263a833cc9dd6d86afdf2ae53de0e53c92850c9
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-1034

5 years agoCheckstyle the context-management package 03/60103/2
Dinh Danh Le [Sat, 11 Aug 2018 16:17:34 +0000 (17:17 +0100)]
Checkstyle the context-management package

Change-Id: Ifc4fef920681f21b0a965ea55d9bb78785ec66f9
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-1034

5 years agoCheckstyle the services-engine package 27/59827/2
Dinh Danh Le [Thu, 9 Aug 2018 09:51:44 +0000 (10:51 +0100)]
Checkstyle the services-engine package

Change-Id: I0d7fd6f867ba280953eb4fd0dc2a5ad1779fb045
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-1034

5 years agoMerge "Adding Apex docs for Plugins module"
Pamela Dragosh [Wed, 8 Aug 2018 19:12:34 +0000 (19:12 +0000)]
Merge "Adding Apex docs for Plugins module"

5 years agoAdding Apex docs for Plugins module 33/59033/1
Dinh Danh Le [Sun, 5 Aug 2018 08:54:13 +0000 (09:54 +0100)]
Adding Apex docs for Plugins module

Change-Id: Icf68473b472a5896972de5b07b275682a77a1c9f
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867

5 years agoUse common components in apex 81/58981/4
liamfallon [Fri, 3 Aug 2018 15:12:01 +0000 (16:12 +0100)]
Use common components in apex

Common ResourceUtil class replaces specific one in APEX
Managed dependency version clashes removed in POMs
Dependency versions with security vulnerabilities changed for
 zookeeper
 kafka
 infinispan

Change-Id: I3c4b367cb5556b2dc255ab62c84f85738165eb81
Issue-ID: POLICY-954
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoMerge "Fixing sonar vulnerabilities in apex-pdp"
Jorge Hernandez [Thu, 2 Aug 2018 23:49:47 +0000 (23:49 +0000)]
Merge "Fixing sonar vulnerabilities in apex-pdp"

5 years agoFixing sonar vulnerabilities in apex-pdp 97/58697/1
ramverma [Thu, 2 Aug 2018 11:50:09 +0000 (12:50 +0100)]
Fixing sonar vulnerabilities in apex-pdp

Changed the Console class to use logger only for printing stack trace,
as the class is meant to be used for CLI usage.
Changed the CLIParser to use Console class for printing messages.
Changed the client-editor to be hosted on localhost by default, to follow
the same what others clients (deployment, monitoring & client full) are doing.

Change-Id: I6565b4b35a93b3708b926bfee04d79ead6b5346e
Issue-ID: POLICY-954
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoAdding first set of apex-pdp document changes 65/58265/1
ramverma [Tue, 31 Jul 2018 17:25:39 +0000 (18:25 +0100)]
Adding first set of apex-pdp document changes

Adding document changes for auth, context, core, model, services & the
main apex-pdp module.

Change-Id: Id0d026baa258f1dc6998978f9911f3c4a73b5b3b
Issue-ID: POLICY-867
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoAdding examples-servlet module to apex-pdp 69/58069/2
ramverma [Mon, 30 Jul 2018 18:13:47 +0000 (19:13 +0100)]
Adding examples-servlet module to apex-pdp

Adding examples-servlet module to demonstrate the capability that
apex-pdp can be simply started as a servlet deployed in any application
server.

Change-Id: I5c9e323f1468cc14c6277c0037029679d00cd751
Issue-ID: POLICY-861
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoMerge "Add test case for plugin event carrier RESTServer"
Jorge Hernandez [Mon, 30 Jul 2018 17:37:07 +0000 (17:37 +0000)]
Merge "Add test case for plugin event carrier RESTServer"

5 years agoMerge "Fixing UI bug in apex-pdp client"
Jorge Hernandez [Mon, 30 Jul 2018 14:46:13 +0000 (14:46 +0000)]
Merge "Fixing UI bug in apex-pdp client"

5 years agoFixing UI bug in apex-pdp client 13/58013/1
Ronan Kenny [Mon, 30 Jul 2018 11:36:25 +0000 (12:36 +0100)]
Fixing UI bug in apex-pdp client

Minor change was needed in the .css file to correct a visual error.

Change-Id: If84a95c079b34e3395da0864ba4009fbd13640c9
Issue-ID: POLICY-954
Signed-off-by: Ronan Kenny <ronan.kenny@ericsson.com>
5 years agoAdd test case for plugin event carrier RESTServer 33/57933/2
Dinh Danh Le [Sat, 28 Jul 2018 22:01:04 +0000 (23:01 +0100)]
Add test case for plugin event carrier RESTServer

Change-Id: Ia81a35e359c1f7072f4a39db871076d478dd7dab
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-954

5 years agoFixing sonar bugs in apex-pdp 05/57805/1
ramverma [Fri, 27 Jul 2018 09:40:01 +0000 (10:40 +0100)]
Fixing sonar bugs in apex-pdp

Sonar was complaining about direct comparision of double values. Changed
the comparision to Double.compare(d1,d2).

Change-Id: I3821924e606180626434d5bc41e29b9a8451a9b2
Issue-ID: POLICY-861
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoRenaming examples in apex-pdp 69/57569/1
ramverma [Wed, 25 Jul 2018 16:26:52 +0000 (17:26 +0100)]
Renaming examples in apex-pdp

Renaming the examples as per what the documentation expects them.
Otherwise the documents won't work.

Change-Id: Ib9e30bf5a4cec0fec981372e1d9f3a0ee5d60f2f
Issue-ID: POLICY-861
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoMerge "Adding more examples to apex-pdp"
Jorge Hernandez [Wed, 25 Jul 2018 13:56:20 +0000 (13:56 +0000)]
Merge "Adding more examples to apex-pdp"

5 years agoAdding more examples to apex-pdp 61/57361/3
ramverma [Tue, 24 Jul 2018 16:36:53 +0000 (17:36 +0100)]
Adding more examples to apex-pdp

- Adding more examples (DecisionMaker, Periodic & ONAPvCPE) to apex-pdp.
- Fixed CORS issue in plugin-event-carrier-restserver module.
Added a ContainerResponseFilter to intercept every request/response coming to
REST server and add the required headers to support CORS.

Change-Id: Ic3e36c683f2a78992ce1417d2c00233b34066f2f
Issue-ID: POLICY-861
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoFix bug in APEX parameter service 31/57331/1
liamfallon [Tue, 24 Jul 2018 13:23:37 +0000 (14:23 +0100)]
Fix bug in APEX parameter service

The parameter calss name was not initialized in the constructor
of the parameter service
The web socket connections() method is depricated and replaced by getConnections()
Fixed order of build in main pom to put packages module last
fixed some comments that were incorrect

Change-Id: I6340655100655e181e2d97fe39def4874873dff5
Issue-ID: POLICY-954
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoFix sonar bugs and vulnerabilities in apex-pdp 61/57061/4
ramverma [Fri, 20 Jul 2018 15:52:38 +0000 (16:52 +0100)]
Fix sonar bugs and vulnerabilities in apex-pdp

Change-Id: I7ecabd3705de4a5352d5a98d1ab3a01677172651
Issue-ID: POLICY-954
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoAdding examples module to apex-pdp 41/56941/4
ramverma [Thu, 19 Jul 2018 17:45:16 +0000 (18:45 +0100)]
Adding examples module to apex-pdp

Adding examples (MyFirstPolicy, AADM, Adaptive, PCVS) to apex-pdp
so that anyone can try out running few sample policies
and understand how to create and run policies in apex-pdp.

Change-Id: I0dff6d54ef94d8b5bdb63eabcb09e9f64d76fd0c
Issue-ID: POLICY-861
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoMerge "Fix security vulnerability, upgrad jquery version"
Jorge Hernandez [Thu, 19 Jul 2018 14:08:50 +0000 (14:08 +0000)]
Merge "Fix security vulnerability, upgrad jquery version"

5 years agoMerge "Fix apex-pdp packaging issue"
Jorge Hernandez [Thu, 19 Jul 2018 14:02:15 +0000 (14:02 +0000)]
Merge "Fix apex-pdp packaging issue"

5 years agoFix security vulnerability, upgrad jquery version 59/56759/2
liamfallon [Wed, 18 Jul 2018 16:21:39 +0000 (17:21 +0100)]
Fix security vulnerability, upgrad jquery version

The version of jquery used in the APEX client was old
and had a security vulnerability. THis review updates the
versino of jquery to a newere version that does not have
a vulnerability.

Issue-ID: POLICY-905
Change-Id: Iefa5202ca80ba03d3a6ab84a693fa8d3da21c536
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoFix apex-pdp packaging issue 51/56751/2
ramverma [Wed, 18 Jul 2018 15:28:07 +0000 (16:28 +0100)]
Fix apex-pdp packaging issue

Fix apex-pdp packaging issue and add SampleDomain examples to try out
how apex-pdp works.

Change-Id: I4018b0902d06345e86ddbef80100e63232cee49d
Issue-ID: POLICY-861
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoRefactoring Metrics test 27/56627/5
waqas.ikram [Tue, 17 Jul 2018 14:35:47 +0000 (15:35 +0100)]
Refactoring Metrics test

Change-Id: I99290a3dec61b3ce0f4d5fd33d6b429d091b48ca
Issue-ID: POLICY-954
Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
5 years agoMerge "Fix incorrect naming on context plugins"
Jorge Hernandez [Wed, 18 Jul 2018 15:02:13 +0000 (15:02 +0000)]
Merge "Fix incorrect naming on context plugins"

5 years agoFix incorrect naming on context plugins 15/56715/1
liamfallon [Wed, 18 Jul 2018 10:23:20 +0000 (11:23 +0100)]
Fix incorrect naming on context plugins

This change fixes inconsistent naming on the context plugins
in APEX. All plugins should fillow the naming convention of
plugin-A.plugin-A.B.plugin.A.B.C and so on. Not following
this convention breaks the APEX documentation build.

Issue-ID: POLICY-954
Change-Id: I8aad4a28d143427e60017eaa119ee4f7ce9f5b3d
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoMerge "Set user in Dockerfile to apexuser"
Jorge Hernandez [Tue, 17 Jul 2018 13:57:24 +0000 (13:57 +0000)]
Merge "Set user in Dockerfile to apexuser"

5 years agoMerge "Refactor persistence JPA testing"
Jorge Hernandez [Tue, 17 Jul 2018 13:56:14 +0000 (13:56 +0000)]
Merge "Refactor persistence JPA testing"

5 years agoSet user in Dockerfile to apexuser 47/56547/1
mmis [Mon, 16 Jul 2018 23:30:34 +0000 (00:30 +0100)]
Set user in Dockerfile to apexuser

Set the user in Dockerfile to apexuser so as the user will be set to
apexuser upon container starts up. Only apexuser is permitted to start
apex.

Issue-ID: POLICY-866
Change-Id: Ib9e29503d8fc252760df6385a78f353e8961c3d2
Signed-off-by: mmis <michael.morris@ericsson.com>
5 years agoAdding tools module to apex-pdp 15/56515/3
ramverma [Mon, 16 Jul 2018 14:23:45 +0000 (15:23 +0100)]
Adding tools module to apex-pdp

The tools module contains the utility applications for apex
like converting policy model to cli, generating json events from policy
model, simple websocket client example etc.
The tools are defined to work in console and hence contain sysouts which
are actually needed.

Change-Id: Ia6d40fa7d3f6609ef86abd91a438d6ccbcd1f277
Issue-ID: POLICY-863
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoRefactor persistence JPA testing 53/56453/4
Dinh Danh Le [Sun, 15 Jul 2018 01:52:33 +0000 (02:52 +0100)]
Refactor persistence JPA testing

Adding tests for EclipseLink and refactoring Hibernate testcases.

As both tests use the same test entities, the two existing test entity
classes from org.onap.policy.apex.plugins.persistence.jpa.hibernate
are moved to a newly created package
org.onap.policy.apex.context.test.entities under context-test-utils.

Relevent POM files are changed w.r.t this change. In particular,
 1) add version infos as properties in apex-pdp/pom.xml
 2) common dependencies related to Junit testing for EclipseLink and
Hibernate are moved to their parent plugins-persistence-jpa's POM.

Change-Id: I9d9387154cbfdfc69be49960b80e040b6fd35b5a
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-862

5 years agoAdding client full module to apex-pdp 49/56449/1
ramverma [Sat, 14 Jul 2018 18:05:57 +0000 (19:05 +0100)]
Adding client full module to apex-pdp

Change-Id: Id6e4e37b7740eeb3d83998e596c0c963c93e64f2
Issue-ID: POLICY-864
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoAdding client editor module to apex-pdp 81/56381/4
ramverma [Fri, 13 Jul 2018 11:32:32 +0000 (12:32 +0100)]
Adding client editor module to apex-pdp

The size of the review is big because of following:

1. edit_area & jquery are 3PP's used in the client editor
2. ui elements like svg, gifs, png

Change-Id: Ib62d8e6dda6e6dc1b6e604298e23505523f77cf2
Issue-ID: POLICY-864
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoMerge "Adding Benchmark module"
Jorge Hernandez [Fri, 13 Jul 2018 14:02:26 +0000 (14:02 +0000)]
Merge "Adding Benchmark module"

5 years agoMerge "Adding client deployment module to apex-pdp"
Jorge Hernandez [Fri, 13 Jul 2018 14:01:05 +0000 (14:01 +0000)]
Merge "Adding client deployment module to apex-pdp"

5 years agoAdding Benchmark module 79/56279/4
waqas.ikram [Thu, 12 Jul 2018 11:47:09 +0000 (12:47 +0100)]
Adding Benchmark module

Change-Id: I4817580bf53bbf46b6890b70d49c8a2edabca749
Issue-ID: POLICY-865
Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
5 years agoAdding client deployment module to apex-pdp 03/56203/3
ramverma [Wed, 11 Jul 2018 13:21:13 +0000 (14:21 +0100)]
Adding client deployment module to apex-pdp

Change-Id: Idd74e9846c3fa75d305a9dde98a98d92dd0520a9
Issue-ID: POLICY-864
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoMerge "Create docker image for apex-pdp"
Jorge Hernandez [Wed, 11 Jul 2018 15:13:12 +0000 (15:13 +0000)]
Merge "Create docker image for apex-pdp"

5 years agoMerge "Change JNR and DOM4J license versions"
Jorge Hernandez [Wed, 11 Jul 2018 14:53:12 +0000 (14:53 +0000)]
Merge "Change JNR and DOM4J license versions"

5 years agoMerge "Adding client monitoring module to apex-pdp"
Pamela Dragosh [Tue, 10 Jul 2018 17:58:05 +0000 (17:58 +0000)]
Merge "Adding client monitoring module to apex-pdp"

5 years agoChange JNR and DOM4J license versions 27/56127/1
liamfallon [Tue, 10 Jul 2018 16:23:11 +0000 (19:23 +0300)]
Change JNR and DOM4J license versions

Change the JNR and DOM4J licenses to versions that are
approved by the Linux Foundataion.

Issue-ID: POLICY-905
Change-Id: I11fb2356bf90db27d16fe57ab70a910dac09459b
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoCreate docker image for apex-pdp 67/56067/6
mmis [Tue, 10 Jul 2018 09:50:05 +0000 (10:50 +0100)]
Create docker image for apex-pdp

Issue-ID: POLICY-866
Change-Id: I6bc322224e087acae1c92a67c48506f061a59d14
Signed-off-by: mmis <michael.morris@ericsson.com>
5 years agoAdding executor integration tests 75/56075/5
waqas.ikram [Tue, 10 Jul 2018 10:52:12 +0000 (11:52 +0100)]
Adding executor integration tests

Change-Id: I292315164fbfb3650f6d21ede6edb264a7fd8ee3
Issue-ID: POLICY-865
Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
5 years agoMerge "Fix apex-pdp logging issue"
Pamela Dragosh [Tue, 10 Jul 2018 12:46:38 +0000 (12:46 +0000)]
Merge "Fix apex-pdp logging issue"

5 years agoMerge "Change JRuby and Websocket version"
Pamela Dragosh [Tue, 10 Jul 2018 12:46:04 +0000 (12:46 +0000)]
Merge "Change JRuby and Websocket version"

5 years agoFix apex-pdp logging issue 71/56071/1
ramverma [Tue, 10 Jul 2018 10:26:13 +0000 (11:26 +0100)]
Fix apex-pdp logging issue

apex-pdp logging was failing due to multiple slf4j bindings.
Excluded the slf4j-log4j12 transitive dependency coming through
zookeeper.

Change-Id: I8745c349fecc89e4b3a84d8a79b1dc5bb47f89c8
Issue-ID: POLICY-866
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoMerge "Fixing Multi JVM Tests and sonar bugs"
Liam Fallon [Tue, 10 Jul 2018 09:49:50 +0000 (09:49 +0000)]
Merge "Fixing Multi JVM Tests and sonar bugs"

5 years agoChange JRuby and Websocket version 63/56063/1
liamfallon [Tue, 10 Jul 2018 09:25:19 +0000 (12:25 +0300)]
Change JRuby and Websocket version

Change the versions of JRuby and Java Websockets to
versions that are approved by the Linux Foundation.

Issue-ID: POLICY-905
Change-Id: I804ab1e9871bb573647035f47e674f472aba5528
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoAdding client monitoring module to apex-pdp 65/55965/4
ramverma [Fri, 6 Jul 2018 15:29:16 +0000 (16:29 +0100)]
Adding client monitoring module to apex-pdp

Change-Id: I6b4d00a5e49326f62f3585526ede8e89df99d7e5
Issue-ID: POLICY-864
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
5 years agoRemove ECOMP from LICENSE.txt 29/56029/1
Pamela Dragosh [Mon, 9 Jul 2018 13:58:11 +0000 (09:58 -0400)]
Remove ECOMP from LICENSE.txt

Must have copy-pasted a previous LICENSE.

Issue-ID: POLICY-958
Change-Id: I79e76690edc700d3dc399b89d64295644a10fa73
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoFixing Multi JVM Tests and sonar bugs 67/55967/7
waqas.ikram [Fri, 6 Jul 2018 15:37:36 +0000 (16:37 +0100)]
Fixing Multi JVM Tests and sonar bugs

Change-Id: I02df58695b44d5768410a0eaccb090cda7eb85ba
Issue-ID: POLICY-865
Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
5 years agoMerge "Fix Javadoc errors"
Jorge Hernandez [Fri, 6 Jul 2018 13:41:22 +0000 (13:41 +0000)]
Merge "Fix Javadoc errors"

5 years agoMerge "Refactoring existing integration tests"
Jorge Hernandez [Fri, 6 Jul 2018 13:39:39 +0000 (13:39 +0000)]
Merge "Refactoring existing integration tests"

5 years agoMerge "Set Jersey to LF approved version"
Jorge Hernandez [Fri, 6 Jul 2018 13:37:44 +0000 (13:37 +0000)]
Merge "Set Jersey to LF approved version"

5 years agoFix Javadoc errors 53/55953/1
liamfallon [Fri, 6 Jul 2018 12:38:08 +0000 (13:38 +0100)]
Fix Javadoc errors

Path changes and changes due to mitigation of security
violations caused some links in the Javadoc not to work any
more. This changes fixes the javadoc.

Issue-ID: POLICY-954
Change-Id: Ic9db2627fb1ffad69c8acadc7b975bc40864caaf
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoSet Jersey to LF approved version 39/55939/1
liamfallon [Fri, 6 Jul 2018 08:41:40 +0000 (09:41 +0100)]
Set Jersey to LF approved version

The Linux Foundation have permitted only certain versions
of Jersey to be OK to use license wise. This fix configures
the APEX PDP to use Jersey version 2.26, a LF approved version.

Issue-ID: POLICY-905
Change-Id: I4f4cbf728ffb0cc49331aa61da68805f83880282
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoRefactoring existing integration tests 95/55895/3
waqas.ikram [Thu, 5 Jul 2018 17:57:02 +0000 (18:57 +0100)]
Refactoring existing integration tests

Change-Id: I1aedd94d5197b8c6513fc701e9df2aab4edec088
Issue-ID: POLICY-865
Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
5 years agoMerge "Remove new security vulnerability"
Pamela Dragosh [Thu, 5 Jul 2018 11:56:11 +0000 (11:56 +0000)]
Merge "Remove new security vulnerability"

5 years agoFix test failure due to wait timeout 85/55785/3
liamfallon [Wed, 4 Jul 2018 07:50:48 +0000 (08:50 +0100)]
Fix test failure due to wait timeout

THe Avro and Java context integration tests waited for one second for APEX
to produce the output event to file before stopping APEX. This timeout is
usually fine. However, occasionally in the ONAP Jenkins build jobs, the
test ocassionally times out.

The tests are amended to wait for the file to exist and have content or for 10
seconds, whichever comes sooner.

Also consolidated two test classes into a single class and improved
temporary file handling.

Issue-ID: POLICY-905
Change-Id: I5e370353d2b627203e270cb6efeb560af7dc2acf
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoRemove new security vulnerability 97/55797/1
liamfallon [Wed, 4 Jul 2018 09:10:14 +0000 (10:10 +0100)]
Remove new security vulnerability

The latest CLM report showed up Hazelcast as a
new security vulnerability. This change upgrades
Hazelcast to the latest version.

Issue-ID: POLICY-905
Change-Id: Ifa79dff9977ae7e547abb5ab29322a8a01c37fd6
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
5 years agoRemove JMS dependencies with license problems 09/55709/1
liamfallon [Tue, 3 Jul 2018 14:19:52 +0000 (15:19 +0100)]
Remove JMS dependencies with license problems

The JMS API dependency wa removed by checking for the methods
using refection rather than casting the objects.

The other JMS dependencies were not needed.

Issue-ID: POLICY-905
Change-Id: I9146ede67e97c0e0ccc8a9a8a20f98f1b9e5390d
Signed-off-by: liamfallon <liam.fallon@ericsson.com>