diff options
author | Sirisha_Manchikanti <sirisha.manchikanti@est.tech> | 2021-12-14 18:12:07 +0000 |
---|---|---|
committer | Sirisha_Manchikanti <sirisha.manchikanti@est.tech> | 2022-01-06 13:12:50 +0000 |
commit | 3d170c6e14976549cd2edc405c5c242110bff2ff (patch) | |
tree | 2201c54f4c9a227b4337c9a640ab2e2b8c1cc630 /testsuites/stability/src/main | |
parent | 5f46449a3a73a101fb6e7926dd48e1672ad3ed7b (diff) |
Add ControlLoop distribution to runtime
This commit unpacks the csar received either from SDC or for local
verification from file-system, prepares the toscaservicetemplate with
needed node-types and data-types, forwards the template to controlloop
runtime components for commisioning of controlloop.
Issue-ID: POLICY-3808
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: Ib3600542aca7b32ae19242c2f924bdaf2ab870a8
Diffstat (limited to 'testsuites/stability/src/main')
-rw-r--r-- | testsuites/stability/src/main/resources/setup/distribution/etc/defaultConfig.json | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/testsuites/stability/src/main/resources/setup/distribution/etc/defaultConfig.json b/testsuites/stability/src/main/resources/setup/distribution/etc/defaultConfig.json index a4cf85a8..2b3078ac 100644 --- a/testsuites/stability/src/main/resources/setup/distribution/etc/defaultConfig.json +++ b/testsuites/stability/src/main/resources/setup/distribution/etc/defaultConfig.json @@ -17,13 +17,23 @@ "decoderType":"ToscaPolicyDecoder", "decoderClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicy", "decoderConfigurationName": "toscaPolicyDecoderConfiguration" + }, + "ToscaControlLoopDecoder": { + "decoderType": "ToscaControlLoopDecoder", + "decoderClassName": "org.onap.policy.distribution.reception.decoding.policy.file.ControlLoopDecoderFileInCsar", + "decoderConfigurationName": "toscaControlLoopDecoderConfiguration" } }, "policyForwarders": { - "LifeCycleApiForwarder": { - "forwarderType": "LifeCycleAPI", + "LifeCycleApiPolicyForwarder": { + "forwarderType": "LifeCyclePolicyAPI", "forwarderClassName": "org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiPolicyForwarder", - "forwarderConfigurationName": "lifecycleApiConfiguration" + "forwarderConfigurationName": "lifecycleApiPolicyConfiguration" + }, + "LifeCycleApiControlLoopForwarder": { + "forwarderType": "LifeCycleControlLoopAPI", + "forwarderClassName": "org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiControlLoopForwarder", + "forwarderConfigurationName": "lifecycleApiControlLoopConfiguration" } } } @@ -45,11 +55,17 @@ "policyFileName": "tosca_policy", "policyTypeFileName": "tosca_policy_type" } + }, + "toscaControlLoopDecoderConfiguration": { + "parameterClassName": "org.onap.policy.distribution.reception.decoding.policy.file.ControlLoopDecoderFileInCsarParameterGroup", + "parameters": { + "controlLoopType": "controlloop" + } } }, "policyForwarderConfigurationParameters": { - "lifecycleApiConfiguration": { + "lifecycleApiPolicyConfiguration": { "parameterClassName": "org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiForwarderParameters", "parameters": { "apiParameters": { @@ -70,6 +86,19 @@ }, "deployPolicies": true } + }, + "lifecycleApiControlLoopConfiguration": { + "parameterClassName": "org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiControlLoopForwarderParameters", + "parameters": { + "controlLoopRuntimeParameters": { + "clientName": "policy-clamp-cl-runtime", + "hostname": "policy-clamp-cl-runtime", + "port": 6969, + "useHttps": true, + "userName": "policyadmin", + "password": "zb!XztG34" + } + } } } } |