tenant samples 70/94570/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 11:25:51 +0000 (16:55 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 11:25:51 +0000 (16:55 +0530)
Change-Id: I8b01fa9555f7051c57766926836f283a678cc9b5
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/infra/tenant/tenant-create-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml [new file with mode: 0644]

diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..f8cb2c8
--- /dev/null
@@ -0,0 +1,21 @@
+[ {
+  "request" : {
+    "method" : "put",
+    "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants/tenant/6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-300c4e32-4fb2-4fe8-b238-e3cb13c2a9d1",
+      "Content-Type" : "application/json"
+    },
+    "json" : {
+      "tenant-id" : "6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+      "tenant-name" : "ocomp"
+    }
+  },
+  "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/infra/tenant/tenant-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..7e1c543
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: tenant-create
+version: onap-dublin
+samples:
+  sample1:
+    name: tenant-create
+    input: --format json --region RegionOVP --tenant-id 6fcac72c-a2cd-4d18-9f1d-09908ca08afe --cloud OCOMP --tenant-name ocomp
+    moco: tenant-create-schema-dublin-moco.json
+    output: |
+      [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..417976f
--- /dev/null
@@ -0,0 +1,18 @@
+[ {
+  "request" : {
+    "method" : "delete",
+    "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants/tenant/6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-22a79b24-0ed5-475c-9c5e-fed1d4461bb3",
+      "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/infra/tenant/tenant-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..1a21b00
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: tenant-delete
+version: onap-dublin
+samples:
+  sample1:
+    name: tenant-delete
+    input: --format json --region RegionOVP --resource-version 1567068676263 --cloud OCOMP --tenant-id 6fcac72c-a2cd-4d18-9f1d-09908ca08afe
+    moco: tenant-delete-schema-dublin-moco.json
+    output: |
+      [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..ea05623
--- /dev/null
@@ -0,0 +1,24 @@
+[ {
+  "request" : {
+    "method" : "get",
+    "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-be21d4e6-6e82-4a13-a1fb-0a2c6766e3e4",
+      "Content-Type" : "application/json"
+    },
+    "json" : null
+  },
+  "response" : {
+    "status" : 200,
+    "json" : {
+      "tenant" : [ {
+        "tenant-id" : "6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+        "tenant-name" : "ocomp",
+        "resource-version" : "1567068676263"
+      } ]
+    }
+  }
+} ]
\ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..c264bd0
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: tenant-list
+version: onap-dublin
+samples:
+  sample1:
+    name: tenant-list
+    input: --format json --region RegionOVP --cloud OCOMP
+    moco: tenant-list-schema-dublin-moco.json
+    output: |
+      [{"resource-version":"1567068676263","tenant-id":"6fcac72c-a2cd-4d18-9f1d-09908ca08afe","tenant-name":"ocomp"}]