summaryrefslogtreecommitdiffstats
path: root/framework/src/test/resources/schema-validate-pass.yaml
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-07-19 15:14:29 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-07-19 15:31:19 +0530
commitb610d2dbfa445e2ed8fd7f9976ae7a776666d630 (patch)
tree6d58385dc197aada4c6a832c922f04d0f4da61ad /framework/src/test/resources/schema-validate-pass.yaml
parent20173579de1cd7d8f70fc2cdf17a4f9c0fc6e946 (diff)
Add seed code from Open-Orelease-1.0.0
It migrated the code from Open-O into onap namespace and adds the required framework, main, deployment and some sample plugins for msb. CLI-7 CLI-8 CLI-11 Change-Id: I499e34237daccb971ef74bd10e50f50707baa4d3 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/test/resources/schema-validate-pass.yaml')
-rw-r--r--framework/src/test/resources/schema-validate-pass.yaml153
1 files changed, 153 insertions, 0 deletions
diff --git a/framework/src/test/resources/schema-validate-pass.yaml b/framework/src/test/resources/schema-validate-pass.yaml
new file mode 100644
index 00000000..91fb3141
--- /dev/null
+++ b/framework/src/test/resources/schema-validate-pass.yaml
@@ -0,0 +1,153 @@
+onap_cmd_schema_version: 1.0
+name: sdnc-create
+description: Register SDNC into Onap
+service:
+ name: extsys
+ version: v1
+parameters:
+ - name: name
+ description: Onap SDNC name
+ scope: short
+ type: string
+ short_option: n
+ long_option: name
+ is_optional: false
+ - name: vendor
+ description: Onap SDNC vendor
+ scope: short
+ type: string
+ short_option: e
+ long_option: vendor
+ is_optional: false
+ - name: type
+ description: Onap SDNC type
+ scope: short
+ type: string
+ short_option: y
+ long_option: type
+ is_optional: false
+ - name: sdnc-version
+ description: Onap SDNC version
+ scope: short
+ type: string
+ short_option: r
+ long_option: sdnc-version
+ is_optional: false
+ - name: url
+ description: Onap SDNC base url
+ scope: short
+ type: url
+ short_option: l
+ long_option: url
+ is_optional: false
+ - name: description
+ description: Onap SDNC description
+ scope: short
+ type: string
+ short_option: i
+ long_option: description
+ is_optional: false
+ - name: username
+ description: Onap SDNC username
+ scope: short
+ type: string
+ short_option: g
+ long_option: username
+ is_optional: false
+ - name: password
+ description: Onap SDNC password
+ scope: short
+ type: string
+ is_secured: true
+ short_option: j
+ long_option: password
+ is_optional: false
+ - name: product-name
+ description: Onap SDNC product-name
+ scope: short
+ type: string
+ short_option: o
+ long_option: product-name
+ is_optional: false
+ - name: protocol
+ description: Onap SDNC protocol
+ scope: short
+ type: string
+ short_option: k
+ long_option: protocol
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Onap SDNC ID
+ scope: short
+ type: string
+ - name: name
+ description: Onap SDNC name
+ scope: short
+ type: string
+ - name: vendor
+ description: Onap SDNC vendor
+ scope: short
+ type: string
+ - name: type
+ description: Onap SDNC type
+ scope: short
+ type: string
+ - name: version
+ description: Onap SDNC version
+ scope: short
+ type: string
+ - name: url
+ description: Onap SDNC base url
+ scope: short
+ type: url
+ - name: description
+ description: Onap SDNC description
+ scope: short
+ type: string
+ - name: username
+ description: Onap SDNC username
+ scope: short
+ type: string
+ - name: password
+ description: Onap SDNC password
+ scope: short
+ type: string
+ is_secured: true
+ - name: product-name
+ description: Onap SDNC product name
+ scope: short
+ type: string
+ - name: protocol
+ description: Onap SDNC protocol
+ scope: short
+ type: string
+ - name: create-time
+ description: Onap SDNC create-time
+ scope: long
+ type: string
+http:
+ request:
+ headers:
+ createOrUpdate: ${create-or-update1}
+ body: {"name":"${name}","vendor":"${vendor}","version":"${sdnc-version}","description":"${description}","type":"${type}","url":"${url}","userName":"${username}","password":"${password}","productName":"${product-name}","protocol":"${protocol}"}
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ id: $b{$.sdnControllerId}
+ name: $b{$.name}
+ vendor: $b{$.vendor}
+ type: $b{$.type}
+ version: $b{$.version}
+ url: $b{$.url}
+ description: $b{$.description}
+ username: $b{$.userName}
+ password: $b{$.password}
+ protocol: $b{$.protocol}
+ product-name: $b{$.productName}
+ create-time: $b{$.createTime}
+ sample_response:
+ body: '{"id":"string","name":"string","vendor":"string","version":"string","description":"string","type":"string","createTime":"string","url":"string","userName":"string","password":"string","productName":"string","protocol":"string"}'