summaryrefslogtreecommitdiffstats
path: root/plugins/sdc/src/test
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-30 10:53:25 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-30 11:03:13 +0530
commit0fbc7b01a56edb9255a1dd81195ac1642b326915 (patch)
tree29df58910fd35d241d157131a9c87120350270d2 /plugins/sdc/src/test
parent3dbbf4aed6d3c620b8fff76f21a296aeeade5cbd (diff)
Add vsp-validate and samples
CLI-57 Change-Id: I82a70db1e1fa59acf534853b3bcd0872253a9120 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/test')
-rw-r--r--plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-moco.json46
-rw-r--r--plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-sample.yaml44
2 files changed, 90 insertions, 0 deletions
diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-moco.json b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-moco.json
new file mode 100644
index 00000000..6dc8041d
--- /dev/null
+++ b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-moco.json
@@ -0,0 +1,46 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products/5ca119e2326045d1857ae3f04a816434/versions/0.1/orchestration-template-candidate/process",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-79f5d3d8-36b6-4b66-ad35-4666556ef022",
+ "Content-Type" : "application/json"
+ },
+ "json" : { }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "fileNames" : [ "base_vfw.yaml", "base_vfw.env" ],
+ "errors" : {
+ "base_vfw.yaml" : [ {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vfw_private_2_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vpg_private_1_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vsn_private_1_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: A resource is connected twice to the same network role, Network Role [vpg_0], Resource ID [onap_private]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vpg_0]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: A resource is connected twice to the same network role, Network Role [vsn_0], Resource ID [onap_private]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vsn_0]"
+ } ]
+ },
+ "status" : "Success"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-sample.yaml b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-sample.yaml
new file mode 100644
index 00000000..119f5a80
--- /dev/null
+++ b/plugins/sdc/src/test/resources/onap-cli-sample/vsp/vsp-validate-schema-1.1-sample.yaml
@@ -0,0 +1,44 @@
+onap_cli_sample_version: 1.0
+name: vsp-validate
+version: onap-1.1
+samples:
+ sample1:
+ name: vsp-validate
+ input: --vsp-id 5ca119e2326045d1857ae3f04a816434 --vsp-version 0.1
+ moco: vsp-validate-schema-1.1-moco.json
+ ouput:|
+ +----------+----------------------------------------------------+
+ |property |value |
+ +----------+----------------------------------------------------+
+ |status |Success |
+ +----------+----------------------------------------------------+
+ |errors |{base_vfw.yaml=[{"level":"WARNING","message":"WARN |
+ | |ING: Port 'Fixed_IPS' Parameter Name not aligned |
+ | |with Guidelines, Parameter Name |
+ | |[onap_private_subnet_id], Resource ID |
+ | |[vfw_private_2_port]. As a result, VF\/VFC |
+ | |Profile may miss this information"},{"level":"WARN |
+ | |ING","message":"WARNING: Port 'Fixed_IPS' |
+ | |Parameter Name not aligned with Guidelines, |
+ | |Parameter Name [onap_private_subnet_id], Resource |
+ | |ID [vpg_private_1_port]. As a result, VF\/VFC |
+ | |Profile may miss this information"},{"level":"WARN |
+ | |ING","message":"WARNING: Port 'Fixed_IPS' |
+ | |Parameter Name not aligned with Guidelines, |
+ | |Parameter Name [onap_private_subnet_id], Resource |
+ | |ID [vsn_private_1_port]. As a result, VF\/VFC |
+ | |Profile may miss this information"},{"level":"WARN |
+ | |ING","message":"WARNING: A resource is connected |
+ | |twice to the same network role, Network Role |
+ | |[vpg_0], Resource ID [onap_private]"},{"level":"WA |
+ | |RNING","message":"WARNING: Nova Server naming |
+ | |convention in image, flavor and name properties |
+ | |is not consistent, Resource ID |
+ | |[vpg_0]"},{"level":"WARNING","message":"WARNING: |
+ | |A resource is connected twice to the same network |
+ | |role, Network Role [vsn_0], Resource ID [onap_priv |
+ | |ate]"},{"level":"WARNING","message":"WARNING: |
+ | |Nova Server naming convention in image, flavor |
+ | |and name properties is not consistent, Resource |
+ | |ID [vsn_0]"}]} |
+ +----------+----------------------------------------------------+