diff options
Diffstat (limited to 'src/test/resources/tosca')
3 files changed, 0 insertions, 194 deletions
diff --git a/src/test/resources/tosca/operational-policy-payload-legacy.yaml b/src/test/resources/tosca/operational-policy-payload-legacy.yaml deleted file mode 100644 index 1108ec8b9..000000000 --- a/src/test/resources/tosca/operational-policy-payload-legacy.yaml +++ /dev/null @@ -1,90 +0,0 @@ -controlLoop: - abatement: true - controlLoopName: LOOP_ASJOy_v1_0_ResourceInstanceName1_tca - timeout: 0 - trigger_policy: policy1 -policies: -- actor: APPC - failure: policy2 - failure_exception: final_failure_exception - failure_guard: final_failure_guard - failure_retries: final_failure_retries - failure_timeout: final_failure_timeout - id: policy1 - payload: - configurationParameters: '[{"ip-addr":"$.vf-module-topology.vf-module-parameters.param[10].value","oam-ip-addr":"$.vf-module-topology.vf-module-parameters.param[15].value","enabled":"$.vf-module-topology.vf-module-parameters.param[22].value"}]' - requestParameters: '{"usePreload":true,"userParams":[]}' - recipe: Restart - retry: 0 - success: final_success - target: - resourceID: vLoadBalancerMS - type: VNF - timeout: 0 -- actor: SO - failure: final_failure - failure_exception: final_failure_exception - failure_guard: final_failure_guard - failure_retries: final_failure_retries - failure_timeout: final_failure_timeout - id: policy2 - recipe: VF Module Create - retry: 0 - success: final_success - target: - modelCustomizationId: 1bffdc31-a37d-4dee-b65c-dde623a76e52 - modelInvariantId: ca052563-eb92-4b5b-ad41-9111768ce043 - modelName: Vloadbalancerms..vpkg..module-1 - modelVersion: 1 - modelVersionId: 1e725ccc-b823-4f67-82b9-4f4367070dbc - resourceID: Vloadbalancerms..vpkg..module-1 - type: VFMODULE - timeout: 0 -- actor: CDS - failure: final_failure - failure_exception: final_failure_exception - failure_guard: final_failure_guard - failure_retries: final_failure_retries - failure_timeout: final_failure_timeout - id: policy3 - payload: - artifact_name: baseconfiguration - artifact_version: 1.0.0 - data: '{"resource-assignment-properties":{"request-id":"request-id","service-instance-id":"service-instance-id","vnf-id":"vnf-id","action-name":"action-name","scope-type":"scope-type","hostname":"hostname","vnf_name":"vnf_name"}}' - mode: async - recipe: resource-assignment - retry: 0 - success: final_success - target: - modelCustomizationId: 1bffdc31-a37d-4dee-b65c-dde623a76e52 - modelInvariantId: ca052563-eb92-4b5b-ad41-9111768ce043 - modelName: Vloadbalancerms..vpkg..module-1 - modelVersion: 1 - modelVersionId: 1e725ccc-b823-4f67-82b9-4f4367070dbc - resourceID: Vloadbalancerms..vpkg..module-1 - type: VFMODULE - timeout: 0 -- actor: CDS - failure: final_failure - failure_exception: final_failure_exception - failure_guard: final_failure_guard - failure_retries: final_failure_retries - failure_timeout: final_failure_timeout - id: policy4 - payload: - artifact_name: baseconfiguration - artifact_version: 1.0.0 - data: '{}' - mode: async - recipe: modify-config - retry: 0 - success: final_success - target: - modelCustomizationId: 1bffdc31-a37d-4dee-b65c-dde623a76e52 - modelInvariantId: ca052563-eb92-4b5b-ad41-9111768ce043 - modelName: Vloadbalancerms..vpkg..module-1 - modelVersion: 1 - modelVersionId: 1e725ccc-b823-4f67-82b9-4f4367070dbc - resourceID: Vloadbalancerms..vpkg..module-1 - type: VFMODULE - timeout: 0 diff --git a/src/test/resources/tosca/operational-policy-payload.json b/src/test/resources/tosca/operational-policy-payload.json deleted file mode 100644 index 0bb5582eb..000000000 --- a/src/test/resources/tosca/operational-policy-payload.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "policy-id": "testPolicy.legacy", - "content": "controlLoop%3A%0A++abatement%3A+true%0A++controlLoopName%3A+LOOP_ASJOy_v1_0_ResourceInstanceName1_tca%0A++timeout%3A+0%0A++trigger_policy%3A+policy1%0Apolicies%3A%0A-+actor%3A+APPC%0A++failure%3A+policy2%0A++failure_exception%3A+final_failure_exception%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+final_failure_timeout%0A++id%3A+policy1%0A++payload%3A%0A++++configurationParameters%3A+%27%5B%7B%22ip-addr%22%3A%22%24.vf-module-topology.vf-module-parameters.param%5B10%5D.value%22%2C%22oam-ip-addr%22%3A%22%24.vf-module-topology.vf-module-parameters.param%5B15%5D.value%22%2C%22enabled%22%3A%22%24.vf-module-topology.vf-module-parameters.param%5B22%5D.value%22%7D%5D%27%0A++++requestParameters%3A+%27%7B%22usePreload%22%3Atrue%2C%22userParams%22%3A%5B%5D%7D%27%0A++recipe%3A+Restart%0A++retry%3A+0%0A++success%3A+final_success%0A++target%3A%0A++++resourceID%3A+vLoadBalancerMS%0A++++type%3A+VNF%0A++timeout%3A+0%0A-+actor%3A+SO%0A++failure%3A+final_failure%0A++failure_exception%3A+final_failure_exception%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+final_failure_timeout%0A++id%3A+policy2%0A++recipe%3A+VF+Module+Create%0A++retry%3A+0%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+1bffdc31-a37d-4dee-b65c-dde623a76e52%0A++++modelInvariantId%3A+ca052563-eb92-4b5b-ad41-9111768ce043%0A++++modelName%3A+Vloadbalancerms..vpkg..module-1%0A++++modelVersion%3A+1%0A++++modelVersionId%3A+1e725ccc-b823-4f67-82b9-4f4367070dbc%0A++++resourceID%3A+Vloadbalancerms..vpkg..module-1%0A++++type%3A+VFMODULE%0A++timeout%3A+0%0A-+actor%3A+CDS%0A++failure%3A+final_failure%0A++failure_exception%3A+final_failure_exception%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+final_failure_timeout%0A++id%3A+policy3%0A++payload%3A%0A++++artifact_name%3A+baseconfiguration%0A++++artifact_version%3A+1.0.0%0A++++data%3A+%27%7B%22resource-assignment-properties%22%3A%7B%22request-id%22%3A%22request-id%22%2C%22service-instance-id%22%3A%22service-instance-id%22%2C%22vnf-id%22%3A%22vnf-id%22%2C%22action-name%22%3A%22action-name%22%2C%22scope-type%22%3A%22scope-type%22%2C%22hostname%22%3A%22hostname%22%2C%22vnf_name%22%3A%22vnf_name%22%7D%7D%27%0A++++mode%3A+async%0A++recipe%3A+resource-assignment%0A++retry%3A+0%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+1bffdc31-a37d-4dee-b65c-dde623a76e52%0A++++modelInvariantId%3A+ca052563-eb92-4b5b-ad41-9111768ce043%0A++++modelName%3A+Vloadbalancerms..vpkg..module-1%0A++++modelVersion%3A+1%0A++++modelVersionId%3A+1e725ccc-b823-4f67-82b9-4f4367070dbc%0A++++resourceID%3A+Vloadbalancerms..vpkg..module-1%0A++++type%3A+VFMODULE%0A++timeout%3A+0%0A-+actor%3A+CDS%0A++failure%3A+final_failure%0A++failure_exception%3A+final_failure_exception%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+final_failure_timeout%0A++id%3A+policy4%0A++payload%3A%0A++++artifact_name%3A+baseconfiguration%0A++++artifact_version%3A+1.0.0%0A++++data%3A+%27%7B%7D%27%0A++++mode%3A+async%0A++recipe%3A+modify-config%0A++retry%3A+0%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+1bffdc31-a37d-4dee-b65c-dde623a76e52%0A++++modelInvariantId%3A+ca052563-eb92-4b5b-ad41-9111768ce043%0A++++modelName%3A+Vloadbalancerms..vpkg..module-1%0A++++modelVersion%3A+1%0A++++modelVersionId%3A+1e725ccc-b823-4f67-82b9-4f4367070dbc%0A++++resourceID%3A+Vloadbalancerms..vpkg..module-1%0A++++type%3A+VFMODULE%0A++timeout%3A+0%0A" -}
\ No newline at end of file diff --git a/src/test/resources/tosca/operational-policy-payload.yaml b/src/test/resources/tosca/operational-policy-payload.yaml deleted file mode 100644 index a756b57d6..000000000 --- a/src/test/resources/tosca/operational-policy-payload.yaml +++ /dev/null @@ -1,100 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -topology_template: - policies: - - testPolicy.legacy: - type: onap.policies.controlloop.Operational - version: 1.0.0 - metadata: - policy-id: testPolicy.legacy - properties: - controlLoop: - timeout: '0' - abatement: 'True' - trigger_policy: policy1 - controlLoopName: LOOP_ASJOy_v1_0_ResourceInstanceName1_tca - policies: - - id: policy1 - retry: '0' - timeout: '0' - success: final_success - failure: policy2 - failure_timeout: final_failure_timeout - failure_retries: final_failure_retries - failure_exception: final_failure_exception - failure_guard: final_failure_guard - target: - type: VNF - resourceID: vLoadBalancerMS - actor: APPC - recipe: Restart - payload: - requestParameters: '{"usePreload":true,"userParams":[]}' - configurationParameters: '[{"ip-addr":"$.vf-module-topology.vf-module-parameters.param[10].value","oam-ip-addr":"$.vf-module-topology.vf-module-parameters.param[15].value","enabled":"$.vf-module-topology.vf-module-parameters.param[22].value"}]' - - id: policy2 - retry: '0' - timeout: '0' - success: final_success - failure: final_failure - failure_timeout: final_failure_timeout - failure_retries: final_failure_retries - failure_exception: final_failure_exception - failure_guard: final_failure_guard - target: - type: VFMODULE - resourceID: Vloadbalancerms..vpkg..module-1 - modelInvariantId: ca052563-eb92-4b5b-ad41-9111768ce043 - modelVersionId: 1e725ccc-b823-4f67-82b9-4f4367070dbc - modelName: Vloadbalancerms..vpkg..module-1 - modelVersion: '1' - modelCustomizationId: 1bffdc31-a37d-4dee-b65c-dde623a76e52 - actor: SO - recipe: VF Module Create - payload: '' - - id: policy3 - retry: '0' - timeout: '0' - success: final_success - failure: final_failure - failure_timeout: final_failure_timeout - failure_retries: final_failure_retries - failure_exception: final_failure_exception - failure_guard: final_failure_guard - target: - type: VFMODULE - resourceID: Vloadbalancerms..vpkg..module-1 - modelInvariantId: ca052563-eb92-4b5b-ad41-9111768ce043 - modelVersionId: 1e725ccc-b823-4f67-82b9-4f4367070dbc - modelName: Vloadbalancerms..vpkg..module-1 - modelVersion: '1' - modelCustomizationId: 1bffdc31-a37d-4dee-b65c-dde623a76e52 - actor: CDS - recipe: resource-assignment - payload: - artifact_name: baseconfiguration - artifact_version: 1.0.0 - mode: async - data: '{"resource-assignment-properties":{"request-id":"request-id","service-instance-id":"service-instance-id","vnf-id":"vnf-id","action-name":"action-name","scope-type":"scope-type","hostname":"hostname","vnf_name":"vnf_name"}}' - - id: policy4 - retry: '0' - timeout: '0' - success: final_success - failure: final_failure - failure_timeout: final_failure_timeout - failure_retries: final_failure_retries - failure_exception: final_failure_exception - failure_guard: final_failure_guard - target: - type: VFMODULE - resourceID: Vloadbalancerms..vpkg..module-1 - modelInvariantId: ca052563-eb92-4b5b-ad41-9111768ce043 - modelVersionId: 1e725ccc-b823-4f67-82b9-4f4367070dbc - modelName: Vloadbalancerms..vpkg..module-1 - modelVersion: '1' - modelCustomizationId: 1bffdc31-a37d-4dee-b65c-dde623a76e52 - actor: CDS - recipe: modify-config - payload: - artifact_name: baseconfiguration - artifact_version: 1.0.0 - mode: async - data: '{}' |