diff options
Diffstat (limited to 'plugins')
3 files changed, 514 insertions, 0 deletions
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 index 00000000..e8944955 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/vlm/vlm-list-schema-1.1.yaml @@ -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 index 00000000..005833ac --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-moco.json @@ -0,0 +1,415 @@ +[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-8dd63676-53d7-4825-adea-be1a21add819",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "listCount" : 21,
+ "results" : [ {
+ "vendorName" : "kanag-cli",
+ "description" : "First License created from CLI",
+ "iconRef" : "icon",
+ "id" : "cf2d907d998e44698ce3b4cded5f66a7",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "Test",
+ "description" : "test",
+ "iconRef" : "icon",
+ "id" : "144497a1b7924e0fa73004573730e1b8",
+ "version" : {
+ "id" : "0.1",
+ "label" : "0.1"
+ },
+ "status" : "Locked",
+ "lockingUser" : "cs0008",
+ "viewableVersions" : [ {
+ "id" : "0.1",
+ "label" : "0.1"
+ } ]
+ }, {
+ "vendorName" : "4718de22-00d3-4607-b666",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "9af398f516da4e63b4ec8d344866533b",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "Kanag",
+ "description" : "Kanagaraj M @ HTIPL",
+ "iconRef" : "icon",
+ "id" : "1173c7be5fea4db799b1a5ef9512e57e",
+ "version" : {
+ "id" : "4.0",
+ "label" : "4.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ }, {
+ "id" : "2.0",
+ "label" : "2.0"
+ }, {
+ "id" : "3.0",
+ "label" : "3.0"
+ }, {
+ "id" : "4.0",
+ "label" : "4.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ }, {
+ "id" : "2.0",
+ "label" : "2.0"
+ }, {
+ "id" : "3.0",
+ "label" : "3.0"
+ }, {
+ "id" : "4.0",
+ "label" : "4.0"
+ } ]
+ }, {
+ "vendorName" : "test-vendor",
+ "description" : "test ",
+ "iconRef" : "icon",
+ "id" : "fc0fdcc825a54ca3b08e40f473b72d05",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "0138a2e2-52bf-4f0b-81cd",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "b66c5e1b4af3432ca2f6cd05adf72340",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "48fa02ef-e79b-4707-895e",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "34c2c72e992742e3b7ceb78bfcd21ebb",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "1e5d1422-1f5f-42fe-a98e",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "4bbd11c581ce4bb187a0a37131e5bb60",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "3029be5e-9135-4083-bd2e",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "1329476d73014587839fd3ede08c3103",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "c6ba2ef6-fe82-4f32-ad50",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "2ca684a9805b40f9993239e77b82fb52",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "01eb54a1-f1ff-41a2-aafc",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "1a49df7b78654777a71f64f2c6c2468f",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "a920b10d-c516-4380-835a",
+ "description" : "vendor license model",
+ "iconRef" : "icon",
+ "id" : "5e571e8a25c8404da04f2a0ec179f576",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicense7d8bbcab",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "4b1e1efd8bb944bdbc0c3e74a9402967",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicense09c55d35",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "816c04fd4ee849f2b80435e0944189fa",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicense6bfd9421",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "9408208f5b6d4eb997dff1b901f1fb95",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicense81acf730",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "eda4e9d1cae14cad95befc1728629574",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicensef3f5a4fa",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "022140c2dc4e40bbae096aa1fb5cfbe9",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicense9fddd8db",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "19f92b345cae423ab4ea6c5527d55ef6",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicense9a46fd22",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "492d9259fc3e493d8fa6afd488054508",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicensed955b6d7",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "a5da3e50ed72483fbfb134bac84b31f6",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ }, {
+ "vendorName" : "ciLicensef21d8db3",
+ "description" : "new vendor license model",
+ "iconRef" : "icon",
+ "id" : "9ff65b0b943141a7b99481bbcaedc294",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "status" : "Final",
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ]
+ } ]
+ }
+ }
+} ]
\ 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 index 00000000..6ead4cf2 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vlm/vlm-list-schema-1.1-sample.yaml @@ -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 | + +----------------------------------+--------------------------+--------+ |