aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sdc/src/main/resources/onap-cli-schema
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:17:18 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:17:18 +0530
commitd9a02d3c870e72755ad14bb717daa9ec236480ba (patch)
tree7f90fcfd50992d7cdd03c634916459d020484cf6 /plugins/sdc/src/main/resources/onap-cli-schema
parent22554d46acba7dfb26dff3e346af40b54e7bca1f (diff)
Test VF model in SDC and cerify it
CLI-57 Change-Id: I71903c7d5cf5a6eb6ad531b7151d33b49b009b36 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/main/resources/onap-cli-schema')
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-complete-schema-1.1.yaml26
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-request-schema-1.1.yaml26
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-start-schema-1.1.yaml26
3 files changed, 78 insertions, 0 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-complete-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-complete-schema-1.1.yaml
new file mode 100644
index 00000000..4baca00c
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-complete-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: vf-model-certify-complete
+description: Complete certifying Virtual function
+version: onap-1.1
+service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: vf-id
+ description: VF ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: true
+
+http:
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/certify
+ method: POST
+ body: '{"userRemarks": "Completing certification via CLI"}'
+ success_codes:
+ - 200
+
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-request-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-request-schema-1.1.yaml
new file mode 100644
index 00000000..301449ce
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-request-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: vf-model-certify-request
+description: Request for certifying Virtual function
+version: onap-1.1
+service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: vf-id
+ description: VF ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: true
+
+http:
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/certificationRequest
+ method: POST
+ body: '{"userRemarks": "Requesting certification via CLI"}'
+ success_codes:
+ - 200
+
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-start-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-start-schema-1.1.yaml
new file mode 100644
index 00000000..f37a1af0
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf-model-certify-start-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: vf-model-certify-start
+description: Start certifying Virtual function
+version: onap-1.1
+service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: vf-id
+ description: VF ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: true
+
+http:
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/startCertification
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+