aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-11-16 14:36:02 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-11-16 14:36:02 +0530
commitedab3ad1e20d485168b1a9a90896c0f42bca5636 (patch)
tree0a1c72101930f22250978288af99278b7d04a9d4
parente644f7fc1173b4b0ebe66648f4f26f6b6c46d573 (diff)
Add build_tag and criteria for vnftest-run
Issue-ID: VNFSDK-334 Change-Id: I9d54e438415e0e41ff0f56525f0f810284404b2f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-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