diff options
author | 2018-09-28 09:13:48 +0530 | |
---|---|---|
committer | 2018-09-28 09:16:04 +0530 | |
commit | 0d4a732a87a7a03c859c26cbce50ab1b7974181d (patch) | |
tree | 4b24de28c8335bc7a3dc2a7081e52bd110862509 /products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer | |
parent | 2ec48c82f0dc43ffbc307f212a1b484c18a85701 (diff) |
Casablanca: AAI customer-show
Issue-ID: CLI-122
Change-Id: Iab593d1d800849c5e4f9d78a80856fbe26caf6bb
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer')
4 files changed, 53 insertions, 2 deletions
diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-moco.json index 671696f6..be7ab31e 100644 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-moco.json +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-moco.json @@ -6,7 +6,7 @@ "Authorization" : "Basic QUFJOkFBSQ==",
"X-FromAppId" : "ONAP CLI",
"Accept" : "application/json",
- "X-TransactionId" : "req-c0c84e34-0ea1-4e2c-b91e-5e12838530bf",
+ "X-TransactionId" : "req-6e5c21be-a7a2-459d-8765-99f7663cdce9",
"Content-Type" : "application/json"
},
"json" : null
@@ -24,6 +24,11 @@ "subscriber-name" : "generic",
"subscriber-type" : "BSS",
"resource-version" : "1535628858377"
+ }, {
+ "global-customer-id" : "mrkanag",
+ "subscriber-name" : "mrkanag",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1538105836430"
} ]
}
}
diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-sample.yaml index a6d35a4a..66520916 100644 --- a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-sample.yaml +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-casablanca-sample.yaml @@ -4,6 +4,15 @@ version: onap-casablanca samples: sample1: name: customer-list - input: -d + input: moco: customer-list-schema-casablanca-moco.json output: | + +------------+------------------+ + |name |resource-version | + +------------+------------------+ + |Customer1 |1535520279641 | + +------------+------------------+ + |generic |1535628858377 | + +------------+------------------+ + |mrkanag |1538105836430 | + +------------+------------------+ diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-moco.json new file mode 100644 index 00000000..0919a999 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-moco.json @@ -0,0 +1,23 @@ +[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v13/business/customers/customer/mrkanag",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-04a4060f-b2ac-4cb5-97fb-2ec535599434",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "global-customer-id" : "mrkanag",
+ "subscriber-name" : "mrkanag",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1538105836430"
+ }
+ }
+} ]
\ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-sample.yaml new file mode 100644 index 00000000..aa38612d --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-casablanca-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: customer-show +version: onap-casablanca +samples: + sample1: + name: customer-show + input: --customer-name mrkanag --long + moco: customer-show-schema-casablanca-moco.json + output: | + +----------+------------------+------------------+------------------+ + |name |subscriber-name |resource-version |subscriber-type | + +----------+------------------+------------------+------------------+ + |mrkanag |mrkanag |1538105836430 |INFRA | + +----------+------------------+------------------+------------------+ |