summaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
authorVidyashree-Huawei <vidyashree.rama@huawei.com>2020-04-10 17:36:09 +0530
committerSébastien Determe <sebastien.determe@intl.att.com>2020-04-14 08:13:46 +0000
commit3ec03cca444a2810005053a308ed0f3ecb00b063 (patch)
tree228da36cb151a5676d7adf454299b9b280c80d48 /src/test/resources
parentd2e5008edc93220a1117df5c864d828fbae9cc8d (diff)
CDS attributes are not shown properly in UI
Handled for legacy and operational policy Change-Id: I504c4aa2531b19b09965ad1dbc03c9944931f77b Issue-ID: CLAMP-809 Signed-off-by: Vidyashree-Huawei <vidyashree.rama@huawei.com>
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/tosca/model-properties.json210
-rw-r--r--src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json326
-rw-r--r--src/test/resources/tosca/operational-policy-json-schema.json518
-rw-r--r--src/test/resources/tosca/operational-policy-payload-legacy.yaml32
-rw-r--r--src/test/resources/tosca/operational-policy-payload.json2
-rw-r--r--src/test/resources/tosca/operational-policy-payload.yaml32
-rw-r--r--src/test/resources/tosca/operational-policy-properties.json52
-rw-r--r--src/test/resources/tosca/resource-details.json210
8 files changed, 1185 insertions, 197 deletions
diff --git a/src/test/resources/tosca/model-properties.json b/src/test/resources/tosca/model-properties.json
index c405964ee..688a09ab4 100644
--- a/src/test/resources/tosca/model-properties.json
+++ b/src/test/resources/tosca/model-properties.json
@@ -40,78 +40,204 @@
"resource-assignment": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"activate": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"activate-restconf": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"activate-cli": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"assign-activate": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"imperative-test-wf": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
}
diff --git a/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json b/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json
index 58dff236e..12edd7738 100644
--- a/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json
+++ b/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json
@@ -66,16 +66,20 @@
"description": "Name/value pairs of payload information passed by Policy to the actor",
"anyOf": [
{
+ "title": "User defined",
+ "properties": {}
+ },
+ {
"title": "resource-assignment",
"properties": {
"artifact_name": {
- "title": "artifact_name",
+ "title": "artifact name",
"type": "string",
"default": "baseconfiguration",
"readOnly": "True"
},
"artifact_version": {
- "title": "artifact_version",
+ "title": "artifact version",
"type": "string",
"default": "1.0.0",
"readOnly": "True"
@@ -84,20 +88,51 @@
"title": "mode",
"type": "string",
"default": "async",
- "readOnly": "True"
+ "format": "textarea"
},
"data": {
"title": "data",
- "type": "object",
"properties": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
}
}
}
@@ -107,13 +142,13 @@
"title": "activate",
"properties": {
"artifact_name": {
- "title": "artifact_name",
+ "title": "artifact name",
"type": "string",
"default": "baseconfiguration",
"readOnly": "True"
},
"artifact_version": {
- "title": "artifact_version",
+ "title": "artifact version",
"type": "string",
"default": "1.0.0",
"readOnly": "True"
@@ -122,20 +157,51 @@
"title": "mode",
"type": "string",
"default": "async",
- "readOnly": "True"
+ "format": "textarea"
},
"data": {
"title": "data",
- "type": "object",
"properties": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
}
}
}
@@ -145,13 +211,13 @@
"title": "activate-restconf",
"properties": {
"artifact_name": {
- "title": "artifact_name",
+ "title": "artifact name",
"type": "string",
"default": "baseconfiguration",
"readOnly": "True"
},
"artifact_version": {
- "title": "artifact_version",
+ "title": "artifact version",
"type": "string",
"default": "1.0.0",
"readOnly": "True"
@@ -160,20 +226,51 @@
"title": "mode",
"type": "string",
"default": "async",
- "readOnly": "True"
+ "format": "textarea"
},
"data": {
"title": "data",
- "type": "object",
"properties": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
}
}
}
@@ -183,13 +280,13 @@
"title": "activate-cli",
"properties": {
"artifact_name": {
- "title": "artifact_name",
+ "title": "artifact name",
"type": "string",
"default": "baseconfiguration",
"readOnly": "True"
},
"artifact_version": {
- "title": "artifact_version",
+ "title": "artifact version",
"type": "string",
"default": "1.0.0",
"readOnly": "True"
@@ -198,20 +295,51 @@
"title": "mode",
"type": "string",
"default": "async",
- "readOnly": "True"
+ "format": "textarea"
},
"data": {
"title": "data",
- "type": "object",
"properties": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
}
}
}
@@ -221,13 +349,13 @@
"title": "assign-activate",
"properties": {
"artifact_name": {
- "title": "artifact_name",
+ "title": "artifact name",
"type": "string",
"default": "baseconfiguration",
"readOnly": "True"
},
"artifact_version": {
- "title": "artifact_version",
+ "title": "artifact version",
"type": "string",
"default": "1.0.0",
"readOnly": "True"
@@ -236,20 +364,51 @@
"title": "mode",
"type": "string",
"default": "async",
- "readOnly": "True"
+ "format": "textarea"
},
"data": {
"title": "data",
- "type": "object",
"properties": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
}
}
}
@@ -259,13 +418,13 @@
"title": "imperative-test-wf",
"properties": {
"artifact_name": {
- "title": "artifact_name",
+ "title": "artifact name",
"type": "string",
"default": "baseconfiguration",
"readOnly": "True"
},
"artifact_version": {
- "title": "artifact_version",
+ "title": "artifact version",
"type": "string",
"default": "1.0.0",
"readOnly": "True"
@@ -274,28 +433,55 @@
"title": "mode",
"type": "string",
"default": "async",
- "readOnly": "True"
+ "format": "textarea"
},
"data": {
"title": "data",
- "type": "object",
"properties": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
}
}
}
}
- },
- {
- "title": "User defined",
- "properties": {}
}
]
},
diff --git a/src/test/resources/tosca/operational-policy-json-schema.json b/src/test/resources/tosca/operational-policy-json-schema.json
index 6ab84a8cf..ffa88ecaf 100644
--- a/src/test/resources/tosca/operational-policy-json-schema.json
+++ b/src/test/resources/tosca/operational-policy-json-schema.json
@@ -99,6 +99,7 @@
"anyOf": [
{
"title": "APPC",
+ "type": "object",
"properties": {
"actor": {
"title": "actor",
@@ -108,7 +109,7 @@
"hidden": true
}
},
- "type": {
+ "recipe": {
"title": "recipe",
"type": "string",
"default": "",
@@ -129,6 +130,7 @@
},
{
"title": "SO",
+ "type": "object",
"properties": {
"actor": {
"title": "actor",
@@ -138,7 +140,7 @@
"hidden": true
}
},
- "type": {
+ "recipe": {
"title": "recipe",
"type": "string",
"default": "",
@@ -156,6 +158,7 @@
},
{
"title": "SDNC",
+ "type": "object",
"properties": {
"actor": {
"title": "actor",
@@ -165,7 +168,7 @@
"hidden": true
}
},
- "type": {
+ "recipe": {
"title": "recipe",
"type": "string",
"default": "",
@@ -183,6 +186,7 @@
},
{
"title": "VFC",
+ "type": "object",
"properties": {
"actor": {
"title": "actor",
@@ -192,12 +196,9 @@
"hidden": true
}
},
- "type": {
+ "recipe": {
"title": "recipe",
"type": "string",
- "required": [
- "payload"
- ],
"default": "",
"enum": [
"ModifyConfig"
@@ -212,6 +213,7 @@
},
{
"title": "CDS",
+ "type": "object",
"properties": {
"actor": {
"title": "actor",
@@ -221,17 +223,21 @@
"hidden": true
}
},
- "type": {
+ "recipe": {
"title": "recipe",
"type": "object",
- "required": [
- "payload"
- ],
"anyOf": [
{
"title": "user-defined",
+ "type": "object",
"properties": {
- "type": {
+ "recipe": {
+ "title": "recipe",
+ "type": "string",
+ "default": "user-defined",
+ "format": "textarea"
+ },
+ "payload": {
"title": "Payload (YAML)",
"type": "string",
"default": "",
@@ -241,67 +247,505 @@
},
{
"title": "resource-assignment",
+ "type": "object",
"properties": {
- "type": {
- "title": "Payload (YAML)",
+ "recipe": {
+ "title": "recipe",
"type": "string",
- "default": "\u0027artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : \u0027\\\u0027{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\\u0027\u0027",
- "format": "textarea"
+ "default": "resource-assignment",
+ "options": {
+ "hidden": true
+ }
+ },
+ "payload": {
+ "title": "Payload (YAML)",
+ "type": "object",
+ "properties": {
+ "artifact_name": {
+ "title": "artifact name",
+ "type": "string",
+ "default": "baseconfiguration",
+ "readOnly": "True"
+ },
+ "artifact_version": {
+ "title": "artifact version",
+ "type": "string",
+ "default": "1.0.0",
+ "readOnly": "True"
+ },
+ "mode": {
+ "title": "mode",
+ "type": "string",
+ "default": "async",
+ "format": "textarea"
+ },
+ "data": {
+ "title": "data",
+ "properties": {
+ "resource-assignment-properties": {
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
},
{
"title": "activate",
+ "type": "object",
"properties": {
- "type": {
- "title": "Payload (YAML)",
+ "recipe": {
+ "title": "recipe",
"type": "string",
- "default": "\u0027artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : \u0027\\\u0027{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\\u0027\u0027",
- "format": "textarea"
+ "default": "activate",
+ "options": {
+ "hidden": true
+ }
+ },
+ "payload": {
+ "title": "Payload (YAML)",
+ "type": "object",
+ "properties": {
+ "artifact_name": {
+ "title": "artifact name",
+ "type": "string",
+ "default": "baseconfiguration",
+ "readOnly": "True"
+ },
+ "artifact_version": {
+ "title": "artifact version",
+ "type": "string",
+ "default": "1.0.0",
+ "readOnly": "True"
+ },
+ "mode": {
+ "title": "mode",
+ "type": "string",
+ "default": "async",
+ "format": "textarea"
+ },
+ "data": {
+ "title": "data",
+ "properties": {
+ "resource-assignment-properties": {
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
},
{
"title": "activate-restconf",
+ "type": "object",
"properties": {
- "type": {
- "title": "Payload (YAML)",
+ "recipe": {
+ "title": "recipe",
"type": "string",
- "default": "\u0027artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : \u0027\\\u0027{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\\u0027\u0027",
- "format": "textarea"
+ "default": "activate-restconf",
+ "options": {
+ "hidden": true
+ }
+ },
+ "payload": {
+ "title": "Payload (YAML)",
+ "type": "object",
+ "properties": {
+ "artifact_name": {
+ "title": "artifact name",
+ "type": "string",
+ "default": "baseconfiguration",
+ "readOnly": "True"
+ },
+ "artifact_version": {
+ "title": "artifact version",
+ "type": "string",
+ "default": "1.0.0",
+ "readOnly": "True"
+ },
+ "mode": {
+ "title": "mode",
+ "type": "string",
+ "default": "async",
+ "format": "textarea"
+ },
+ "data": {
+ "title": "data",
+ "properties": {
+ "resource-assignment-properties": {
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
},
{
"title": "activate-cli",
+ "type": "object",
"properties": {
- "type": {
- "title": "Payload (YAML)",
+ "recipe": {
+ "title": "recipe",
"type": "string",
- "default": "\u0027artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : \u0027\\\u0027{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\\u0027\u0027",
- "format": "textarea"
+ "default": "activate-cli",
+ "options": {
+ "hidden": true
+ }
+ },
+ "payload": {
+ "title": "Payload (YAML)",
+ "type": "object",
+ "properties": {
+ "artifact_name": {
+ "title": "artifact name",
+ "type": "string",
+ "default": "baseconfiguration",
+ "readOnly": "True"
+ },
+ "artifact_version": {
+ "title": "artifact version",
+ "type": "string",
+ "default": "1.0.0",
+ "readOnly": "True"
+ },
+ "mode": {
+ "title": "mode",
+ "type": "string",
+ "default": "async",
+ "format": "textarea"
+ },
+ "data": {
+ "title": "data",
+ "properties": {
+ "resource-assignment-properties": {
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
},
{
"title": "assign-activate",
+ "type": "object",
"properties": {
- "type": {
- "title": "Payload (YAML)",
+ "recipe": {
+ "title": "recipe",
"type": "string",
- "default": "\u0027artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : \u0027\\\u0027{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\\u0027\u0027",
- "format": "textarea"
+ "default": "assign-activate",
+ "options": {
+ "hidden": true
+ }
+ },
+ "payload": {
+ "title": "Payload (YAML)",
+ "type": "object",
+ "properties": {
+ "artifact_name": {
+ "title": "artifact name",
+ "type": "string",
+ "default": "baseconfiguration",
+ "readOnly": "True"
+ },
+ "artifact_version": {
+ "title": "artifact version",
+ "type": "string",
+ "default": "1.0.0",
+ "readOnly": "True"
+ },
+ "mode": {
+ "title": "mode",
+ "type": "string",
+ "default": "async",
+ "format": "textarea"
+ },
+ "data": {
+ "title": "data",
+ "properties": {
+ "resource-assignment-properties": {
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
},
{
"title": "imperative-test-wf",
+ "type": "object",
"properties": {
- "type": {
- "title": "Payload (YAML)",
+ "recipe": {
+ "title": "recipe",
"type": "string",
- "default": "\u0027artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : \u0027\\\u0027{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\\u0027\u0027",
- "format": "textarea"
+ "default": "imperative-test-wf",
+ "options": {
+ "hidden": true
+ }
+ },
+ "payload": {
+ "title": "Payload (YAML)",
+ "type": "object",
+ "properties": {
+ "artifact_name": {
+ "title": "artifact name",
+ "type": "string",
+ "default": "baseconfiguration",
+ "readOnly": "True"
+ },
+ "artifact_version": {
+ "title": "artifact version",
+ "type": "string",
+ "default": "1.0.0",
+ "readOnly": "True"
+ },
+ "mode": {
+ "title": "mode",
+ "type": "string",
+ "default": "async",
+ "format": "textarea"
+ },
+ "data": {
+ "title": "data",
+ "properties": {
+ "resource-assignment-properties": {
+ "title": "resource-assignment-properties",
+ "type": "object",
+ "properties": {
+ "request-id": {
+ "title": "request-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "service-instance-id": {
+ "title": "service-instance-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf-id": {
+ "title": "vnf-id",
+ "type": "string",
+ "format": "textarea"
+ },
+ "action-name": {
+ "title": "action-name",
+ "type": "string",
+ "format": "textarea"
+ },
+ "scope-type": {
+ "title": "scope-type",
+ "type": "string",
+ "format": "textarea"
+ },
+ "hostname": {
+ "title": "hostname",
+ "type": "string",
+ "format": "textarea"
+ },
+ "vnf_name": {
+ "title": "vnf_name",
+ "type": "string",
+ "format": "textarea"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
}
@@ -731,4 +1175,4 @@
}
}
}
-} \ No newline at end of file
+}
diff --git a/src/test/resources/tosca/operational-policy-payload-legacy.yaml b/src/test/resources/tosca/operational-policy-payload-legacy.yaml
index f4708ebc3..72bbf9bad 100644
--- a/src/test/resources/tosca/operational-policy-payload-legacy.yaml
+++ b/src/test/resources/tosca/operational-policy-payload-legacy.yaml
@@ -40,3 +40,35 @@ policies:
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:
+ action-name: action-name
+ hostname: hostname
+ request-id: request-id
+ scope-type: scope-type
+ service-instance-id: service-instance-id
+ vnf-id: vnf-id
+ 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
diff --git a/src/test/resources/tosca/operational-policy-payload.json b/src/test/resources/tosca/operational-policy-payload.json
index 033eecd17..e53950af3 100644
--- a/src/test/resources/tosca/operational-policy-payload.json
+++ b/src/test/resources/tosca/operational-policy-payload.json
@@ -1,4 +1,4 @@
{
"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"
+ "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%0A++++++resource-assignment-properties%3A%0A++++++++action-name%3A+action-name%0A++++++++hostname%3A+hostname%0A++++++++request-id%3A+request-id%0A++++++++scope-type%3A+scope-type%0A++++++++service-instance-id%3A+service-instance-id%0A++++++++vnf-id%3A+vnf-id%0A++++++++vnf_name%3A+vnf_name%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"
} \ 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
index 69c86cc84..aaa962769 100644
--- a/src/test/resources/tosca/operational-policy-payload.yaml
+++ b/src/test/resources/tosca/operational-policy-payload.yaml
@@ -50,3 +50,35 @@ topology_template:
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
diff --git a/src/test/resources/tosca/operational-policy-properties.json b/src/test/resources/tosca/operational-policy-properties.json
index a2de76a98..2777a158c 100644
--- a/src/test/resources/tosca/operational-policy-properties.json
+++ b/src/test/resources/tosca/operational-policy-properties.json
@@ -10,7 +10,7 @@
{
"actor": {
"actor": "APPC",
- "type": "Restart",
+ "recipe": "Restart",
"payload": "requestParameters: '{\"usePreload\":true,\"userParams\":[]}'\r\nconfigurationParameters: '[{\"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": "policy1",
@@ -27,11 +27,11 @@
"resourceID": "vLoadBalancerMS"
}
},
- {
+ {
"actor": {
- "actor": "SO",
- "type": "VF Module Create",
- "payload": ""
+ "actor": "SO",
+ "recipe": "VF Module Create",
+ "payload": ""
},
"id": "policy2",
"retry": "0",
@@ -51,6 +51,48 @@
"modelVersion": "1",
"modelCustomizationId": "1bffdc31-a37d-4dee-b65c-dde623a76e52"
}
+ },
+ {
+ "actor": {
+ "actor": "CDS",
+ "recipe": {
+ "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": "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"
+ }
}
]
},
diff --git a/src/test/resources/tosca/resource-details.json b/src/test/resources/tosca/resource-details.json
index a638c350d..dc47b44db 100644
--- a/src/test/resources/tosca/resource-details.json
+++ b/src/test/resources/tosca/resource-details.json
@@ -24,78 +24,204 @@
"resource-assignment": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"activate": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"activate-restconf": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"activate-cli": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"assign-activate": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
},
"imperative-test-wf": {
"inputs": {
"resource-assignment-properties": {
- "request-id": "",
- "service-instance-id": "",
- "vnf-id": "",
- "action-name": "",
- "scope-type": "",
- "hostname": "",
- "vnf_name": ""
+ "request-id": {
+ "type": "string",
+ "required": true
+ },
+ "service-instance-id": {
+ "type": "string",
+ "required": true
+ },
+ "vnf-id": {
+ "type": "string",
+ "required": true
+ },
+ "action-name": {
+ "type": "string",
+ "required": true
+ },
+ "scope-type": {
+ "type": "string",
+ "required": true
+ },
+ "hostname": {
+ "type": "string",
+ "required": true
+ },
+ "vnf_name": {
+ "type": "string",
+ "required": true
+ }
}
}
}