Support separate VF Counts for different Targets 35/102335/3
authorJim Hahn <jrh3@att.com>
Tue, 25 Feb 2020 17:29:08 +0000 (12:29 -0500)
committerJim Hahn <jrh3@att.com>
Tue, 25 Feb 2020 18:11:22 +0000 (13:11 -0500)
commit433f782f16f43a8431d8d91c2a055fd2a0603f42
treeb6633d643b027053fa4a0954b01f9c30436d3f9b
parentfd9186d130a6777f93c10e7aff0289a05efed86c
Support separate VF Counts for different Targets

Changed the key by which the VF Count is stored within the context
so that each Target can have its own VF Count.  Also moved VF Count
code from VfModuleCreate to SoOperation, to hide the determination
of the VF Count "key".
Fixed sonar issue about return "null" instead of returning an empty
list - modified the code to use Optional.

Issue-ID: POLICY-2371
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: Ia23eabea0edf6857372e269a2db1a21e741824c6
models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoConstants.java
models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoOperation.java
models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/VfModuleCreate.java
models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/SoOperationTest.java
models-interactions/model-actors/actor.so/src/test/java/org/onap/policy/controlloop/actor/so/VfModuleCreateTest.java