summaryrefslogtreecommitdiffstats
path: root/blueprints-processor/plugin/assignment-provider/src/test/resources
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2018-09-04 21:31:10 -0400
committerSingal, Kapil (ks220y) <ks220y@att.com>2018-09-04 21:35:06 -0400
commit79db143e7f121f28c6b8d44d66d86601ffc95ba4 (patch)
tree73a27c4ad152a25bab82aabf5e6f3ebf58afee0e /blueprints-processor/plugin/assignment-provider/src/test/resources
parent5256b3654a73d4c7e566c18e728cde153483a9f5 (diff)
SDN Blueprints Processor Input Resource Assignment
Creating SDN Controller Blueprints Input Resource Assignment Processor Change-Id: I64aec06cf09797177598c2348778e1c73dae3b5b Issue-ID: CCSDK-500 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Diffstat (limited to 'blueprints-processor/plugin/assignment-provider/src/test/resources')
-rw-r--r--blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/dt-location.json15
-rw-r--r--blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-complex.json24
-rw-r--r--blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-simple.json35
-rw-r--r--blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-complex.json13
-rw-r--r--blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-simple.json32
-rw-r--r--blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/sample-location.json4
6 files changed, 123 insertions, 0 deletions
diff --git a/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/dt-location.json b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/dt-location.json
new file mode 100644
index 000000000..52e0a7967
--- /dev/null
+++ b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/dt-location.json
@@ -0,0 +1,15 @@
+{
+ "version": "1.0.0",
+ "description": "test Data Type",
+ "properties": {
+ "country": {
+ "required": true,
+ "type": "string"
+ },
+ "state": {
+ "required": false,
+ "type": "string"
+ }
+ },
+ "derived_from": "tosca.datatypes.Root"
+}
diff --git a/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-complex.json b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-complex.json
new file mode 100644
index 000000000..7eabe440a
--- /dev/null
+++ b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-complex.json
@@ -0,0 +1,24 @@
+{
+ "location": {
+ "name": "location",
+ "property": {
+ "type": "dt-location"
+ },
+ "sources": {
+ "default": {
+ "type": "source-input"
+ }
+ }
+ },
+ "profile_name": {
+ "name": "profile_name",
+ "property": {
+ "type": "string"
+ },
+ "sources": {
+ "default": {
+ "type": "source-input"
+ }
+ }
+ }
+}
diff --git a/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-simple.json b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-simple.json
new file mode 100644
index 000000000..7b663f36a
--- /dev/null
+++ b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/input-simple.json
@@ -0,0 +1,35 @@
+{
+ "country": {
+ "name": "country",
+ "property": {
+ "type": "string"
+ },
+ "sources": {
+ "default": {
+ "type": "source-input"
+ }
+ }
+ },
+ "port": {
+ "name": "port",
+ "property": {
+ "type": "integer"
+ },
+ "sources": {
+ "default": {
+ "type": "source-input"
+ }
+ }
+ },
+ "voip-enabled": {
+ "name": "voip-enabled",
+ "property": {
+ "type": "boolean"
+ },
+ "sources": {
+ "default": {
+ "type": "source-input"
+ }
+ }
+ }
+}
diff --git a/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-complex.json b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-complex.json
new file mode 100644
index 000000000..9e17841b4
--- /dev/null
+++ b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-complex.json
@@ -0,0 +1,13 @@
+[
+ {
+ "name": "location",
+ "input-param": true,
+ "property": {
+ "type": "dt-location",
+ "required": true
+ },
+ "dictionary-name": "location",
+ "dictionary-source": "input",
+ "dependencies": []
+ }
+]
diff --git a/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-simple.json b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-simple.json
new file mode 100644
index 000000000..e3b2bcc06
--- /dev/null
+++ b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/resource-assignments-simple.json
@@ -0,0 +1,32 @@
+[
+ {
+ "name": "country",
+ "input-param": true,
+ "property": {
+ "type": "string",
+ "default": "US"
+ },
+ "dictionary-source": "input",
+ "dependencies": []
+ },
+ {
+ "name": "port",
+ "input-param": true,
+ "property": {
+ "type": "integer",
+ "default": 830
+ },
+ "dictionary-source": "input",
+ "dependencies": []
+ },
+ {
+ "name": "voip-enabled",
+ "input-param": true,
+ "property": {
+ "type": "boolean",
+ "default": true
+ },
+ "dictionary-source": "input",
+ "dependencies": []
+ }
+]
diff --git a/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/sample-location.json b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/sample-location.json
new file mode 100644
index 000000000..2f3f1c102
--- /dev/null
+++ b/blueprints-processor/plugin/assignment-provider/src/test/resources/mapping/input/sample-location.json
@@ -0,0 +1,4 @@
+{
+ "country": "US",
+ "state": "NJ"
+}