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
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>
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>
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
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
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>
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
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>
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>
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>
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>
Jorge Hernandez [Fri, 3 Apr 2020 15:07:29 +0000 (15:07 +0000)]
Merge "disable but not removed usecases"
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
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
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
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>
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>
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
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>
Jorge Hernandez [Wed, 25 Mar 2020 22:30:09 +0000 (22:30 +0000)]
Merge "Fix db exception in frankfurt junit"
Jorge Hernandez [Wed, 25 Mar 2020 22:29:55 +0000 (22:29 +0000)]
Merge "Fix db exception in usecases junit"
Jorge Hernandez [Wed, 25 Mar 2020 22:29:25 +0000 (22:29 +0000)]
Merge "Restore SO_URL to usecases controller"
Pamela Dragosh [Wed, 25 Mar 2020 20:20:43 +0000 (20:20 +0000)]
Merge "Bump drools-applications to 1.6.1-SNAPSHOT"
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>
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>
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
Ram Krishna Verma [Wed, 25 Mar 2020 19:19:31 +0000 (19:19 +0000)]
Merge "Adjust properties for context URI with slash"
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>
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>
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
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>
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>
Jorge Hernandez [Wed, 25 Mar 2020 13:42:59 +0000 (13:42 +0000)]
Merge "Replace url with host/port in drools-apps"
Liam Fallon [Wed, 25 Mar 2020 08:06:19 +0000 (08:06 +0000)]
Merge "M2 junit intermittent timeout issue"
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>
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>
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
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
Pamela Dragosh [Tue, 24 Mar 2020 12:17:15 +0000 (12:17 +0000)]
Merge "Remove vLB from drools-apps"
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>
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
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
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
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
Liam Fallon [Fri, 20 Mar 2020 09:29:31 +0000 (09:29 +0000)]
Merge "Last sonar fix for drools-apps"
Ram Krishna Verma [Thu, 19 Mar 2020 15:40:52 +0000 (15:40 +0000)]
Merge "Add rainyDayTest for VFW"
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
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>
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>
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
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
Ram Krishna Verma [Fri, 13 Mar 2020 21:37:47 +0000 (21:37 +0000)]
Merge "Fix sonar issues in drools-applications"
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
Jim Hahn [Fri, 13 Mar 2020 15:25:26 +0000 (15:25 +0000)]
Merge "Delete template.demo submodule, amsterdam controller"
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
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>
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
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
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
Pamela Dragosh [Mon, 9 Mar 2020 18:11:17 +0000 (18:11 +0000)]
Merge "ONAP m2 base junit coverage"
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
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>
Jorge Hernandez [Wed, 4 Mar 2020 14:04:50 +0000 (14:04 +0000)]
Merge "decouple topics from controllers"
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
Pamela Dragosh [Tue, 3 Mar 2020 14:14:57 +0000 (09:14 -0500)]
use policy/parent awaitility
Also cleaned up a bunch of these pom's, they do not all need to
declare JUnit, assertjr, mockito testing classes. Can use more
cleanup in some other common dependencies, but we'll defer.
Issue-ID: POLICY-2381
Change-Id: Ib1149a0cd0215d1a38d5b625634440413cf79089
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Sun, 1 Mar 2020 23:02:35 +0000 (18:02 -0500)]
Use apache Pair not Sdnr custom Pair
Companion review to https://gerrit.onap.org/r/c/policy/models/+/102162
in which use of Pair from apache vs creating our own.
Removed an unused import.
Issue-ID: POLICY-2382
Change-Id: Id3cf9a170480c7a621dddf93540d61f993f3553a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jim Hahn [Sun, 1 Mar 2020 03:48:59 +0000 (22:48 -0500)]
Tosca policies missing "final_xxx" fields
The code that makes Tosca policies backward compatible was not
copying the final_xxx fields (e.g., final_failure_retries). Added
code to copy the fields.
Issue-ID: POLICY-2376
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I05d746ee9c8ace263c7b33a245221c5eb71b612c
jhh [Tue, 25 Feb 2020 00:14:04 +0000 (18:14 -0600)]
vDNS tosca compliant policies support
Issue-ID: POLICY-2383
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I5d5d864b2853f6e7e0c7e1096cb17746500f2495
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
jhh [Fri, 21 Feb 2020 00:19:36 +0000 (18:19 -0600)]
Tosca compliant vFirewall
Issue-ID: POLICY-2376
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I362ebbd941c400a6ffc3e952e66ca2d624afbfdd
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Liam Fallon [Tue, 18 Feb 2020 16:12:02 +0000 (16:12 +0000)]
Merge "tosca compliant op policy support + vcpe test"
Jorge Hernandez [Tue, 18 Feb 2020 14:22:24 +0000 (14:22 +0000)]
Merge "Inherit from PDP-D (native policies) base image"
jhh [Thu, 13 Feb 2020 00:20:06 +0000 (18:20 -0600)]
tosca compliant op policy support + vcpe test
Tosca Compliant and Toscal Legacy Operational policies are
both supported for backwards compatibility.
vCPE usecase junits to support 2 equivalent policies,
one tosca compliant and the other one legacy.
Issue-ID: POLICY-2360
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iafbfc92bbec42e6a3fe4ceb4a9a17c85e636ea14
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
jhh [Mon, 17 Feb 2020 01:49:42 +0000 (19:49 -0600)]
Inherit from PDP-D (native policies) base image
Depends on https://gerrit.onap.org/r/#/c/policy/docker/+/101758/
for package cleanup and the native Dockerfile refactoring from
https://gerrit.onap.org/r/#/c/policy/drools-pdp/+/101802/.
Issue-ID: POLICY-2181
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I6cf2b945157a91abd9985bcff1e70ae6a30ae15d
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Bruno Sakoto [Fri, 14 Feb 2020 20:53:28 +0000 (15:53 -0500)]
Change ip adresses used for m2 tests
By default Mac OS is not able to use loopback addresses other than
127.0.0.1.
Issue-ID: POLICY-2368
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ibf4a884d2669a5f4969960963638aa213eebf172
dg5762 [Wed, 12 Feb 2020 22:28:22 +0000 (16:28 -0600)]
Add tests to AppcLcm to increase coverage
Add additional test cases to AppcLcm to increase jUnit test coverage
this includs adding the file AppcLcmActorTest.java. Minimum test
converage for the java files is over 80%.
Issue-ID: POLICY-2291
Signed-off-by: dg5762 <dg5762@att.com>
Change-Id: I26ed2b90f12f51568ceed843b65d2f119155391f
Jim Hahn [Sun, 9 Feb 2020 06:43:12 +0000 (06:43 +0000)]
Merge "Updating module names to resolve conflicts"
jhh [Fri, 7 Feb 2020 19:10:03 +0000 (13:10 -0600)]
activate refactoring in ControlLoopEventManager
This is to support backwards compatible implementation
of Tosca Compliant Operational Policies.
Issue-ID: POLICY-2360
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I0e8b96b19375c58e4b62e0dcd1da5c508091ea2f
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Ram Krishna Verma [Fri, 7 Feb 2020 18:03:27 +0000 (13:03 -0500)]
Updating module names to resolve conflicts
Issue-ID: POLICY-2355
Change-Id: If13badaf332f5e4341e23b9dcf22e177e9b67ff2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
jhh [Thu, 6 Feb 2020 18:16:20 +0000 (12:16 -0600)]
Use CanonicalOnset in usecases.drl
Issue-ID: POLICY-2323
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ic1258e17c08eacbf8d3a57a6562ba470420e615f
jhh [Fri, 17 Jan 2020 20:48:07 +0000 (14:48 -0600)]
DCAE Onset flood prevention
Issue-ID: POLICY-2323
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I08cd55b442ccce3e0eaaa63c1ebd4422c1e0a0d5
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Peyton Puckett [Thu, 16 Jan 2020 18:00:29 +0000 (12:00 -0600)]
Add jUnit Test Coverage M2 Guard
Issue-ID: POLICY-2290
Change-Id: I05a737333141576512841d6872ecdb0a089a0a90
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
Pamela Dragosh [Fri, 17 Jan 2020 12:55:30 +0000 (07:55 -0500)]
Update m2 test to mockito2 for JDK 11
Peyton's review was pulled in before Ali's JDK 11 fix. So
unfortunately this update did not get done.
Issue-ID: POLICY-1587
Change-Id: I9666b6e2f2327183e15bfe19d34515d0426c8ff0
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jorge Hernandez [Thu, 16 Jan 2020 17:37:39 +0000 (17:37 +0000)]
Merge "Update sonar config"
Pamela Dragosh [Thu, 16 Jan 2020 17:06:43 +0000 (12:06 -0500)]
Update sonar config
Get rid of deprecated sonar settings, exclude sub-module that
doesn't have code, and ensure there is a single jacoco-ut.exec
file created.
Issue-ID: POLICY-2321
Change-Id: I05d1c0e4d599aff7c6ad0fec39ff1220cdb9a72d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Thu, 16 Jan 2020 16:29:24 +0000 (16:29 +0000)]
Merge "policy/drools-apps jdk11 upgrades"
Hockla, Ali (ah999m) [Wed, 15 Jan 2020 21:04:09 +0000 (15:04 -0600)]
policy/drools-apps jdk11 upgrades
Issue-ID: POLICY-1587
Change-Id: I02bef6c829f2f24954ae73fb0c540ab7198775ce
Signed-off-by: Hockla, Ali (ah999m) <ah999m@att.com>
Peyton Puckett [Mon, 13 Jan 2020 16:51:34 +0000 (10:51 -0600)]
Add jUnit Test Coverage M2 Util
Issue-ID: POLICY-2293
Change-Id: Ia189239911053bd8937c0791aafcc55207c11dcf
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
Pamela Dragosh [Mon, 13 Jan 2020 13:33:49 +0000 (13:33 +0000)]
Merge "Add m2 model, including the LCM application"
Pamela Dragosh [Mon, 13 Jan 2020 13:32:53 +0000 (13:32 +0000)]
Merge "Parameterize base-image version for drools-apps"
Ram Krishna Verma [Mon, 13 Jan 2020 12:57:50 +0000 (12:57 +0000)]
Merge "Support override of xml config files"
Hockla, Ali (ah999m) [Fri, 10 Jan 2020 21:52:56 +0000 (15:52 -0600)]
Point to policy/models release version
Issue-ID: POLICY-1592
Change-Id: I34ea6afc94d36802a695c7b15b61fcaa0112c427
Signed-off-by: Hockla, Ali (ah999m) <ah999m@att.com>
jhh [Fri, 10 Jan 2020 19:56:39 +0000 (13:56 -0600)]
Support override of xml config files
This included logback*.xml (including controller ones).
Issue-ID: POLICY-2308
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I69471fc0ce5b6ea143560f78019a55daedfd465b
Straubs, Ralph (rs8887) [Tue, 19 Nov 2019 10:11:23 +0000 (04:11 -0600)]
Add m2 model, including the LCM application
Issue-ID: POLICY-1948
Change-Id: I18a5231d3102073c928a591c9e91b241b7093680
Signed-off-by: Straubs, Ralph (rs8887) <rs8887@att.com>
jhh [Fri, 10 Jan 2020 00:29:35 +0000 (18:29 -0600)]
Add ControlLoopParams from models repo.
This class is only useful under drools applications and
eventually will be deprecated to accommodate the new
Operational Policy Types.
Issue-ID: POLICY-2146
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I68927cb144a33fac6fe330be15fe60aee32b15a1
Bruno Sakoto [Tue, 7 Jan 2020 22:48:00 +0000 (17:48 -0500)]
Parameterize base-image version for drools-apps
Issue-ID: POLICY-2318
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I5cc2761adb2621bca094fb035e626dd40baa08e1
Pamela Dragosh [Fri, 3 Jan 2020 13:09:14 +0000 (13:09 +0000)]
Revert "Parameterize base-image version for drools-apps"
This reverts commit
a894ffb5f580dec7ab4e8ea367107fcee09fca1b.
Reason for revert: Merge failure
Issue-ID: POLICY-2318
Change-Id: I6ea6681677e0ee18f5bce0217f9216e590a53b77
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Rashmi Pujar [Tue, 17 Dec 2019 20:43:51 +0000 (15:43 -0500)]
Parameterize base-image version for drools-apps
Issue-ID: POLICY-2318
Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca>
Change-Id: Ida14508366f20ca05648f941a9b326899672b274
jhh [Tue, 10 Dec 2019 21:38:12 +0000 (15:38 -0600)]
changes to support offline pdpd control loops
Issue-ID: POLICY-2191
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ieb390de2f3324de2de8e6e54cdc10fbf5ede4070
jhh [Mon, 9 Dec 2019 16:13:17 +0000 (10:13 -0600)]
moved proto-definition dependency
It shows in the /tmp/policy-install directory in the
docker image.
It does not need to be applied to all the drools-applications
subprojects.
Issue-ID: POLICY-2191
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia2048b6e21068a7cd5e36439af368cf024975f01
Hockla, Ali (ah999m) [Thu, 5 Dec 2019 19:51:44 +0000 (13:51 -0600)]
Point to release versions of policy/parent and policy/common
Issue-ID: POLICY-1583
Change-Id: Iaff52d57d08689dedf2759afbd3b68cff4a9d22d
Signed-off-by: Hockla, Ali (ah999m) <ah999m@att.com>