service-type samples 69/94569/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 11:25:49 +0000 (16:55 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 11:25:49 +0000 (16:55 +0530)
Change-Id: I99183c1f655163d39cd63b000cbb9dca924da728
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/service-type/service-type-create-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-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/service-type/service-type-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..6942384
--- /dev/null
@@ -0,0 +1,21 @@
+[ {
+  "request" : {
+    "method" : "put",
+    "uri" : "/aai/v13/service-design-and-creation/services/service/tosca_vnf_validation",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-278f4b1f-de6f-4709-8fa2-f0d06a3e8fd7",
+      "Content-Type" : "application/json"
+    },
+    "json" : {
+      "service-description" : "tosca_vnf_validation",
+      "service-id" : "tosca_vnf_validation"
+    }
+  },
+  "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/service-type/service-type-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..afe4fc8
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: service-type-create
+version: onap-dublin
+samples:
+  sample1:
+    name: service-type-create
+    input: --format json --service-type tosca_vnf_validation --service-type-id tosca_vnf_validation
+    moco: service-type-create-schema-dublin-moco.json
+    output: |
+      [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..fe84fab
--- /dev/null
@@ -0,0 +1,18 @@
+[ {
+  "request" : {
+    "method" : "delete",
+    "uri" : "/aai/v13/service-design-and-creation/services/service/tosca_vnf_validation",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-0a160884-549b-4a63-8c26-631f1097dfa7",
+      "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/service-type/service-type-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-delete-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..8f6ac49
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: service-type-delete
+version: onap-dublin
+samples:
+  sample1:
+    name: service-type-delete
+    input: --format json --resource-version 1567068649380 --service-type-id tosca_vnf_validation
+    moco: service-type-delete-schema-dublin-moco.json
+    output: |
+      [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..b7faf00
--- /dev/null
@@ -0,0 +1,48 @@
+[ {
+  "request" : {
+    "method" : "get",
+    "uri" : "/aai/v13/service-design-and-creation/services",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-75560ef7-f314-49bd-b825-4b282c49829a",
+      "Content-Type" : "application/json"
+    },
+    "json" : null
+  },
+  "response" : {
+    "status" : 200,
+    "json" : {
+      "service" : [ {
+        "service-id" : "e8cb8968-5411-478b-906a-f28747de72cd",
+        "service-description" : "vFW",
+        "resource-version" : "1564140431957"
+      }, {
+        "service-id" : "60330738-6cd0-4032-af2a-3088a03d4f47",
+        "service-description" : "vLB",
+        "resource-version" : "1564455509142"
+      }, {
+        "service-id" : "47412b60-6fb0-4b57-b801-77e0cbb69441",
+        "service-description" : "vCPE",
+        "resource-version" : "1564455509234"
+      }, {
+        "service-id" : "399e426b-2467-4575-8aa3-78ca766f9f37",
+        "service-description" : "vFWCL",
+        "resource-version" : "1564455509053"
+      }, {
+        "service-id" : "51afd5ba-bf2d-460c-b9a4-302fd70aec1c",
+        "service-description" : "vIMS",
+        "resource-version" : "1564455509330"
+      }, {
+        "service-id" : "tosca_vnf_validation",
+        "service-description" : "tosca_vnf_validation",
+        "resource-version" : "1567068649380"
+      }, {
+        "service-id" : "e3a3e05d-2179-4f04-b6ab-0a87909caf49",
+        "service-description" : "gNB",
+        "resource-version" : "1564455509431"
+      } ]
+    }
+  }
+} ]
\ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-list-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..abd72b1
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: service-type-list
+version: onap-dublin
+samples:
+  sample1:
+    name: service-type-list
+    input: --format json
+    moco: service-type-list-schema-dublin-moco.json
+    output: |
+      [{"resource-version":"1564140431957","service-type":"vFW","service-type-id":"e8cb8968-5411-478b-906a-f28747de72cd"},{"resource-version":"1564455509142","service-type":"vLB","service-type-id":"60330738-6cd0-4032-af2a-3088a03d4f47"},{"resource-version":"1564455509234","service-type":"vCPE","service-type-id":"47412b60-6fb0-4b57-b801-77e0cbb69441"},{"resource-version":"1564455509053","service-type":"vFWCL","service-type-id":"399e426b-2467-4575-8aa3-78ca766f9f37"},{"resource-version":"1564455509330","service-type":"vIMS","service-type-id":"51afd5ba-bf2d-460c-b9a4-302fd70aec1c"},{"resource-version":"1567068649380","service-type":"tosca_vnf_validation","service-type-id":"tosca_vnf_validation"},{"resource-version":"1564455509431","service-type":"gNB","service-type-id":"e3a3e05d-2179-4f04-b6ab-0a87909caf49"}]