customer samples 68/94568/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 11:25:47 +0000 (16:55 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 11:25:47 +0000 (16:55 +0530)
Change-Id: I77cf39cac9822374392132191b762c7b6197e0ab
Issue-ID: CLI-166
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml [new file with mode: 0644]

diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..4a50d14
--- /dev/null
@@ -0,0 +1,22 @@
+[ {
+  "request" : {
+    "method" : "put",
+    "uri" : "/aai/v13/business/customers/customer/ovp",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-7c0cea00-bd21-4560-b31e-c03c5ad3ffa3",
+      "Content-Type" : "application/json"
+    },
+    "json" : {
+      "global-customer-id" : "ovp",
+      "subscriber-name" : "ovp",
+      "subscriber-type" : "INFRA"
+    }
+  },
+  "response" : {
+    "status" : 201,
+    "json" : null
+  }
+} ]
\ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..6c9904b
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: customer-create
+version: onap-dublin
+samples:
+  sample1:
+    name: customer-create
+    input: --format json --customer-name ovp --subscriber-name ovp
+    moco: customer-create-schema-dublin-moco.json
+    output: |
+      [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..2b0e8e9
--- /dev/null
@@ -0,0 +1,18 @@
+[ {
+  "request" : {
+    "method" : "delete",
+    "uri" : "/aai/v13/business/customers/customer/ovp",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-e1e39cdd-d681-49eb-8fc3-0372fc6a6f27",
+      "Content-Type" : "application/json"
+    },
+    "json" : null
+  },
+  "response" : {
+    "status" : 204,
+    "json" : null
+  }
+} ]
\ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-delete-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..cbbc644
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: customer-delete
+version: onap-dublin
+samples:
+  sample1:
+    name: customer-delete
+    input: --format json --customer-id ovp --resource-version 1567068664088
+    moco: customer-delete-schema-dublin-moco.json
+    output: |
+      [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..b5dff83
--- /dev/null
@@ -0,0 +1,30 @@
+[ {
+  "request" : {
+    "method" : "get",
+    "uri" : "/aai/v13/business/customers",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-59c70d03-10ab-42a8-b6a7-65a0c85f22e4",
+      "Content-Type" : "application/json"
+    },
+    "json" : null
+  },
+  "response" : {
+    "status" : 200,
+    "json" : {
+      "customer" : [ {
+        "global-customer-id" : "Demonstration",
+        "subscriber-name" : "Demonstration",
+        "subscriber-type" : "INFRA",
+        "resource-version" : "1564139322133"
+      }, {
+        "global-customer-id" : "ovp",
+        "subscriber-name" : "ovp",
+        "subscriber-type" : "INFRA",
+        "resource-version" : "1567068664088"
+      } ]
+    }
+  }
+} ]
\ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/customer/customer-list-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..02f0bf4
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: customer-list
+version: onap-dublin
+samples:
+  sample1:
+    name: customer-list
+    input: --format json
+    moco: customer-list-schema-dublin-moco.json
+    output: |
+      [{"resource-version":"1564139322133","name":"Demonstration"},{"resource-version":"1567068664088","name":"ovp"}]