diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-19 15:38:02 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-19 15:38:02 +0530 |
commit | 99040346a8a1852eff7b8a609ffd94498d16a425 (patch) | |
tree | b5acd660fb05549f12eba27bbd5edd8bedd0e8c0 /products/onap-beijing/features/aai/src/main/resources/open-cli-sample | |
parent | 498906d6b99c78dccd6384be6599d35155e8f0d3 (diff) |
CLI: customer-list beijing
Change-Id: Idfe18cc2fab21779c11ab9edaf733fd18d75d4d9
Issue-ID: CLI-100
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-beijing/features/aai/src/main/resources/open-cli-sample')
2 files changed, 67 insertions, 0 deletions
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-moco.json b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-moco.json new file mode 100644 index 00000000..f7737271 --- /dev/null +++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-moco.json @@ -0,0 +1,35 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v11/business/customers", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "X-TransactionId" : "req-f56d4034-1ee8-469c-848a-8b9cd1afa19b", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "customer" : [ { + "global-customer-id" : "test", + "subscriber-name" : "test", + "subscriber-type" : "INFRA", + "resource-version" : "1509029022293" + }, { + "global-customer-id" : "kanag", + "subscriber-name" : "kanag", + "subscriber-type" : "INFRA", + "resource-version" : "1509029007060" + }, { + "global-customer-id" : "Demonstration", + "subscriber-name" : "Demonstration", + "subscriber-type" : "INFRA", + "resource-version" : "1508827908763" + } ] + } + } +} ]
\ No newline at end of file diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-sample.yaml b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-sample.yaml new file mode 100644 index 00000000..f76ed220 --- /dev/null +++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-sample.yaml @@ -0,0 +1,32 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_sample_version: 1.0 +name: customer-list +version: onap-beijing +samples: + sample1: + name: customer-list + input: + moco: customer-list-schema-1.1-moco.json + output: | + +----------------+------------------+ + |name |resource-version | + +----------------+------------------+ + |test |1509029022293 | + +----------------+------------------+ + |kanag |1509029007060 | + +----------------+------------------+ + |Demonstration |1508827908763 | + +----------------+------------------+ |