policy/drools-pdp.git
4 years agoFix checkstyle issues in api-active-standby-management 84/91184/3
Jim Hahn [Wed, 10 Jul 2019 19:42:40 +0000 (15:42 -0400)]
Fix checkstyle issues in api-active-standby-management

Also deleted the checkstyle suppression file.

Change-Id: I3518f29c75061dced8f507b274388f7588859037
Issue-ID: POLICY-1901
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoMerge "Fix checkstyle issues in policy-core"
Ram Krishna Verma [Wed, 17 Jul 2019 11:18:56 +0000 (11:18 +0000)]
Merge "Fix checkstyle issues in policy-core"

4 years agoFix checkstyle issues in policy-utils 90/91190/4
Jim Hahn [Wed, 10 Jul 2019 20:52:00 +0000 (16:52 -0400)]
Fix checkstyle issues in policy-utils

Also deleted the checkstyle suppression file.

Change-Id: I51c69bce644204435fa8131c14132e0384b4e886
Issue-ID: POLICY-1909
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoFix checkstyle issues in policy-core 88/91188/3
Jim Hahn [Wed, 10 Jul 2019 20:39:28 +0000 (16:39 -0400)]
Fix checkstyle issues in policy-core

Also deleted the checkstyle suppression file.

Change-Id: I93e9f9154b614b56f7826ec978e1a99bd9369348
Issue-ID: POLICY-1907
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoMerge "Fix checkstyle issues in policy-management"
Jorge Hernandez [Tue, 16 Jul 2019 16:55:10 +0000 (16:55 +0000)]
Merge "Fix checkstyle issues in policy-management"

4 years agoMerge "Fix checkstyle issues in feature-state-management"
Jorge Hernandez [Tue, 16 Jul 2019 16:40:32 +0000 (16:40 +0000)]
Merge "Fix checkstyle issues in feature-state-management"

4 years agoMerge "Fix checkstyle issues in feature-healthcheck"
Jorge Hernandez [Tue, 16 Jul 2019 16:39:43 +0000 (16:39 +0000)]
Merge "Fix checkstyle issues in feature-healthcheck"

4 years agoFix checkstyle issues in policy-management 87/91187/3
Jim Hahn [Wed, 10 Jul 2019 20:33:41 +0000 (16:33 -0400)]
Fix checkstyle issues in policy-management

Also deleted the checkstyle suppression file.
Moved classes into their own source files per checkstyle.

Change-Id: I586223aac0e5b7623cfd7b0acfceca4742ecc013
Issue-ID: POLICY-1908-mgmt-style
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoFix checkstyle issues in feature-state-management 91/91191/2
Jim Hahn [Wed, 10 Jul 2019 21:00:11 +0000 (17:00 -0400)]
Fix checkstyle issues in feature-state-management

Also deleted the checkstyle suppression file.

Change-Id: I41adf8c09fe0613134876976c6aadd193e38fbaa
Issue-ID: POLICY-1905
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoFix checkstyle issues in feature-test-transaction 86/91186/1
Jim Hahn [Wed, 10 Jul 2019 20:19:44 +0000 (16:19 -0400)]
Fix checkstyle issues in feature-test-transaction

Also deleted the checkstyle suppression file.

Change-Id: If3eaadfbbd9b6a7942d514af78018b987d94fe4c
Issue-ID: POLICY-1906
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoFix checkstyle issues in feature-healthcheck 85/91185/1
Jim Hahn [Wed, 10 Jul 2019 20:10:49 +0000 (16:10 -0400)]
Fix checkstyle issues in feature-healthcheck

Also deleted the checkstyle suppression file.

Change-Id: I44b5eaac4b75a7fc2186066d2bb109752a9e2e0f
Issue-ID: POLICY-1904
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoFix drools-pdp due to sonar changes in common 43/91043/2
Jim Hahn [Mon, 8 Jul 2019 14:21:36 +0000 (10:21 -0400)]
Fix drools-pdp due to sonar changes in common

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

Change-Id: I26a38340707b2903e089350c31c5dfdb5c019ee0
Issue-ID: POLICY-1791
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoUpgrade to common/models snapshot 02/90802/1
Pamela Dragosh [Tue, 2 Jul 2019 18:13:51 +0000 (14:13 -0400)]
Upgrade to common/models snapshot

Keep in step with these artifacts to avoid multiple versions
loading during runtime.

Issue-ID: POLICY-1737
Change-Id: I4f3c46ed7da969abf5d517e88a5221d10287c75e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoBump drools-pdp to 1.5.1-SNAPSHOT 77/90677/1
Pamela Dragosh [Fri, 28 Jun 2019 17:49:05 +0000 (13:49 -0400)]
Bump drools-pdp to 1.5.1-SNAPSHOT

Released 1.5.0

Issue-ID: POLICY-1737
Change-Id: I2ebc4255aa7b03b1c402e825bfb714224fb7db84
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoRemove docker scripts 74/90474/1 1.5.0
Pamela Dragosh [Tue, 25 Jun 2019 17:35:23 +0000 (13:35 -0400)]
Remove docker scripts

These are no longer needed as the maven docker plugin is
being used.

Issue-ID: POLICY-1737
Change-Id: If0aa1fbf85b48577562bea48149f1643596c17d9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoUpgrade to release common and models 97/90397/1
Pamela Dragosh [Mon, 24 Jun 2019 15:42:20 +0000 (11:42 -0400)]
Upgrade to release common and models

Released policy/common 1.5.0 and policy/models 2.1.0

Issue-ID: POLICY-1737
Change-Id: I03ada36e643af92ff68d9b36f9e36c8389c36e66
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoMerge "Improved test speed"
Jorge Hernandez [Fri, 21 Jun 2019 16:34:51 +0000 (16:34 +0000)]
Merge "Improved test speed"

5 years agoImproved test speed 93/90093/2
Krysiak Adam [Tue, 18 Jun 2019 14:44:17 +0000 (16:44 +0200)]
Improved test speed

Issue-ID: POLICY-1671
Change-Id: Ia3f9313aac1f194fd56aed9be605b590a0d51c8e
Signed-off-by: Krysiak Adam <adam.krysiak@nokia.com>
5 years agoUpgrade to release 3.0.0 parent 52/90252/1
Pamela Dragosh [Thu, 20 Jun 2019 20:13:22 +0000 (16:13 -0400)]
Upgrade to release 3.0.0 parent

Policy/parent released

Issue-ID: POLICY-1737
Change-Id: I970b0e444f046af28b0356e2011140b55ed2fd7b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoUpdate the right classname in the loggers 16/90116/2
Rashmi Pujar [Tue, 18 Jun 2019 20:56:45 +0000 (16:56 -0400)]
Update the right classname in the loggers

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

5 years agoChange getCanonicalName() to getName() in drools-pdp 16/90016/1
Jim Hahn [Mon, 17 Jun 2019 14:42:41 +0000 (10:42 -0400)]
Change getCanonicalName() to getName() in drools-pdp

Per javadocs, getName() should generally be used instead of
Class.getCanonicalName(). This change only applies to classes; it
does not apply to File objects.

Change-Id: I28df56b3dfd0382239960d7f0f6e1131d702b2ab
Issue-ID: POLICY-1646
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoMerge "Use io.fabric8:docker-maven-plugin to build and push docker images"
Jorge Hernandez [Tue, 11 Jun 2019 14:18:21 +0000 (14:18 +0000)]
Merge "Use io.fabric8:docker-maven-plugin to build and push docker images"

5 years agoUse io.fabric8:docker-maven-plugin to build and push docker images 03/89203/9
Rashmi Pujar [Tue, 4 Jun 2019 01:45:58 +0000 (21:45 -0400)]
Use io.fabric8:docker-maven-plugin to build and push docker images

Addressed POLICY-1808 for drools-pdp to fix the tag to be major.minor-SNAPSHOT-latest

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

5 years agoMissing error description in error log 60/89660/1
Chou, Joseph (jc2555) [Mon, 10 Jun 2019 20:28:37 +0000 (16:28 -0400)]
Missing error description in error log

Fix a typo in default arror pattern for error description field

Issue-ID: POLICY-1838
Change-Id: I83bd932ac07a9d60945d6cecbc9cbabc443deaf3
Signed-off-by: Chou, Joseph (jc2555) <jc2555@att.com>
5 years agoRemove nexus staging plugin 34/89534/1
pdragosh [Thu, 6 Jun 2019 17:50:01 +0000 (13:50 -0400)]
Remove nexus staging plugin

Not used

Issue-ID: POLICY-1737
Signed-off-by: pdragosh <pdragosh@research.att.com>
Change-Id: I3020009b4ba8022eb7dc8f389ae7ff49eee3b33f

5 years agoBump drools-pdp to version 1.5.0 36/88936/2
Jim Hahn [Thu, 30 May 2019 16:55:01 +0000 (12:55 -0400)]
Bump drools-pdp to version 1.5.0

Change-Id: I6eb1f0e7dc2c0ac9b4f1594497c321aa57db8ecd
Issue-ID: POLICY-1747
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoUpdate INFO.yaml to add Jim and Ram 63/88263/1
liamfallon [Wed, 22 May 2019 14:42:45 +0000 (14:42 +0000)]
Update INFO.yaml to add Jim and Ram

Issue-ID: POLICY-1775
Change-Id: Ia6df04e2ac7e44140bfa61282f894ee57df1395a
Signed-off-by: liamfallon <liam.fallon@est.tech>
5 years agoStep snapshot version of drools-pdp 54/87854/1
liamfallon [Thu, 16 May 2019 09:39:24 +0000 (09:39 +0000)]
Step snapshot version of drools-pdp

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

Version 2.0.0

Issue-ID: POLICY-1630
Change-Id: I0a18d4a5c52321b69757c07f48d6dd747606f9f3
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoEnsure passive policies are injected when active 21/87621/2
jhh [Tue, 14 May 2019 04:31:44 +0000 (23:31 -0500)]
Ensure passive policies are injected when active

Add vim package for testing support

Change-Id: Icefcf8a57eea80b4fed97d4c63080f6159d8167a
Issue-ID: POLICY-1748
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoUpgrade policy/parent & policy/common in drools-pdp 76/87576/1
ramverma [Mon, 13 May 2019 16:27:27 +0000 (16:27 +0000)]
Upgrade policy/parent & policy/common in drools-pdp

Change-Id: I5caa80f14e642d7c539c5b9df7da1f6770c68147
Issue-ID: POLICY-1630
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
5 years agoTrack policies when active. 98/87198/7
jhh [Wed, 8 May 2019 01:51:34 +0000 (20:51 -0500)]
Track policies when active.

Do not honor group/subgroup changes with status messages.

When no present group/subgroups in update messages, assume that
they have to be reset.

Keep the policy cache of non-installed policies tracking them
when in passive state besides active.   Wait until go active
to enable them.

Remove legacy PAP and PDP-X healtchecks as it was basically
testing reachability.   There are conflicts with maintaining
2 different sets of PAPs and PDPs, trying to avoid it.
Alternative healtchecks are being placed on the robot test
framework.  What to healtcheck should be considered more
carefully in the near future.

Change-Id: I574f30bb5899faf521123c79046793d16b4a46e0
Issue-ID: POLICY-1748
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agorelax check in features for multiversion deps 82/86782/1
jhh [Thu, 2 May 2019 04:30:45 +0000 (23:30 -0500)]
relax check in features for multiversion deps

print a warning instead, and the base install one wins.

Change-Id: I666481e270bc03a8a7164e0fa947822d1ac8bbb6
Issue-ID: POLICY-1726
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoEnable noop source support in controller 93/86693/1
jhh [Wed, 1 May 2019 01:00:44 +0000 (20:00 -0500)]
Enable noop source support in controller

Additional telemetry apis for testing.

Change-Id: I60a61ffbbe86bbb0474777905de922434deabbe2
Issue-ID: POLICY-1716
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoChange config dir owner to policy instead of root 79/86479/1
jhh [Sun, 28 Apr 2019 17:12:40 +0000 (12:12 -0500)]
Change config dir owner to policy instead of root

Change-Id: I3318df8eb31568fe1c9ca06d588d18b355d7095b
Issue-ID: INT-998
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoNew BUILD_VERSION needed as fixed in parent image 17/86417/1
jhh [Fri, 26 Apr 2019 17:01:14 +0000 (12:01 -0500)]
New BUILD_VERSION needed as fixed in parent image

BUILD_VERSION could not be used in ENV variable
as it is cooked in the base image itself.  Need to
create a new one to reflect the drools build to
get by.

Change-Id: I681726f76e0ccfe84406f1414cad85edbcae52a8
Issue-ID: INT-998
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoAdd back BUILD_VERSION to Dockerfile 08/86408/1
jhh [Fri, 26 Apr 2019 14:38:18 +0000 (09:38 -0500)]
Add back BUILD_VERSION to Dockerfile

It is needed by drools and drools applications images and
were empty after using new base alpine images.

Change-Id: I76c0e1b01b6edc49e9fc8f69fdef4fe3baa22e48
Issue-ID: INT-998
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoManually pull the base alpine images. 26/86326/2
jhh [Thu, 25 Apr 2019 20:32:13 +0000 (15:32 -0500)]
Manually pull the base alpine images.

Undo directory creation of base image to preserve
original layout pre-use of alpine common/base images.

Change-Id: I0e95cc2d6d6da03be66e3b0c2413676539909bb0
Issue-ID: INT-998
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoMerge "Add telemetry API interface for Lifecycle"
Jorge Hernandez [Wed, 24 Apr 2019 15:56:24 +0000 (15:56 +0000)]
Merge "Add telemetry API interface for Lifecycle"

5 years agoAdd telemetry API interface for Lifecycle 45/86145/2
jhh [Wed, 24 Apr 2019 12:21:05 +0000 (07:21 -0500)]
Add telemetry API interface for Lifecycle

Some cleanup consolidating code in cire telemetry apis.

Issue-ID: POLICY-1687
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ic5241d45eba06796192cca1e82cba5ae53dc5aaf
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoRebase image on policy-common-alpine 66/83466/2
Dmitry Puzikov [Mon, 25 Mar 2019 14:40:06 +0000 (15:40 +0100)]
Rebase image on policy-common-alpine

Issue-ID: INT-1000
Change-Id: Ibd575b57c794a107d8fc890ffbe7303030984892
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
5 years agoAdd response section to PAP status message 28/85528/1
jhh [Wed, 17 Apr 2019 04:09:49 +0000 (23:09 -0500)]
Add response section to PAP status message

Change-Id: I26bf9f515c8639c030e8beb9e8b37a6a632da686
Issue-ID: POLICY-1655
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoOne year cert with new component names 84/85384/2
jhh [Mon, 15 Apr 2019 23:23:09 +0000 (18:23 -0500)]
One year cert with new component names

Change-Id: I50afac9fc880d4dd5619093f917be8e55ee80fad
Issue-ID: POLICY-1580
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoChange json files from typeVersion to type_version 00/85400/1
jhh [Tue, 16 Apr 2019 02:54:09 +0000 (21:54 -0500)]
Change json files from typeVersion to type_version

Change-Id: I8544977c47c3b428b2d2cea568122f8927d8a4db
Issue-ID: POLICY-1647
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoSend policies in status 95/84895/2
jhh [Wed, 10 Apr 2019 15:25:05 +0000 (10:25 -0500)]
Send policies in status

Change-Id: Ia1f02857922a81c5d94ffc33cee72ce9a822c876
Issue-ID: POLICY-1624
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoCode Changes done for OOF SON use case 80/84880/1
Mehreen Kaleem [Wed, 10 Apr 2019 12:48:50 +0000 (18:18 +0530)]
Code Changes done for OOF SON use case

Introducing control loop response flow using DCAE_CL_RSP topic

Change-Id: I90e30c061221e3d0c213fee9341b8b09a490fcae
Issue-ID: POLICY-1463
Signed-off-by: Saravanan A <saravanan.a75@wipro.com>
5 years agodeploy and undeploy as audits. 39/84739/2
jhh [Tue, 9 Apr 2019 19:24:34 +0000 (14:24 -0500)]
deploy and undeploy as audits.

Change-Id: Iea1766d5d8075394e1dccc109f4477bd2c270c36
Issue-ID: POLICY-1624
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoInitial support for deploy 42/84542/5
jhh [Mon, 8 Apr 2019 16:13:14 +0000 (11:13 -0500)]
Initial support for deploy

This is a first pass, some functionality is
missing (undeploy).

Compile error fix from changes in policy/models repo.

Change-Id: If448492ab665c135bace99d4d684d403e2a6be03
Issue-ID: POLICY-1624
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoAdd lifecycle feature to install package 60/84260/1
jhh [Thu, 4 Apr 2019 17:03:30 +0000 (12:03 -0500)]
Add lifecycle feature to install package

Change-Id: Ia9edd30131d4dde22c9d2559b4ad1428fdc13f89
Issue-ID: POLICY-1608
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoHandle pap update messages 32/84132/2
jhh [Wed, 3 Apr 2019 18:18:14 +0000 (13:18 -0500)]
Handle pap update messages

Addressing feedback from previos review.

Issue-ID: POLICY-1608
Change-Id: I8e36c99b13a3eb81c72515c039e86aa9e32e6f14
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoInitial lifecycle state machine. 55/83555/2
Jorge Hernandez [Thu, 28 Mar 2019 06:12:10 +0000 (01:12 -0500)]
Initial lifecycle state machine.

Basic state machine and initial functionality to
transition to the Active state via Engine commands and
StateUpdate messages.

Change-Id: I8212bd264dbbea446d4e682918f9360e3984887f
Issue-ID: POLICY-1608
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoMerge "Add MDC Topic Filtering"
Jorge Hernandez [Mon, 25 Mar 2019 15:43:23 +0000 (15:43 +0000)]
Merge "Add MDC Topic Filtering"

5 years agoAdd MDC Topic Filtering 44/83044/3
Daniel Cruz [Fri, 22 Mar 2019 13:33:29 +0000 (08:33 -0500)]
Add MDC Topic Filtering

A feature to provide configurable properties for network topics
to extrac fields from JSON strings and place them in a mapped
diagnostic context.

Issue-ID: POLICY-1499
Change-Id: Icfca0be3b263ccf1612b79ed617e2b1ffb0317e6
Signed-off-by: Daniel Cruz <dc443y@att.com>
5 years agoSupport topic properties files. 19/82919/2
Jorge Hernandez [Thu, 21 Mar 2019 12:10:46 +0000 (07:10 -0500)]
Support topic properties files.

They will be loaded automatically at startup.
Remove POLICY-PAP-PDP topic as is moved to a feature.
Remove PDPD-CONFIGURATION topic as it is not used.

Change-Id: I55629f885d61ce1cc4e3f24bcae5279e65a96f22
Issue-ID: POLICY-1610
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoRemove OrderedService references 87/82687/1
Daniel Cruz [Tue, 19 Mar 2019 14:53:24 +0000 (09:53 -0500)]
Remove OrderedService references

Removed OrderedService and OrderedServiceImpl from the
drools-pdp repo to use OrderedService and OrderedServiceImpl
from the common repo. All feature interfaces were updated
occordingly.

Issue-ID: POLICY-1499
Change-Id: Icc80dd1cbe73a97d4832f95ad2dad52d948b711a
Signed-off-by: Daniel Cruz <dc443y@att.com>
5 years agoManually add NSS libraries to images. 27/82527/1
Jorge Hernandez [Sun, 17 Mar 2019 04:33:42 +0000 (23:33 -0500)]
Manually add NSS libraries to images.

Alpine OpenJDK was updated 2 days ago (3/14), this
upgrade seems to break java applications that depend on libnss*.so
OS libraries, which seem are no longer installed with the jdk.

Before:

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (IcedTea 3.10.0) (Alpine 8.191.12-r0)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode

ls /usr/lib/libnss*
/usr/lib/libnss3.so /usr/lib/libnssckbi.so.41  /usr/lib/libnssdbm3.so.41
/usr/lib/libnss3.so.41  /usr/lib/libnssdbm3.chk    /usr/lib/libnssutil3.so
/usr/lib/libnssckbi.so  /usr/lib/libnssdbm3.so     /usr/lib/libnssutil3.so.41

Now:

openjdk version "1.8.0_201"
OpenJDK Runtime Environment (IcedTea 3.11.0) (Alpine 8.201.08-r0)
OpenJDK 64-Bit Server VM (build 25.201-b08, mixed mode)

> ls /usr/lib/libnss*"
ls: cannot access '/usr/lib/libnss*': No such file or directory

Change-Id: I371d1b3426ded294dba16d4217f6c9ce5a5acf04
Issue-ID: POLICY-1604
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoUpdate INFO.yaml file 92/82492/1
Jessica Wagantall [Fri, 15 Mar 2019 20:53:53 +0000 (13:53 -0700)]
Update INFO.yaml file

Update missing information blocks and
indentation to pass verify job.

Change-Id: I3f057c3d0fd02a39391439a12d22f7db0e507f4e
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
5 years agoAdd alpine packages for better diagnostics 75/82475/1
Jorge Hernandez [Fri, 15 Mar 2019 18:33:05 +0000 (13:33 -0500)]
Add alpine packages for better diagnostics

Change-Id: I96e30e2ffb7dc35ffc1e377c1021ee871ab5a310
Issue-ID: POLICY-1560
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoreducing kill timer to better play with k8s ones 65/82365/1
Jorge Hernandez [Fri, 15 Mar 2019 05:26:53 +0000 (00:26 -0500)]
reducing kill timer to better play with k8s ones

Change-Id: Ibd69b100468716b929d42c9145fb72153cf685ed
Issue-ID: POLICY-1560
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agofixing problems related to move to Alpine base OS 97/81897/1
Jorge Hernandez [Mon, 11 Mar 2019 03:17:39 +0000 (22:17 -0500)]
fixing problems related to move to Alpine base OS

Three problems are solved: (a) no amsterdam application comes
up, (b) wait for mariadb not working, (c) timeout does not work
(different syntax).

Change-Id: Ib46312201e8be06816b1339e543711f293225ca1
Issue-ID: POLICY-1551
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoMerge "Tweaking scripts to install for pdpd-cl image"
Pamela Dragosh [Thu, 7 Mar 2019 16:57:29 +0000 (16:57 +0000)]
Merge "Tweaking scripts to install for  pdpd-cl image"

5 years agoTweaking scripts to install for pdpd-cl image 72/79872/3
Jorge Hernandez [Thu, 7 Mar 2019 05:31:48 +0000 (23:31 -0600)]
Tweaking scripts to install for  pdpd-cl image

Change-Id: I5f7ab5de402a5412938f42ae76e21f112b106b3a
Issue-ID: POLICY-1560
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoUse Alpine as base docker image in drools-pdp 70/79870/2
Hengye [Thu, 7 Mar 2019 04:32:29 +0000 (12:32 +0800)]
Use Alpine as base docker image in drools-pdp

Issue-ID: POLICY-1551
Change-Id: I565644e048c789c3c71546ae00c0beb84bb6358a
Signed-off-by: Hengye <yehui.wang@est.tech>
5 years agoFix JAVA_HOME in docker image 85/79785/1
Jorge Hernandez [Wed, 6 Mar 2019 14:28:50 +0000 (08:28 -0600)]
Fix JAVA_HOME in docker image

JAVA_HOME is known at image creation.

Change-Id: I7274c47b5e890870d61949109ed2e1292a049eb9
Issue-ID: POLICY-1560
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoMerge "pdp-d remove volume + install simplifications"
Liam Fallon [Wed, 6 Mar 2019 13:59:43 +0000 (13:59 +0000)]
Merge "pdp-d remove volume + install simplifications"

5 years agoMerge "Replace PropertyConfiguration"
Liam Fallon [Wed, 6 Mar 2019 13:54:57 +0000 (13:54 +0000)]
Merge "Replace PropertyConfiguration"

5 years agopdp-d remove volume + install simplifications 78/79778/1
Jorge Hernandez [Wed, 6 Mar 2019 12:28:34 +0000 (06:28 -0600)]
pdp-d remove volume + install simplifications

volume is unused and hides config dir when
inherited from pdp-d-cl.

small simplification in pdp-d install

Change-Id: I50d343b8d289f2f883bc31a6c650584343d8cd97
Issue-ID: POLICY-1560
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoReplace PropertyConfiguration 69/79669/1
Jim Hahn [Tue, 5 Mar 2019 00:19:44 +0000 (19:19 -0500)]
Replace PropertyConfiguration

Modified code to use BeanConfigurator instead of PropertyConfiguration.

Change-Id: I296d9047262fbc87f04c3db92f23181f588bfeda
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoMerge "Add Controller Logging Feature"
Jorge Hernandez [Mon, 4 Mar 2019 16:15:45 +0000 (16:15 +0000)]
Merge "Add Controller Logging Feature"

5 years agoMerge "move all hard install config to environment vars"
Pamela Dragosh [Mon, 4 Mar 2019 16:11:12 +0000 (16:11 +0000)]
Merge "move all hard install config to environment vars"

5 years agoAdd Controller Logging Feature 32/79032/6
Daniel Cruz [Fri, 22 Feb 2019 17:31:17 +0000 (11:31 -0600)]
Add Controller Logging Feature

This features provides a mechanism to extend the logback.xml
properties to add controller specific loggers. The controller's
logger will log messages from topics that the controller listens
to in a controller specific network log. The original network
log is preserved and still logs every message from every controller.
Note that the way a logger is associated with a controller is by
having the logger name match the controller's name. Any configuration
file that has "logback-include-" prepended and a ".xml" extension
will be added to the logback.xml and logback-eelf.xml files as
extensions to the base configuration.

Issue-ID: POLICY-1427
Change-Id: Iaeb823421eadb7ee413b6b03ae3dfe862f230612
Signed-off-by: Daniel Cruz <dc443y@att.com>
5 years agomove all hard install config to environment vars 80/79380/4
Jorge Hernandez [Thu, 28 Feb 2019 16:10:49 +0000 (10:10 -0600)]
move all hard install config to environment vars

+ support multiple system properties files with variable interpolation
  loaded at initialization
+ support of configurable JVM options (-X, etc ..).
+ rearrange aaf configuration to avoid {{}} installation variables
  and use dynamic enviroment variables.
+ miscellaneous clean up in areas touched and checkstyle.

Change-Id: I71ad839778e17eb57c098a2c5cc2bf96e468669a
Issue-ID: POLICY-1524
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoUpdate INFO.yaml Liam's email 74/79374/1
Pamela Dragosh [Thu, 28 Feb 2019 16:06:05 +0000 (11:06 -0500)]
Update INFO.yaml Liam's email

est.tech

Issue-ID: POLICY-1556
Change-Id: I810dcac34ec078a07dfb2374067ecc06018fa7fb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoBase POLICY-PDP-PAP channel configuration 79/79279/3
Jorge Hernandez [Wed, 27 Feb 2019 16:13:59 +0000 (10:13 -0600)]
Base POLICY-PDP-PAP channel configuration

With these changes the PDP should come up listening in
the new PAP-PDP topic for messages, and configured to
send.

Change-Id: I395f87a7401aeb6385d640e51f75d71c0def36b0
Issue-ID: POLICY-1548
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoAdd getEffectiveTopic method to pooling test 34/79034/1
Jim Hahn [Fri, 22 Feb 2019 18:58:09 +0000 (13:58 -0500)]
Add getEffectiveTopic method to pooling test

A new method, getEffectiveTopic(), was added to the Topic interface.
A test class in the pooling feature uses that interface, thus the
method had to be added to the implementation within that test class.

Note: until this is merged, drools-pdp will not build.

Change-Id: Ib82e7a0d23f5b8e8eda08e8fc570e96543497da2
Issue-ID: POLICY-1534
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoMerge "Add Nested JSON Filtering"
Jorge Hernandez [Fri, 22 Feb 2019 13:25:42 +0000 (13:25 +0000)]
Merge "Add Nested JSON Filtering"

5 years agoAdd Nested JSON Filtering 09/78509/8
Daniel Cruz [Thu, 14 Feb 2019 06:42:45 +0000 (00:42 -0600)]
Add Nested JSON Filtering

The refactoring of the JsonProtocolFilter allows for complex filter
queries for JSON events coming in on network topics. The underlying
library used is json-path, which supports path based searching and
ruby regex filtering at any level of the JSON document.

The JsonProtocolFilter no longer requires a FilterRule class as one
json-path filter can contain multiple constraints using "&&" or "||".
This eliminates the need to identify the field name as a key with a
regex associated with it in the controller properties file (see the
original FilterRule implementation). It also simplifies the parsing
needed in the DroolsControllerFactory when extracting the filter
property and creating the JsonProtocolFilter.

JUnit coverage is 100% and all sonar flags were addressed related to
the JsonProtocolFilter class. Tested and verified working with the
telemetry API in a locally deployed PDP-D.

Change-Id: I8bd63db4e497c1ba0b5044b5449ccb7a9e4dbdbc
Issue-ID: POLICY-1489
Signed-off-by: Daniel Cruz <dc443y@att.com>
5 years agoMoving hard install config to environment vars 98/78798/2
Jorge Hernandez [Wed, 20 Feb 2019 03:17:15 +0000 (21:17 -0600)]
Moving hard install config to environment vars

Change-Id: I01e0cf2e2399ec81337961e0a2b3a349c34f55c4
Issue-ID: POLICY-1517
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoMerge "Remove unneeded "throws""
Jorge Hernandez [Tue, 19 Feb 2019 18:28:17 +0000 (18:28 +0000)]
Merge "Remove unneeded "throws""

5 years agoRemove unneeded "throws" 11/78711/1
Jim Hahn [Mon, 18 Feb 2019 22:03:29 +0000 (17:03 -0500)]
Remove unneeded "throws"

Fixed sonar issue:
- remove the declaration of thrown exception
'com.google.gson.JsonParseException' which is a runtime exception

Change-Id: Ice29a875891a06a55932fcf80107d4dec2b10d1f
Issue-ID: POLICY-1533
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoRemoved jackson from top-level pom 89/78689/1
Jim Hahn [Mon, 18 Feb 2019 16:59:42 +0000 (11:59 -0500)]
Removed jackson from top-level pom

Change-Id: Ic9cc018e918527d610676b34f05da718f09d97b9
Issue-ID: POLICY-1529
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoChange properties to use gson 98/78598/1
Jim Hahn [Fri, 15 Feb 2019 22:33:49 +0000 (17:33 -0500)]
Change properties to use gson

Modified property files to use gson instead of jackson for REST calls,
for both clients and servers.

Change-Id: Ib836886df33cd585b4c2d227e9cc496cc165fc2c
Issue-ID: POLICY-1431
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoTest gson in policy-management 03/78503/6
Jim Hahn [Fri, 15 Feb 2019 17:24:14 +0000 (12:24 -0500)]
Test gson in policy-management

Added jackson-like Gson annotations to policy-management classes.
Also added tests to verify that the classes serialize the same
with gson as with jackson.
Removed some trailing spaces.
Replaced tabs and adjusted spacing in json files.
Removed trailing newlines.
Updated license data per review comment.
Fixed merge conflict.
Added files that were inadvertently deleted.

Change-Id: Ib546e70f9d9d83187a6a93ff5c634000c4d53da5
Issue-ID: POLICY-1431
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoMerge "Decouple nexus reconfiguration from installation"
Pamela Dragosh [Fri, 15 Feb 2019 16:48:36 +0000 (16:48 +0000)]
Merge "Decouple nexus reconfiguration from installation"

5 years agoRemove jackson from policy coders 25/78425/5
Jim Hahn [Wed, 13 Feb 2019 18:55:31 +0000 (13:55 -0500)]
Remove jackson from policy coders

Coders came in pairs, one for GSON and one for Jackson.  Replaced the
pairs with a single coder for GSON.
Simplified list copy.
Removed multipleToolsetRetries flag.
Removed additional jackson code.  It had been removed, but the changes
were somehow lost.
Simplified another list copy.
Updated license dates.
Note: the date in PolicyEngineTest will be updated via a
different review (mgmt-gson).

Change-Id: Id3c7688c2389d194f66afcefa14303cf403ada16
Issue-ID: POLICY-1431
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoDecouple nexus reconfiguration from installation 27/78427/4
Jorge Hernandez [Wed, 13 Feb 2019 19:12:37 +0000 (13:12 -0600)]
Decouple nexus reconfiguration from installation

This allows for nexus to be reconfigured dynamically.

Change-Id: I103707ab7525ddb29663d7785739a34dff538605
Issue-ID: POLICY-1518
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoMerge "Support of environment variables in properties"
Liam Fallon [Wed, 13 Feb 2019 13:46:55 +0000 (13:46 +0000)]
Merge "Support of environment variables in properties"

5 years agoSupport of environment variables in properties 94/78294/2
Jorge Hernandez [Tue, 12 Feb 2019 13:28:18 +0000 (07:28 -0600)]
Support of environment variables in properties

Change-Id: I5028ad3b4fb63a96607915e8b424dd2e57696bf0
Issue-ID: POLICY-1514
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoReplace PolicyAssert with assertj 38/78138/4
Jim Hahn [Fri, 8 Feb 2019 18:22:06 +0000 (13:22 -0500)]
Replace PolicyAssert with assertj

PolicyAssert has a sonar issue and is no longer needed, as the
same functionality (and more) is provided by assertj.  Modified
drools-pdp test code to replace PolicyAssert with assertj.
Updated license dates.
Removed trailing spaces.
Remove assertj version from poms, as it's now included in parent pom.

Change-Id: Ica82a959613e082dc6ed6fc9e103a198c2f17537
Issue-ID: POLICY-1393
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoReport KieBase names in rules artifacts. 89/77789/1
Jorge Hernandez [Mon, 4 Feb 2019 14:54:50 +0000 (08:54 -0600)]
Report KieBase names in rules artifacts.

The rule writer at design time can embed the domain base model(s) supported
at design time.

This information can be extracted at runtime to match a controller with the
domain/model functionality that it can support.

Change-Id: I7f7f1320d7d601d50949d0cd09bc48982c222333
Issue-ID: POLICY-1500
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoRemove jackson from feature-pooling-dmaap 98/75898/1
Jim Hahn [Wed, 16 Jan 2019 16:06:28 +0000 (11:06 -0500)]
Remove jackson from feature-pooling-dmaap

Modified code to use gson instead of jackson.

Change-Id: I5a1b2dacdc1801b1110154ed7c3c81e0713ef369
Issue-ID: POLICY-1431
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoChange Junit to check for error code 406 19/75819/1
Jorge Hernandez [Tue, 15 Jan 2019 14:29:47 +0000 (08:29 -0600)]
Change Junit to check for error code 406

This is to support some clean up changes done in
policy/common under commit 55f5c4dc9e130e48a25b048e1f3091b10c17e365.

Change-Id: I2961d7ba719d22f144af972dc3964c3ac402e75c
Issue-ID: POLICY-1397
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoReplace expectException with AssertJ 04/75504/1
Jim Hahn [Tue, 8 Jan 2019 22:48:31 +0000 (17:48 -0500)]
Replace expectException with AssertJ

Change-Id: I5c9c5e962a7e2a5617405d534c0719f4bdb6ff1c
Issue-ID: POLICY-1393
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoAdd tooling for drools policy developers 17/75317/1
Jorge Hernandez [Fri, 4 Jan 2019 20:43:44 +0000 (14:43 -0600)]
Add tooling for drools policy developers

This commit adds tooling to better support development activities
for drools developers.

1. deploy artifacts to nexus or to local file repository on demand.
   It also allows to test on a single drools instance without the
   dependency on a nexus repo.

2. make installation configuration files conform to same
   convention (all upper case).

Change-Id: Ia0a2fc25db2ef21b774a9eee4ed51d4b876a1993
Issue-ID: POLICY-1367
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoMerge "Environment variable pointing to logback.xml"
Jorge Hernandez [Mon, 17 Dec 2018 14:57:25 +0000 (14:57 +0000)]
Merge "Environment variable pointing to logback.xml"

5 years agoEnvironment variable pointing to logback.xml 44/74644/3
Jorge Hernandez [Fri, 14 Dec 2018 00:24:06 +0000 (18:24 -0600)]
Environment variable pointing to logback.xml

Per current logging spec, the location is recommended to be
under /etc/onap/<component>/subcomponent but is acceptable
to have an enviroment variable pointing to it instead.

Environment variable is preferred over fixed location so
the config files are not all over the place, and is not
placed under directories owned by root.

Change-Id: Id5679f49a726fa43147ffb3e141acec30ebfdaaf
Issue-ID: POLICY-1294
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoUpdate to latest keystore from AAF tooling 35/74635/1
Jorge Hernandez [Thu, 13 Dec 2018 20:43:39 +0000 (14:43 -0600)]
Update to latest keystore from AAF tooling

It is generic with extended expiration, and support for
policy-distribution and policy-apex-pdp components.

Change-Id: I02157b063159ed6f8fc71f00cf0f890059b20c7b
Issue-ID: POLICY-1377
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
5 years agoMerge "Fix sonar issue in droolspdf"
Jorge Hernandez [Mon, 3 Dec 2018 19:40:19 +0000 (19:40 +0000)]
Merge "Fix sonar issue in droolspdf"

5 years agoFix sonar issue in droolspdf 12/74112/2
Krishnakumar Jinka [Mon, 3 Dec 2018 00:38:51 +0000 (09:38 +0900)]
Fix sonar issue in droolspdf

Modify protocol coder to fix sonar issue about method
params too many. Using existing builder. Address review
comments, replace modified with modification

Issue-ID: POLICY-1251
Change-Id: I67bd753f346108865404b733e7cf6008c2012766
Signed-off-by: krisjinka <kris.jinka@samsung.com>
5 years agoUpdate eclipselink version in drools-pdp 75/74075/2
Jim Hahn [Fri, 30 Nov 2018 15:07:10 +0000 (10:07 -0500)]
Update eclipselink version in drools-pdp

Use eclipselink from policy parent.
Re-insert scope=provided.

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