diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-27 09:31:46 +0530 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2017-10-27 04:35:55 +0000 |
commit | b8590d3a25686c2840d7f2b4bc1c5fd9cd3bdc56 (patch) | |
tree | 526ffad4a596433b16db8006d17658e699115133 /plugins/aai/src/test/resources | |
parent | ac5043681e662aa837c9be7d1d794861dd7aeb87 (diff) |
Add sample for service-type-create
CLI-57
Change-Id: Id900c540e21dd6c4e78f3bd5447f54285d638dc6
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/test/resources')
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: |