policy/drools-applications.git
3 years agoBump drools-applications to 1.6.6-SNAPSHOT 47/116147/1 frankfurt
Ram Krishna Verma [Fri, 4 Dec 2020 22:10:24 +0000 (17:10 -0500)]
Bump drools-applications to 1.6.6-SNAPSHOT

Issue-ID: POLICY-2901
Change-Id: Iabcf33965553eb5ffaff6e99717243b90e969eb9
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agodocker release of 1.6.5 image 43/116143/1 6.0.2-ONAP
jhh [Fri, 4 Dec 2020 18:38:19 +0000 (12:38 -0600)]
docker release of 1.6.5 image

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

3 years agomaven release of 1.6.5 artifacts 37/116137/1
jhh [Fri, 4 Dec 2020 16:35:57 +0000 (10:35 -0600)]
maven release of 1.6.5 artifacts

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

3 years agopoint to drools 1.6.4 97/116097/1
jhh [Thu, 3 Dec 2020 23:59:35 +0000 (17:59 -0600)]
point to drools 1.6.4

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

3 years agoAllow mixed case in check of prov-status 69/114769/1
Jim Hahn [Tue, 10 Nov 2020 15:12:53 +0000 (10:12 -0500)]
Allow mixed case in check of prov-status

Apparently SO/AAI in Frankfurt are setting the prov-status to "active"
instead of "ACTIVE".  Modified the code to ignore case when comparing.

Issue-ID: POLICY-2890-prov-status
Change-Id: Ibe2bcf451dcdc05361f40d2c5c5146eb6a9cb620
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoChange drools-applications frankfurt default branch 68/108268/1
a.sreekumar [Tue, 26 May 2020 15:15:51 +0000 (16:15 +0100)]
Change drools-applications frankfurt default branch

Change-Id: Ib60728d341c688f87f55cc7236b75116ab076037
Issue-ID: POLICY-2514
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
3 years agoBump drools-applications to 1.6.5 34/108234/1
a.sreekumar [Tue, 26 May 2020 12:37:53 +0000 (13:37 +0100)]
Bump drools-applications to 1.6.5

Change-Id: I52c0b421e6ca94153b7f37ae67fdcd086f14f3fa
Issue-ID: POLICY-2514
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
3 years agoUse "outcome" to indicate pending record 39/108139/5
Jim Hahn [Fri, 22 May 2020 13:06:58 +0000 (09:06 -0400)]
Use "outcome" to indicate pending record

Mariadb is setting the "endtime" to the current time by default,
so rather than indicate a pending record using a null endtime, just
modified the code set "outcome" to "Started" to indicate a pending record.
Also added code to ensure the "outcome" is never null, as that causes
a DB error.
Also addressed a comment from a previous review to log a warning message
if more than one matching record is found in operations history.

Issue-ID: POLICY-2581
Change-Id: I6bf67551cef46808a79cc15afeb0abbfc1b6d945
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoMerge "Insert pending record when operation starts"
Jorge Hernandez [Thu, 21 May 2020 23:27:24 +0000 (23:27 +0000)]
Merge "Insert pending record when operation starts"

4 years agoAdd secondary indices to operationshistory table 09/108109/1
Jim Hahn [Thu, 21 May 2020 21:47:18 +0000 (17:47 -0400)]
Add secondary indices to operationshistory table

Queries to the operationshistory table will degrade substantially
as more records are added to the DB.
The Dbao class should be moved to policy-models, but for now
we'll just update it in both places (i.e., drools-apps and xacml-pdp).

Issue-ID: POLICY-2581
Change-Id: Ic43cefdfd4d353b73d815bd629ef25f3d2b486c6
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoInsert pending record when operation starts 05/108105/2
Jim Hahn [Thu, 21 May 2020 21:04:17 +0000 (17:04 -0400)]
Insert pending record when operation starts

Modified code to insert a pending record when an operation starts.
Also modified it to update the existing record when the operation
completes, rather than adding a new record.
Note: the "outcome" for a "pending" record is left unset (i.e., it
is null).

Issue-ID: POLICY-2581
Change-Id: Ia1a02ed5a16b8af1328a49b22478fd57c4b9aca0
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agorelease 1.6.4 docker container 16/108016/2 6.0.0-ONAP
jhh [Wed, 20 May 2020 22:17:28 +0000 (17:17 -0500)]
release 1.6.4 docker container

Issue-ID: POLICY-2514
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I76daf2eb6ce0526f8295b182b69b59dd23d3b17d
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agorelease maven artifacts 14/108014/1
jhh [Wed, 20 May 2020 20:51:08 +0000 (15:51 -0500)]
release maven artifacts

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

4 years agoPoint to released drools-pdp 09/108009/1
Pamela Dragosh [Wed, 20 May 2020 19:15:43 +0000 (15:15 -0400)]
Point to released drools-pdp

Issue-ID: POLICY-2514
Change-Id: I3d40c6016b9ce4adc95ed7a4e59719e94f9f5b26
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "add stability test scripts"
Pamela Dragosh [Tue, 19 May 2020 22:56:15 +0000 (22:56 +0000)]
Merge "add stability test scripts"

4 years agoadd stability test scripts 09/107909/3
jhh [Tue, 19 May 2020 18:31:39 +0000 (13:31 -0500)]
add stability test scripts

Issue-ID: POLICY-2456
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I89a325cfc2dedd10936c28176a0e11e5c54f24b4
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoMerge "Add getter for ControlLoopPolicy instance in ControlLoopProcessor"
Jorge Hernandez [Tue, 19 May 2020 18:04:31 +0000 (18:04 +0000)]
Merge "Add getter for ControlLoopPolicy instance in ControlLoopProcessor"

4 years agoPoint to released artifacts 95/107895/1
Pamela Dragosh [Tue, 19 May 2020 16:36:44 +0000 (12:36 -0400)]
Point to released artifacts

Issue-ID: POLICY-2514
Change-Id: I10aea2d45c9dae37d7c3c14a82a34da661c3ea60
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoAdd getter for ControlLoopPolicy instance in ControlLoopProcessor 22/107822/1
dc443y [Mon, 18 May 2020 21:34:02 +0000 (16:34 -0500)]
Add getter for ControlLoopPolicy instance in ControlLoopProcessor

This is to allow other frameworks, such as M2, to obtain the
ControlLoopPolicy instance after the raw ToscaPolicy has
been adapted.

Issue-ID: POLICY-2574
Change-Id: I003e60991f6e4007bd30f0e9392f6fa8bf21733a
Signed-off-by: dc443y <dc443y@att.com>
4 years agoDo not encode null fields in SO request 98/107698/1
Jim Hahn [Thu, 14 May 2020 16:15:07 +0000 (12:15 -0400)]
Do not encode null fields in SO request

Currently, the default serialization provider for HTTP clients
is jackson, which encodes null fields in requests.  Unfortunately,
SO does not like the null fields.
Fixed this by modifying the SO config parameters to use the GSON
serialization provider.

Issue-ID: POLICY-2568
Change-Id: I6c2e7c985f23e09940d89409c2a84303bfd54b8a
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoMerge "Handle duplicate events in drools-apps"
Jorge Hernandez [Wed, 13 May 2020 19:56:07 +0000 (19:56 +0000)]
Merge "Handle duplicate events in drools-apps"

4 years agoHandle duplicate events in drools-apps 37/107637/3
Jim Hahn [Wed, 13 May 2020 16:55:37 +0000 (12:55 -0400)]
Handle duplicate events in drools-apps

Modified the frankfurt rules to compare the event objects instead of
comparing the request ID when determining if an event is new.  The
event object's equals() method ignores the request ID when doing the
comparison, thus it will treat an event as a duplicate even if the
request ID is different, which is the behavior we want.

Also removed the @Ignore from the junit that tests for duplicate
events in the hope that this change will fix it.  If the docker build
still breaks, then @Ignore can be added back in.

Issue-ID: POLICY-2557
Change-Id: If2b9fd26473d78a356218b951bfe160f93daeb32
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoMake that SO actor uses http by default 35/107635/1
jhh [Wed, 13 May 2020 15:21:29 +0000 (10:21 -0500)]
Make that SO actor uses http by default

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

4 years agodelete dependency section in junit test op.pom 00/107400/1
jhh [Fri, 8 May 2020 18:42:11 +0000 (13:42 -0500)]
delete dependency section in junit test op.pom

This is to correct junit failures

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

4 years agochange the @api path in rest transactions api 22/106822/2
jhh [Wed, 29 Apr 2020 16:41:25 +0000 (11:41 -0500)]
change the @api path in rest transactions api

Issue-ID: POLICY-2530
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: If21e0607edcf75f491be61012779ddfa5d880105
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoMerge "Plain move from test dir to src"
Jorge Hernandez [Tue, 28 Apr 2020 13:54:44 +0000 (13:54 +0000)]
Merge "Plain move from test dir to src"

4 years agoBump drools-apps to 1.6.4-SNAPSHOT 41/106741/1
Pamela Dragosh [Tue, 28 Apr 2020 12:40:52 +0000 (08:40 -0400)]
Bump drools-apps to 1.6.4-SNAPSHOT

Issue-ID: POLICY-2510
Change-Id: Ic431fa80f7b389c84b799f8662df81b4f0ea124f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPlain move from test dir to src 12/106712/2
jhh [Mon, 27 Apr 2020 23:56:34 +0000 (18:56 -0500)]
Plain move from test dir to src

The file was placed there by mistake.

Issue-ID: POLICY-2456
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I37a0bad7963aa9fe2931d68f5779355471cda345
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoRelease drools-apps 1.6.3 docker images 89/106689/1
Pamela Dragosh [Mon, 27 Apr 2020 15:35:30 +0000 (11:35 -0400)]
Release drools-apps 1.6.3 docker images

Issue-ID: POLICY-2510
Change-Id: I1be48970e10b9b536740e98f3d16961e3abb6584
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease drools-apps 1.6.3 java 80/106680/1
Pamela Dragosh [Mon, 27 Apr 2020 13:54:24 +0000 (09:54 -0400)]
Release drools-apps 1.6.3 java

Issue-ID: POLICY-2510
Change-Id: Ie1be4eca3007ab05a613e60235797a5648857fc7
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump drools-apps 1.6.3-SNAPSHOT 76/106676/1
Pamela Dragosh [Mon, 27 Apr 2020 12:41:07 +0000 (08:41 -0400)]
Bump drools-apps 1.6.3-SNAPSHOT

Before I can re-release, the patch needs to be bumped.

Issue-ID: POLICY-2510
Change-Id: Ib868d0d72cd28f87b5eb7c233f239d219f699954
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to released policy/parent 70/106670/1
Pamela Dragosh [Mon, 27 Apr 2020 11:33:27 +0000 (07:33 -0400)]
Point to released policy/parent

Pointing to an unavailable SNAPSHOT

Issue-ID: POLICY-2510
Change-Id: Ibc9743908cf67b58db25dadfa1d2151dd72ace57
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease drools-apps 1.6.2 docker image 30/106630/1
Pamela Dragosh [Fri, 24 Apr 2020 21:42:18 +0000 (17:42 -0400)]
Release drools-apps 1.6.2 docker image

Issue-ID: POLICY-2510
Change-Id: I10b78ee3a07f13cdbcf9e7216c927d4b66fdf14f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease droosl-apps 1.6.2 java 26/106626/1
Pamela Dragosh [Fri, 24 Apr 2020 20:58:17 +0000 (16:58 -0400)]
Release droosl-apps 1.6.2 java

Issue-ID: POLICY-2510
Change-Id: I69552a7989d1af08d4345c2b901a9ba4acd28514
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to released artifacts 19/106619/1
Pamela Dragosh [Fri, 24 Apr 2020 20:00:28 +0000 (16:00 -0400)]
Point to released artifacts

Issue-ID: POLICY-2510
Change-Id: Ie1c77339f42d990dcd608b8afad7153b04fa24f9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agotransaction tracking improvements with telemetry 20/106520/3
jhh [Thu, 23 Apr 2020 18:18:48 +0000 (13:18 -0500)]
transaction tracking improvements with telemetry

Issue-ID: POLICY-2456
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I75b7e8e787d567cf120d7ae7d65d1bff12e8e24e
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoAdd properties needed by A&AI PNF Operation 71/106271/1
Jim Hahn [Mon, 20 Apr 2020 12:41:34 +0000 (08:41 -0400)]
Add properties needed by A&AI PNF Operation

Added properties needed by A&AI PNF Operation.

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

4 years agoChange CDS operation name to generic "any" 68/106168/1
Jim Hahn [Thu, 16 Apr 2020 23:02:30 +0000 (19:02 -0400)]
Change CDS operation name to generic "any"

Issue-ID: POLICY-2504
Change-Id: I4dec3dfd62fa230ad8f0de66c0d1b71e5393bcbd
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoFix CDS actor properties 14/106114/2
Jim Hahn [Thu, 16 Apr 2020 16:46:50 +0000 (12:46 -0400)]
Fix CDS actor properties

CDS actor properties in drools-apps did not match the properties
in the actor, itself.  Fixed them (as best I could be inspection).

Issue-ID: POLICY-2501
Change-Id: Ibb4ac5ee59762bd740342c1d54fc472a9fca8968
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agobump to 1.6.2-SNAPSHOT 20/106020/1
jhh [Wed, 15 Apr 2020 14:00:31 +0000 (09:00 -0500)]
bump to 1.6.2-SNAPSHOT

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

4 years agorelease 1.6.1 docker image 79/105979/1
jhh [Wed, 15 Apr 2020 01:39:56 +0000 (20:39 -0500)]
release 1.6.1 docker image

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

4 years agoRelease 1.6.1 artifacts 70/105970/1
jhh [Wed, 15 Apr 2020 00:10:21 +0000 (19:10 -0500)]
Release 1.6.1 artifacts

Issue-ID: POLICY-2378
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I6cb53e24996486e98535cdeb99ac0e610d696723
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoPoint to released common/models/drools 58/105958/1
jhh [Tue, 14 Apr 2020 21:11:43 +0000 (16:11 -0500)]
Point to released common/models/drools

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

4 years agoPoint to common/models fix 70/105870/1
Pamela Dragosh [Mon, 13 Apr 2020 20:46:58 +0000 (16:46 -0400)]
Point to common/models fix

Fix in naming policy and common yaml string fix

Issue-ID: POLICY-2486
Change-Id: I311ec07f58c5dd6fe17d8b5e9368e3b78b73e894
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoAdded vpci and vsonh tests 01/104301/22
pramod.jamkhedkar [Tue, 24 Mar 2020 19:54:09 +0000 (15:54 -0400)]
Added vpci and vsonh tests

Added test cases for vpci and vsonh usecases

Issue-ID: POLICY-2162
Change-Id: Ia69b16e74b82b92366b5065eeccab8d35f647742
Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
Signed-off-by: Jim Hahn <jrh3@att.com>
Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
4 years agoAdd SDNR notifications to frankfurt rules 63/105563/1
Jim Hahn [Wed, 8 Apr 2020 18:40:37 +0000 (14:40 -0400)]
Add SDNR notifications to frankfurt rules

Issue-ID: POLICY-2468
Change-Id: Ibf4d3e5f62fa3106028dcf85050c270b8eab0a89
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoPoint to parent SNAPSHOT 58/105258/1
Pamela Dragosh [Tue, 7 Apr 2020 12:53:30 +0000 (08:53 -0400)]
Point to parent SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: I1cb44b953e82e73dc35e5568b2df5ef31484a4fd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "disable but not removed usecases"
Jorge Hernandez [Fri, 3 Apr 2020 15:07:29 +0000 (15:07 +0000)]
Merge "disable but not removed usecases"

4 years agoremove drools-pdp parent from junit test 46/105046/1
jhh [Thu, 2 Apr 2020 21:15:11 +0000 (16:15 -0500)]
remove drools-pdp parent from junit test

parent was wrong an was running into build
problems.

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

4 years agodisable but not removed usecases 26/105026/1
jhh [Thu, 2 Apr 2020 18:47:20 +0000 (13:47 -0500)]
disable but not removed usecases

integration testing to be focused on the new frankfurt controller

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

4 years agoSynchronize methods for rules 92/104992/1
Jim Hahn [Thu, 2 Apr 2020 13:57:52 +0000 (09:57 -0400)]
Synchronize methods for rules

Added "synchronized" to a few more methods in the event manager class,
just to be safe, as they view/modify data that may be viewed/modified
by other threads.

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

4 years agoUpdate path properties for new actors 18/104618/2
Jim Hahn [Fri, 27 Mar 2020 21:59:07 +0000 (17:59 -0400)]
Update path properties for new actors

Some of the new actors were modified to get their path prefixes
from the property files.  In addition, the models code was modified
to allow an empty "path", so that is now used, where appropriate.

Issue-ID: POLICY-2441
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I4573c5e2a506fb67be9bd040ce047612007fd969
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoPoint to latest snapshots 97/104597/1
Pamela Dragosh [Fri, 27 Mar 2020 17:10:27 +0000 (13:10 -0400)]
Point to latest snapshots

Issue-ID: POLICY-2378
Change-Id: Idcc8a7117c7ff898558e7efce6b51c8ebb4ad7be
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoFix userName property for http clients 30/104530/1
Jim Hahn [Thu, 26 Mar 2020 20:19:23 +0000 (16:19 -0400)]
Fix userName property for http clients

The http client property files had "username", but the correct
property name is "userName".  Fixed.
Also updated the models version to the latest snapshot to pick
up the fix to the APPC actor.

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

4 years agoExpand env variables in frankfurt properties 98/104498/2
Jim Hahn [Thu, 26 Mar 2020 13:53:53 +0000 (09:53 -0400)]
Expand env variables in frankfurt properties

Issue-ID: POLICY-2434
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I1109a053e46dc8201ff9676da0c9ff93d8b631d5
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoMerge "Fix db exception in frankfurt junit"
Jorge Hernandez [Wed, 25 Mar 2020 22:30:09 +0000 (22:30 +0000)]
Merge "Fix db exception in frankfurt junit"

4 years agoMerge "Fix db exception in usecases junit"
Jorge Hernandez [Wed, 25 Mar 2020 22:29:55 +0000 (22:29 +0000)]
Merge "Fix db exception in usecases junit"

4 years agoMerge "Restore SO_URL to usecases controller"
Jorge Hernandez [Wed, 25 Mar 2020 22:29:25 +0000 (22:29 +0000)]
Merge "Restore SO_URL to usecases controller"

4 years agoMerge "Bump drools-applications to 1.6.1-SNAPSHOT"
Pamela Dragosh [Wed, 25 Mar 2020 20:20:43 +0000 (20:20 +0000)]
Merge "Bump drools-applications to 1.6.1-SNAPSHOT"

4 years agoRestore SO_URL to usecases controller 27/104427/1
Jim Hahn [Wed, 25 Mar 2020 20:18:07 +0000 (16:18 -0400)]
Restore SO_URL to usecases controller

When a trailing "/" is added to the CONTEXT_URI, it will likely
break the usecases SO operations.  Thus the SO_URL is being
reinstituted for this one actor.

Issue-ID: POLICY-2441
Change-Id: I360d1701a0615309a27afbdf7da83f68505626d4
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoBump drools-applications to 1.6.1-SNAPSHOT 08/104408/2
Peyton Puckett [Wed, 25 Mar 2020 19:05:50 +0000 (14:05 -0500)]
Bump drools-applications to 1.6.1-SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: Ia97bc810e6ae23ffb0ecea28ddbab385d7d9af6d
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoFix db exception in frankfurt junit 11/104411/1
Jim Hahn [Wed, 25 Mar 2020 19:24:41 +0000 (15:24 -0400)]
Fix db exception in frankfurt junit

Frankfurt junits were generating the following output:

  Value too long for column "TARGET VARCHAR(50)":
    "'Target [type=VNF, resourceId=bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38]'

The issue turned out to be caused by the fact that the rules for the
new actor were storing the "Target" instead of the "TargetEntity"
in the DB field.  Modified the code to store the target entity, as the
the usecases rules do.

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

4 years agoMerge "Adjust properties for context URI with slash"
Ram Krishna Verma [Wed, 25 Mar 2020 19:19:31 +0000 (19:19 +0000)]
Merge "Adjust properties for context URI with slash"

4 years agoFix db exception in usecases junit 07/104407/2
Jim Hahn [Wed, 25 Mar 2020 18:44:55 +0000 (14:44 -0400)]
Fix db exception in usecases junit

Issue-ID: POLICY-2441
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I1233d985f3e6fc6260912e4ad00d46e7c3e58430
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoRelease 1.6.0 drools-applications image 01/104401/2
Peyton Puckett [Wed, 25 Mar 2020 18:00:19 +0000 (13:00 -0500)]
Release 1.6.0 drools-applications image

Issue-ID: POLICY-2378
Change-Id: Id49ac3b1e710d4f0a0e945eb93f098e2b75d9ea3
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoAdjust properties for context URI with slash 04/104404/1
Jim Hahn [Wed, 25 Mar 2020 18:22:28 +0000 (14:22 -0400)]
Adjust properties for context URI with slash

Added a trailing "/" to the context URI for the various actors.
Updated the properties to accomodate it.
Also fixed the "path" for a couple of actors; the path property
only applies at the individual operation level, not at the actor
level.

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

4 years agoRelease 1.6.0 drools-applications artifacts 95/104395/1
Peyton Puckett [Wed, 25 Mar 2020 16:50:40 +0000 (11:50 -0500)]
Release 1.6.0 drools-applications artifacts

Issue-ID: POLICY-2378
Change-Id: I1ff4d1e2cc207fef88d65c26418b7681e4fcd119
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoAdd @Ignore to test that is failing during docker build 80/104380/1
Peyton Puckett [Wed, 25 Mar 2020 15:29:18 +0000 (10:29 -0500)]
Add @Ignore to test that is failing during docker build

Issue-ID: POLICY-2378
Change-Id: I7b466a3846b99cd8630d793139799a6885688748
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoMerge "Replace url with host/port in drools-apps"
Jorge Hernandez [Wed, 25 Mar 2020 13:42:59 +0000 (13:42 +0000)]
Merge "Replace url with host/port in drools-apps"

4 years agoMerge "M2 junit intermittent timeout issue"
Liam Fallon [Wed, 25 Mar 2020 08:06:19 +0000 (08:06 +0000)]
Merge "M2 junit intermittent timeout issue"

4 years agoUpdate parent pom to point to drools-pdp image 10/104310/1
Peyton Puckett [Tue, 24 Mar 2020 21:10:51 +0000 (16:10 -0500)]
Update parent pom to point to drools-pdp image

Issue-ID: POLICY-2378
Change-Id: Ic5e2a1cd4c1934235f0ef65a624f80e1a7567f66
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoM2 junit intermittent timeout issue 97/104297/2
Joseph Chou [Tue, 24 Mar 2020 19:30:25 +0000 (15:30 -0400)]
M2 junit intermittent timeout issue

Update code to increase maximum wait time

Issue-ID: POLICY-2435
Change-Id: Ib9d7452743c6cdb39c56f4bbed0fd7fd903dc8bc
Signed-off-by: Joseph Chou <jc2555@att.com>
4 years agoReplace url with host/port in drools-apps 92/104292/1
Jim Hahn [Tue, 24 Mar 2020 19:08:31 +0000 (15:08 -0400)]
Replace url with host/port in drools-apps

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

4 years agoConfigure http client URIs via env properties 56/104256/3
Jim Hahn [Tue, 24 Mar 2020 14:41:21 +0000 (10:41 -0400)]
Configure http client URIs via env properties

The context URI path for the various actors needs to be
configurable via properties specified in the OOM charts.

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

4 years agoMerge "Remove vLB from drools-apps"
Pamela Dragosh [Tue, 24 Mar 2020 12:17:15 +0000 (12:17 +0000)]
Merge "Remove vLB from drools-apps"

4 years agoPoint to released artifacts 00/104200/2
Pamela Dragosh [Tue, 24 Mar 2020 00:07:38 +0000 (20:07 -0400)]
Point to released artifacts

Issue-ID: POLICY-2378
Change-Id: Ibb9bf09a8f6e678c87049d2154787c9e2ec3442b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoEnable guards in junit tests 85/104185/2
Jim Hahn [Mon, 23 Mar 2020 19:49:28 +0000 (15:49 -0400)]
Enable guards in junit tests

Flipped the flag(s) to enable guard checks in the various junit
tests for the Usecases and Frankfurt controllers.  Note: the guard
checks use the guard simulator.
Modified new actor code to not include operation history on first
"guard denied" report (i.e., make it work like usecases does).

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

4 years agoRemove vLB from drools-apps 96/104096/4
Jim Hahn [Fri, 20 Mar 2020 21:17:00 +0000 (17:17 -0400)]
Remove vLB from drools-apps

Added a test for legacy policy to vDNS.

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

4 years agoFix frankfurt controller properties 97/104097/3
Jim Hahn [Fri, 20 Mar 2020 21:57:35 +0000 (17:57 -0400)]
Fix frankfurt controller properties

Fleshed out more of SDNC properties.  Still don't know what the
"path" should be.
Added SDNR.
Removed invalid topic sources and sinks.
Changed some types from source to sink (or vice versa).

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

4 years agoDisable guard via env variable 80/104080/2
Jim Hahn [Fri, 20 Mar 2020 18:05:42 +0000 (14:05 -0400)]
Disable guard via env variable

Default to "false".  Can override in CSITs.

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

4 years agoMerge "Last sonar fix for drools-apps"
Liam Fallon [Fri, 20 Mar 2020 09:29:31 +0000 (09:29 +0000)]
Merge "Last sonar fix for drools-apps"

4 years agoMerge "Add rainyDayTest for VFW"
Ram Krishna Verma [Thu, 19 Mar 2020 15:40:52 +0000 (15:40 +0000)]
Merge "Add rainyDayTest for VFW"

4 years agoLast sonar fix for drools-apps 55/103955/1
Jim Hahn [Thu, 19 Mar 2020 13:41:10 +0000 (09:41 -0400)]
Last sonar fix for drools-apps

Remaining issues will be examined/addressed in Guilin.

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

4 years agoAdd rainyDayTest for VFW 09/103809/5
Peyton Puckett [Tue, 17 Mar 2020 16:30:11 +0000 (11:30 -0500)]
Add rainyDayTest for VFW

Added less restrictive filter condition to consider discarded messages

Issue-ID: POLICY-2431
Change-Id: I0bc5e34636699094c97bd7e5669f66df875cd6ae
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoONAP junit code update 23/103823/2
Joseph Chou [Tue, 17 Mar 2020 22:29:53 +0000 (18:29 -0400)]
ONAP junit code update

M2 junit failed on AppcLcmTest

Issue-ID: POLICY-2435
Change-Id: I30a2db72b6b127857dc3db2aeda75e46fa919dcd
Signed-off-by: Joseph Chou <jc2555@att.com>
4 years agoMore sonar fixes in drools-apps 97/103797/3
Jim Hahn [Tue, 17 Mar 2020 13:52:03 +0000 (09:52 -0400)]
More sonar fixes in drools-apps

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

4 years agoFix artifact name in frankfurt controller 69/103769/1
Jim Hahn [Mon, 16 Mar 2020 22:26:08 +0000 (18:26 -0400)]
Fix artifact name in frankfurt controller

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

4 years agoMerge "Fix sonar issues in drools-applications"
Ram Krishna Verma [Fri, 13 Mar 2020 21:37:47 +0000 (21:37 +0000)]
Merge "Fix sonar issues in drools-applications"

4 years agoAdd frankfurt feature to apps/docker zips 80/103680/1
Jim Hahn [Fri, 13 Mar 2020 16:14:39 +0000 (12:14 -0400)]
Add frankfurt feature to apps/docker zips

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

4 years agoMerge "Delete template.demo submodule, amsterdam controller"
Jim Hahn [Fri, 13 Mar 2020 15:25:26 +0000 (15:25 +0000)]
Merge "Delete template.demo submodule, amsterdam controller"

4 years agoFix sonar issues in drools-applications 70/103670/2
Jim Hahn [Thu, 12 Mar 2020 19:16:44 +0000 (15:16 -0400)]
Fix sonar issues in drools-applications

Fixed various sonar issues, including moving some
code to policy-common.
Fixed some eclipse warnings, including deprecated junit APIs.

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

4 years agoDelete template.demo submodule, amsterdam controller 34/103534/3
Peyton Puckett [Wed, 11 Mar 2020 16:09:56 +0000 (11:09 -0500)]
Delete template.demo submodule, amsterdam controller

Issue-ID: POLICY-2421
Change-Id: I0e61e7b3272f5c7babceb41e4e249716af4529cf
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoRetool rules tests 99/103399/6
Jim Hahn [Mon, 9 Mar 2020 19:15:05 +0000 (15:15 -0400)]
Retool rules tests

Extracted common code from various XxxBaseTest classes into:
- Topics class to manage messages for test topics
- HttpClients class to manage HttpClient objects for tests
- Simulators class to manage simulators for tests
- Rules class to manage start up and shutdown of rules

Merged remaining code from XxxBaseTest classes into a single
class.  Modified the Frankfurt and Usescases tests to subclass
from this new class and specify just the relevant tests to be
executed.

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

4 years agoUse predefined domain policies from drools core 64/103464/1
jhh [Tue, 10 Mar 2020 17:41:49 +0000 (12:41 -0500)]
Use predefined domain policies from drools core

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

4 years agoBug fixes to new rules 11/103311/5
Jim Hahn [Fri, 6 Mar 2020 18:07:08 +0000 (13:07 -0500)]
Bug fixes to new rules

Also added VdnsTest, VfwTest, and VcpeTest.

Fixed a number of issues with notifications:
- event data (e.g., AAI) was missing
- notification was missing for the start of an operation
- "message" and "history" fields should contain Target object,
  target entity
- "message" field was missing various details (e.g., start time)

Still missing subRequestId - that will require enhancements to
the actors.

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

4 years agoMerge "ONAP m2 base junit coverage"
Pamela Dragosh [Mon, 9 Mar 2020 18:11:17 +0000 (18:11 +0000)]
Merge "ONAP m2 base junit coverage"

4 years agoAdd frankfurt rules for Actor redesign 79/102179/25
Jim Hahn [Sat, 22 Feb 2020 22:11:20 +0000 (17:11 -0500)]
Add frankfurt rules for Actor redesign

Note: VcpeTest and VfwTest are not included, as they depend on updates
to the APPC and APPC-LCM Actors.
Added feature-controlloop-frankfurt.
Added HTTP client property files to feature-controlloop-management.

Updates per review comments:
- pom changes
- simplify FrankfurtBase
- rename event-svc-http.properties
- change "usescases" to "frankfurt"
- use blanks for CDS property defaults
- trailing spaces in http-client files
- add https property to http-client files

Added newlines to config files that appear to be missing them (based
on feedback from gerrit).

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

4 years agoONAP m2 base junit coverage 58/100558/3
Chou, Joseph (jc2555) [Tue, 21 Jan 2020 18:07:21 +0000 (13:07 -0500)]
ONAP m2 base junit coverage

Added testcases to improve code coverage

Issue-ID: POLICY-2289
Change-Id: Ib573ae668b5bca008c4600df99e7f1cf4053d1a1
Signed-off-by: Joseph Chou <jc2555@att.com>
4 years agoMerge "decouple topics from controllers"
Jorge Hernandez [Wed, 4 Mar 2020 14:04:50 +0000 (14:04 +0000)]
Merge "decouple topics from controllers"

4 years agodecouple topics from controllers 19/102919/1
jhh [Wed, 4 Mar 2020 00:15:17 +0000 (18:15 -0600)]
decouple topics from controllers

native policies will require topics configured at installation
(there's no policy to add them).   This configuration style
also cleans the installation tidier (topics can
be overriden or new ones added when being placed in the mounted config
directory).

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