Check vm-capabilites on vnf-level OS requests
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / test / resources / input / RestartWithoutVmRestartCaps.json
diff --git a/appc-sequence-generator/appc-sequence-generator-bundle/src/test/resources/input/RestartWithoutVmRestartCaps.json b/appc-sequence-generator/appc-sequence-generator-bundle/src/test/resources/input/RestartWithoutVmRestartCaps.json
new file mode 100644 (file)
index 0000000..b294823
--- /dev/null
@@ -0,0 +1,102 @@
+{
+  "request-info": {
+    "action": "Restart",
+    "action-level": "vnf",
+    "action-identifier": {
+      "vnf-id": "dbgx0001v"
+    },
+    "payload":  " {\"vnf-host-ip-address\": \"10.147.124.163\" }"
+
+  },
+  "inventory-info": {
+    "vnf-info": {
+      "vnf-id" : "abc",
+      "vnf-name": "vSCP",
+      "vnf-type": "vSCP",
+      "vnf-version" : "1.0",
+      "identity-url" : "test_url",
+      "vm": [
+        {
+          "vserver-id" : "smp_vserverid2",
+          "vm-id" : "vm_id1",
+          "vnfc":
+          {
+            "vnfc-type": "SMP",
+            "vnfc-function-code": "pld",
+            "vnfc-name": "SMP - Name"
+          }
+        },
+        {
+          "vserver-id" : "be_vserverid2",
+          "vm-id" : "vm_id1",
+          "vnfc":
+          {
+            "vnfc-type": "FE",
+            "vnfc-function-code": "pld",
+            "vnfc-name": "FE - Name"
+          }
+
+        },
+        {
+          "vserver-id" : "fe_vserverid2",
+          "vm-id" : "vm_id1",
+          "vnfc":
+          {
+            "vnfc-type": "BE",
+            "vnfc-function-code": "pld",
+            "vnfc-name": "BE - Name"
+          }
+
+        },
+               {
+          "vserver-id" : "be_vserverid5",
+          "vm-id" : "vm_id1",
+          "vnfc":
+          {
+            "vnfc-type": "BE",
+            "vnfc-function-code": "pld",
+            "vnfc-name": "BE - Name"
+          }
+
+        }
+      ]
+    }
+  },
+  "dependency-info" : {
+    "vnfcs" : [
+      {
+        "vnfc-type" : "BE",
+        "mandatory" : "true",
+        "resilience": "Active-Active",
+        "parents" : [
+          "SMP"
+        ]
+      },
+      {
+        "vnfc-type" : "FE",
+        "mandatory" : "true",
+        "resilience": "Active-Active",
+        "parents" : [
+          "BE"
+        ]
+      },
+      {
+        "vnfc-type" : "SMP",
+        "mandatory" : "true",
+        "resilience": "Active-Passive",
+        "parents" : []
+      }
+    ]
+  },
+  "tunable-parameters" : {
+    "strategy" : "FORWARD",
+    "waitTime" : "120",
+    "retryCount" : "5"
+  },
+  "capabilities" : {
+    "vnf": ["Stop", "Start", "StartApplication","StopApplication"],
+    "vf-module": ["Stop", "Start"],
+    "vm" : [{"Stop" :["pld", "ssc", "dbo"]}, {"Start" :["pld", "ssc", "dbo"]}, {"Restart" :[]}],
+    "vnfc": ["StopApplication", "StartApplication","HealthCheck"]
+  }
+}