summaryrefslogtreecommitdiffstats
path: root/products/onap-casablanca/features
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-casablanca/features')
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json23
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml10
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml13
3 files changed, 44 insertions, 2 deletions
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json
new file mode 100644
index 00000000..e598a1b1
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json
@@ -0,0 +1,23 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/vtp/tests/csar-validate/run",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "csar" : "D:\\workspace\\onap\\1.1\\vnfsdk\\validation\\csarvalidation\\src\\test\\resources\\USN.csar"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "results" : [ {
+ "error" : "SUCCESS"
+ } ],
+ "build_tag" : null,
+ "criteria" : "PASS"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml
new file mode 100644
index 00000000..c672b853
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: vnftest-run
+version: onap-vtp
+samples:
+ sample1:
+ name: vnftest-run
+ input: --name csar-validate --param csar=D:\workspace\onap\1.1\vnfsdk\validation\csarvalidation\src\test\resources\USN.csar --format json
+ moco: vnftest-run-moco.json
+ output: |
+ {"results":[{"property":"results","value":"{error=SUCCESS}"},{"property":"build_tag","value":"null"},{"property":"criteria","value":"PASS"}]}
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml
index 6e6aa0f6..b0120789 100644
--- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml
@@ -41,7 +41,14 @@ results:
description: Testcase results
scope: short
type: string
-
+ - name: build_tag
+ description: Test Running identifier
+ scope: short
+ type: string
+ - name: criteria
+ description: Testcase is PASS or FAILED
+ scope: short
+ type: string
http:
service:
auth: none
@@ -54,4 +61,6 @@ http:
- 201
- 200
result_map:
- results: $b{$.results} \ No newline at end of file
+ results: $b{$.results}
+ build_tag: $b{$.build_tag}
+ criteria: $b{$.criteria} \ No newline at end of file