Add vlm-list 1.1 with samples 45/21245/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Mon, 30 Oct 2017 08:44:00 +0000 (14:14 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Mon, 30 Oct 2017 08:44:00 +0000 (14:14 +0530)
CLI-57

Change-Id: I4ae1716d8f7fe05a4f23abc05ccd2cf454e79df6
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
plugins/sdc/src/main/resources/onap-cli-schema/vlm/vlm-list-schema-1.1.yaml [new file with mode: 0644]
plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-moco.json [new file with mode: 0644]
plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-sample.yaml [new file with mode: 0644]

diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vlm/vlm-list-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/vlm-list-schema-1.1.yaml
new file mode 100644 (file)
index 0000000..e894495
--- /dev/null
@@ -0,0 +1,45 @@
+open_cli_schema_version: 1.0
+name: vlm-list
+description: List License Model
+version: onap-1.1
+service:
+  name: sdc
+  version: v1.0
+  auth: basic
+  mode: direct
+
+results:
+  direction: landscape
+  attributes:
+    - name: id
+      description: License ID
+      scope: short
+      type: uuid
+    - name: vendor-name
+      description: Vendor  Name
+      scope: short
+      type: string
+    - name: vlm-version
+      description: VLM version
+      scope: long
+      type: string
+    - name: status
+      description: status
+      scope: short
+      type: string
+    - name: description
+      description: License description
+      scope: long
+      type: string
+http:
+  request:
+    uri: /onboarding-api/v1.0/vendor-license-models
+    method: GET
+  success_codes:
+    - 200
+  result_map:
+    id: $b{$.results.[*].id}
+    vendor-name: $b{$.results.[*].vendorName}
+    vlm-version: $b{$.results.[*].version.id}
+    status: $b{$.results.[*].status}
+    description: $b{$.results.[*].description}
\ No newline at end of file
diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-moco.json b/plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-moco.json
new file mode 100644 (file)
index 0000000..005833a
--- /dev/null
@@ -0,0 +1,415 @@
+[ {\r
+  "request" : {\r
+    "method" : "get",\r
+    "uri" : "/onboarding-api/v1.0/vendor-license-models",\r
+    "headers" : {\r
+      "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",\r
+      "X-FromAppId" : "onap-cli",\r
+      "Accept" : "application/json",\r
+      "USER_ID" : "cs0008",\r
+      "X-TransactionId" : "req-8dd63676-53d7-4825-adea-be1a21add819",\r
+      "Content-Type" : "application/json"\r
+    },\r
+    "json" : null\r
+  },\r
+  "response" : {\r
+    "status" : 200,\r
+    "json" : {\r
+      "listCount" : 21,\r
+      "results" : [ {\r
+        "vendorName" : "kanag-cli",\r
+        "description" : "First License created from CLI",\r
+        "iconRef" : "icon",\r
+        "id" : "cf2d907d998e44698ce3b4cded5f66a7",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "Test",\r
+        "description" : "test",\r
+        "iconRef" : "icon",\r
+        "id" : "144497a1b7924e0fa73004573730e1b8",\r
+        "version" : {\r
+          "id" : "0.1",\r
+          "label" : "0.1"\r
+        },\r
+        "status" : "Locked",\r
+        "lockingUser" : "cs0008",\r
+        "viewableVersions" : [ {\r
+          "id" : "0.1",\r
+          "label" : "0.1"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "4718de22-00d3-4607-b666",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "9af398f516da4e63b4ec8d344866533b",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "Kanag",\r
+        "description" : "Kanagaraj M @ HTIPL",\r
+        "iconRef" : "icon",\r
+        "id" : "1173c7be5fea4db799b1a5ef9512e57e",\r
+        "version" : {\r
+          "id" : "4.0",\r
+          "label" : "4.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        }, {\r
+          "id" : "2.0",\r
+          "label" : "2.0"\r
+        }, {\r
+          "id" : "3.0",\r
+          "label" : "3.0"\r
+        }, {\r
+          "id" : "4.0",\r
+          "label" : "4.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        }, {\r
+          "id" : "2.0",\r
+          "label" : "2.0"\r
+        }, {\r
+          "id" : "3.0",\r
+          "label" : "3.0"\r
+        }, {\r
+          "id" : "4.0",\r
+          "label" : "4.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "test-vendor",\r
+        "description" : "test ",\r
+        "iconRef" : "icon",\r
+        "id" : "fc0fdcc825a54ca3b08e40f473b72d05",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "0138a2e2-52bf-4f0b-81cd",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "b66c5e1b4af3432ca2f6cd05adf72340",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "48fa02ef-e79b-4707-895e",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "34c2c72e992742e3b7ceb78bfcd21ebb",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "1e5d1422-1f5f-42fe-a98e",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "4bbd11c581ce4bb187a0a37131e5bb60",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "3029be5e-9135-4083-bd2e",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "1329476d73014587839fd3ede08c3103",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "c6ba2ef6-fe82-4f32-ad50",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "2ca684a9805b40f9993239e77b82fb52",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "01eb54a1-f1ff-41a2-aafc",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "1a49df7b78654777a71f64f2c6c2468f",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "a920b10d-c516-4380-835a",\r
+        "description" : "vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "5e571e8a25c8404da04f2a0ec179f576",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicense7d8bbcab",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "4b1e1efd8bb944bdbc0c3e74a9402967",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicense09c55d35",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "816c04fd4ee849f2b80435e0944189fa",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicense6bfd9421",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "9408208f5b6d4eb997dff1b901f1fb95",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicense81acf730",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "eda4e9d1cae14cad95befc1728629574",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicensef3f5a4fa",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "022140c2dc4e40bbae096aa1fb5cfbe9",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicense9fddd8db",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "19f92b345cae423ab4ea6c5527d55ef6",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicense9a46fd22",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "492d9259fc3e493d8fa6afd488054508",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicensed955b6d7",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "a5da3e50ed72483fbfb134bac84b31f6",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      }, {\r
+        "vendorName" : "ciLicensef21d8db3",\r
+        "description" : "new vendor license model",\r
+        "iconRef" : "icon",\r
+        "id" : "9ff65b0b943141a7b99481bbcaedc294",\r
+        "version" : {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        },\r
+        "status" : "Final",\r
+        "viewableVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ],\r
+        "finalVersions" : [ {\r
+          "id" : "1.0",\r
+          "label" : "1.0"\r
+        } ]\r
+      } ]\r
+    }\r
+  }\r
+} ]
\ No newline at end of file
diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-sample.yaml b/plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-sample.yaml
new file mode 100644 (file)
index 0000000..6ead4cf
--- /dev/null
@@ -0,0 +1,54 @@
+onap_cli_sample_version: 1.0
+name: vlm-list
+version: onap-1.1
+samples:
+  sample1:
+    name: vlm-list
+    input: 
+    moco: vlm-list-schema-1.1-moco.json
+    ouput:|
+      +----------------------------------+--------------------------+--------+
+      |id                                |vendor-name               |status  |
+      +----------------------------------+--------------------------+--------+
+      |cf2d907d998e44698ce3b4cded5f66a7  |kanag-cli                 |Final   |
+      +----------------------------------+--------------------------+--------+
+      |144497a1b7924e0fa73004573730e1b8  |Test                      |Locked  |
+      +----------------------------------+--------------------------+--------+
+      |9af398f516da4e63b4ec8d344866533b  |4718de22-00d3-4607-b666   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |1173c7be5fea4db799b1a5ef9512e57e  |Kanag                     |Final   |
+      +----------------------------------+--------------------------+--------+
+      |fc0fdcc825a54ca3b08e40f473b72d05  |test-vendor               |Final   |
+      +----------------------------------+--------------------------+--------+
+      |b66c5e1b4af3432ca2f6cd05adf72340  |0138a2e2-52bf-4f0b-81cd   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |34c2c72e992742e3b7ceb78bfcd21ebb  |48fa02ef-e79b-4707-895e   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |4bbd11c581ce4bb187a0a37131e5bb60  |1e5d1422-1f5f-42fe-a98e   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |1329476d73014587839fd3ede08c3103  |3029be5e-9135-4083-bd2e   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |2ca684a9805b40f9993239e77b82fb52  |c6ba2ef6-fe82-4f32-ad50   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |1a49df7b78654777a71f64f2c6c2468f  |01eb54a1-f1ff-41a2-aafc   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |5e571e8a25c8404da04f2a0ec179f576  |a920b10d-c516-4380-835a   |Final   |
+      +----------------------------------+--------------------------+--------+
+      |4b1e1efd8bb944bdbc0c3e74a9402967  |ciLicense7d8bbcab         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |816c04fd4ee849f2b80435e0944189fa  |ciLicense09c55d35         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |9408208f5b6d4eb997dff1b901f1fb95  |ciLicense6bfd9421         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |eda4e9d1cae14cad95befc1728629574  |ciLicense81acf730         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |022140c2dc4e40bbae096aa1fb5cfbe9  |ciLicensef3f5a4fa         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |19f92b345cae423ab4ea6c5527d55ef6  |ciLicense9fddd8db         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |492d9259fc3e493d8fa6afd488054508  |ciLicense9a46fd22         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |a5da3e50ed72483fbfb134bac84b31f6  |ciLicensed955b6d7         |Final   |
+      +----------------------------------+--------------------------+--------+
+      |9ff65b0b943141a7b99481bbcaedc294  |ciLicensef21d8db3         |Final   |
+      +----------------------------------+--------------------------+--------+