diff options
author | Jim Hahn <jrh3@att.com> | 2020-04-08 12:37:20 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-04-08 14:36:45 -0400 |
commit | df6d6bb862fb0af49a8873479f9e3b609553deca (patch) | |
tree | bc5ef9a08ccb0c0a4a27951c56c5b42350d297ea /models-interactions/model-actors/actor.test | |
parent | 9b3ff5f270572a6760ff07dda9577cdadb53b088 (diff) |
SDNR Actor enhancements
Made the following changes:
- Enhanced SDNR Actor to support any operation name specified within
the policy, constructing the same request, but passing a different
"RPC name" and "Action" in the request.
- Added ControlLoopResponse to OperationOutcome
- Modified SDNR Actor to populate ControlLoopResponse
Issue-ID: POLICY-2468
Change-Id: I50ee0674077d975f3cd211454656edc47d78520f
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-interactions/model-actors/actor.test')
-rw-r--r-- | models-interactions/model-actors/actor.test/src/main/java/org/onap/policy/controlloop/actor/test/BasicOperation.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/models-interactions/model-actors/actor.test/src/main/java/org/onap/policy/controlloop/actor/test/BasicOperation.java b/models-interactions/model-actors/actor.test/src/main/java/org/onap/policy/controlloop/actor/test/BasicOperation.java index 3b1871f20..c0ea44715 100644 --- a/models-interactions/model-actors/actor.test/src/main/java/org/onap/policy/controlloop/actor/test/BasicOperation.java +++ b/models-interactions/model-actors/actor.test/src/main/java/org/onap/policy/controlloop/actor/test/BasicOperation.java @@ -56,9 +56,13 @@ import org.onap.policy.controlloop.policy.PolicyResult; public class BasicOperation { protected static final UUID REQ_ID = UUID.randomUUID(); protected static final String SUB_REQ_ID = "my-sub-request-id"; - protected static final String DEFAULT_ACTOR = "default-actor"; - protected static final String DEFAULT_OPERATION = "default-operation"; + protected static final String DEFAULT_ACTOR = "default-Actor"; + protected static final String DEFAULT_OPERATION = "default-Operation"; protected static final String TARGET_ENTITY = "my-target"; + protected static final String CL_NAME = "my-closed-loop"; + protected static final String EVENT_POLICY_NAME = "my-event-policy-name"; + protected static final String EVENT_POLICY_VERSION = "my-event-policy-version"; + protected static final String EVENT_VERSION = "my-event-version"; protected static final Executor blockingExecutor = command -> { Thread thread = new Thread(command); @@ -158,6 +162,10 @@ public class BasicOperation { event = new VirtualControlLoopEvent(); event.setRequestId(REQ_ID); event.setAai(enrichment); + event.setClosedLoopControlName(CL_NAME); + event.setPolicyName(EVENT_POLICY_NAME); + event.setPolicyVersion(EVENT_POLICY_VERSION); + event.setVersion(EVENT_VERSION); context = new ControlLoopEventContext(event); |