diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-11-17 05:42:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-17 05:42:51 +0000 |
commit | c7ff52dce48a949b3dc7252b3a1de70eb3069f1e (patch) | |
tree | a3ba3093484eefe5c0af9b3db26374855273980f /products/onap-casablanca/features | |
parent | 1aaa1b8f155267298b8286a569827385c25bd5b8 (diff) | |
parent | edab3ad1e20d485168b1a9a90896c0f42bca5636 (diff) |
Merge "Add build_tag and criteria for vnftest-run"
Diffstat (limited to 'products/onap-casablanca/features')
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 |