Fix Target Entity Lock 87/19387/1
authordaniel <dc443y@att.com>
Tue, 17 Oct 2017 22:56:08 +0000 (17:56 -0500)
committerdaniel <dc443y@att.com>
Tue, 17 Oct 2017 23:08:10 +0000 (18:08 -0500)
commitb2d602aaedfcc9356e07dd94b6baec70c38815b8
tree1e1afee15dbaedbc3b5bcb1db95724a86d806110
parent2a5af723adf9c71d919d701313e7809f8160ef3a
Fix Target Entity Lock

This fix enables the pdp to stop events with
different requestId's/controlLoopNames from
being processed if the target entity specified is
already being processed by another event/controlloop.

The lock timeout rule is removed to stop the event from
waiting to obtain a lock if it was not already required.

Handling of the lock denied case is taken care of in the
event manager rule instead of in a seperate rule to avoid
further unneccessary computation.

A new control loop test case was created that is for testing
general control loop errors. The test case included is for
testing that the lock will deny a request with a duplicate
target entity.

Issue-ID: POLICY-341
Change-Id: Ib62286eff74ec22b2c645f32f385cb331fb1dff3
Signed-off-by: Daniel Cruz <dc443y@att.com>
controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/ControlLoopFailureTest.java [new file with mode: 0644]