Add Support for Locking VNF Target Types 57/11757/1
authordaniel <dc443y@att.com>
Mon, 11 Sep 2017 19:42:59 +0000 (14:42 -0500)
committerdaniel <dc443y@att.com>
Mon, 11 Sep 2017 20:50:32 +0000 (15:50 -0500)
commite126a975d8c6f3970dbf87ead79fa69afe510301
tree037f6d44e55dd908021e72d5232a11ce41d46944
parent8d338012d725cb16ebdbff0eb3ff7f47ad08f6d1
Add Support for Locking VNF Target Types

Fixed the target lock to support vnf target_types.
Generic-vnf.vnf-id and generic-vnf.vnf-name are also
supported when retrieving the target instance from the onset.
These changes are relfected in the vFW and vCPE junits as
they now work with VNF target types.

Issue-ID: POLICY-222
Change-Id: I92abeb02c769d35f3a9912cce6eaaec4c9cc8efb
Signed-off-by: Daniel Cruz <dc443y@att.com>
controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java
controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/VCPEControlLoopTest.java
controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/VFWControlLoopTest.java
controlloop/templates/template.demo/src/test/resources/yaml/policy_ControlLoop_vFW.yaml