aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy/engine/opspolicy_vCPE.template
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2019-04-19 14:13:54 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-19 14:13:54 +0000
commit2d3f0db728f0e4c24e4a5461edea4a4ffa97d97b (patch)
treeddda596c0a7c17d49cbe5e0bb92016af526dd717 /tests/policy/engine/opspolicy_vCPE.template
parentd5a328362ad6e1ff2160d16d100a0b05960bc4e4 (diff)
parent3f9a0960ae775678d1e1d4b598b593b59146cb0f (diff)
Merge "Finish drools CSIT infra"
Diffstat (limited to 'tests/policy/engine/opspolicy_vCPE.template')
-rw-r--r--tests/policy/engine/opspolicy_vCPE.template16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/policy/engine/opspolicy_vCPE.template b/tests/policy/engine/opspolicy_vCPE.template
new file mode 100644
index 00000000..c17a1bc6
--- /dev/null
+++ b/tests/policy/engine/opspolicy_vCPE.template
@@ -0,0 +1,16 @@
+{
+ "policyConfigType": "BRMS_PARAM",
+ "policyName": "${policy_name}",
+ "policyDescription": "BRMS Param vCPE policy",
+ "policyScope": "com",
+ "attributes": {
+ "MATCHING": {
+ "controller" : "amsterdam"
+ },
+ "RULE": {
+ "templateName": "ClosedLoopControlName",
+ "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
+ "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
+ }
+ }
+} \ No newline at end of file