diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2017-10-27 04:47:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-27 04:47:40 +0000 |
commit | 5a9fb54d59261285c1577c2eaffb351e6c478c24 (patch) | |
tree | 184e80c5ac5c25a631c8df6d0bb2d7b604ea6a78 | |
parent | c4128a3daa201a3cfd7af4c578b444ba97d6bbda (diff) | |
parent | b8590d3a25686c2840d7f2b4bc1c5fd9cd3bdc56 (diff) |
Merge "Add sample for service-type-create"
3 files changed, 30 insertions, 8 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml deleted file mode 100644 index a9d01569..00000000 --- a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml +++ /dev/null @@ -1,8 +0,0 @@ -onap_cli_sample_version: 1.0 - -name: service-type-create -version: onap-1.1 -samples: - sample1: - name: Create a service type - input: -h https://locahost:8443 -u AAI -p AAI -x vTest -y 26ab7af6-96cc-4c4e-814a-e533af4ef9f6 diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-moco.json new file mode 100644 index 00000000..5e54f153 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-moco.json @@ -0,0 +1,21 @@ +[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v11/service-design-and-creation/services/service/de1fa33f-f676-42e5-b79a-a39825c19b1d",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-db81a881-11a9-4eca-9611-e0abdfa81597",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "service-description" : "test",
+ "service-id" : "de1fa33f-f676-42e5-b79a-a39825c19b1d"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ]
\ No newline at end of file diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-sample.yaml new file mode 100644 index 00000000..0e5d5374 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-sample.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 +name: service-type-create +version: onap-1.1 +samples: + sample1: + name: service-type-create + input: --service-type test + moco: service-type-create-schema-1.1-moco.json + ouput: |