Set timeout to CL timeout if zero 33/90233/3
authorJim Hahn <jrh3@att.com>
Thu, 20 Jun 2019 14:09:21 +0000 (10:09 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 20 Jun 2019 15:00:24 +0000 (11:00 -0400)
commit1bf858e215f8d0b8cf074bffc81d1c3d1a03fd52
treed43a6f8c5587d17148d82fc35b2e6e2d34134bd2
parentd4704a70405cae2f6d9cb32ca30828db14be01b7
Set timeout to CL timeout if zero

Modified the rules to set the operational timeout to the overall
CL timeout if the operational timeout is zero.
Added code to check for zero timeout for the overall CL, too.

Change-Id: I28d41632f59e9bc2fce953267883d567abc92a49
Issue-ID: POLICY-1859
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java
controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java
controlloop/common/eventmanager/src/test/resources/test-null-timeout.yaml [new file with mode: 0644]
controlloop/common/eventmanager/src/test/resources/test-zero-timeout.yaml [new file with mode: 0644]
controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
controlloop/templates/archetype-cl-usecases/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl