From e595350b9af7e1df041b4686608c4b385613e681 Mon Sep 17 00:00:00 2001 From: Itohan Ukponmwan Date: Sat, 16 Mar 2019 00:39:52 +0000 Subject: New vlm-list command for onap-dublin CLI -vlm-list command added for onap-dublin CLI -test files also added for vlm commands Change-Id: I0b02baeddd57e253bbb78d9b54face6032d62069 Issue-ID: CLI-154 Signed-off-by: Itohan Ukponmwan --- .../vlm-aggreement-create-schema-dublin-moco.json | 29 +++++ ...vlm-aggreement-create-schema-dublin-sample.yaml | 27 ++++ .../vlm/vlm-create-schema-dublin-moco.json | 31 +++++ .../vlm/vlm-create-schema-dublin-sample.yaml | 29 +++++ ...entitlement-pool-create-schema-dublin-moco.json | 30 +++++ ...titlement-pool-create-schema-dublin-sample.yaml | 27 ++++ ...lm-feature-group-create-schema-dublin-moco.json | 27 ++++ ...-feature-group-create-schema-dublin-sample.yaml | 27 ++++ .../vlm-key-group-create-schema-dublin-moco.json | 25 ++++ .../vlm-key-group-create-schema-dublin-sample.yaml | 27 ++++ .../vlm/vlm-list-schema-dublin-moco.json | 142 +++++++++++++++++++++ .../vlm/vlm-list-schema-dublin-sample.yaml | 55 ++++++++ .../vlm/vlm-submit-schema-dublin-moco.json | 21 +++ .../vlm/vlm-submit-schema-dublin-sample.yaml | 22 ++++ .../vlm/vlm-list-schema-dublin.yaml | 46 +++++++ 15 files changed, 565 insertions(+) create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-sample.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml (limited to 'products/onap-dublin') diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-moco.json new file mode 100644 index 00000000..ba537d69 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-moco.json @@ -0,0 +1,29 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/license-agreements", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-43cc944d-8da7-41f3-95c7-59baf629cbd4", + "Content-Type" : "application/json" + }, + "json" : { + "addedFeatureGroupsIds" : [ "457e9905f32544cca5351e86cc2e7958" ], + "description" : "philip-aggrement", + "licenseTerm" : { + "choice" : "Fixed_Term", + "other" : "" + }, + "name" : "philip-agreement" + } + }, + "response" : { + "status" : 200, + "json" : { + "value" : "ad7e38cbd8d94b0a8705b58a461e6b70" + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..4838044e --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-dublin-sample.yaml @@ -0,0 +1,27 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +open_cli_sample_version: 1.0 +name: -x +version: onap-dublin +samples: + sample1: + name: -x + input: philip-agreement -y 6b33c26b3a924b2789fa17fabd4a292d -e 2b683bedebeb4874a9c2a82939c77f0d -z philip-aggrement -g 457e9905f32544cca5351e86cc2e7958 -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vlm-aggreement-create-schema-dublin-moco.json + output: | + +----------+----------------------------------+ + |property |value | + +----------+----------------------------------+ + |ID |ad7e38cbd8d94b0a8705b58a461e6b70 | + +----------+----------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-moco.json new file mode 100644 index 00000000..da03ee30 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-moco.json @@ -0,0 +1,31 @@ +[ { + "request" : { + "method" : "post", + "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-0b3114ea-c98a-4035-b0f4-9f522f0188d4", + "Content-Type" : "application/json" + }, + "json" : { + "vendorName" : "philip-vendor", + "description" : "", + "iconRef" : "icon" + } + }, + "response" : { + "status" : 200, + "json" : { + "itemId" : "6b33c26b3a924b2789fa17fabd4a292d", + "version" : { + "id" : "2b683bedebeb4874a9c2a82939c77f0d", + "name" : "1.0", + "description" : "Initial version", + "status" : "Draft" + } + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..1dcfa931 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-dublin-sample.yaml @@ -0,0 +1,29 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +open_cli_sample_version: 1.0 +name: -x +version: onap-dublin +samples: + sample1: + name: -x + input: philip-vendor -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vlm-create-schema-dublin-moco.json + output: | + +----------+----------------------------------+ + |property |value | + +----------+----------------------------------+ + |ID |6b33c26b3a924b2789fa17fabd4a292d | + +----------+----------------------------------+ + |version |2b683bedebeb4874a9c2a82939c77f0d | + +----------+----------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json new file mode 100644 index 00000000..2509bea0 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-moco.json @@ -0,0 +1,30 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/entitlement-pools", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-47de9a0c-f2c9-4355-a8ed-0ce066cac513", + "Content-Type" : "application/json" + }, + "json" : { + "name" : "philip-pool", + "time" : { + "choice" : "", + "other" : "" + }, + "startDate" : "03/15/2019", + "expiryDate" : "12/31/2030", + "manufacturerReferenceNumber" : "philip-vendor" + } + }, + "response" : { + "status" : 200, + "json" : { + "value" : "8c70182a9c4641e79477708ef6ed6984" + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..6decda2f --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-dublin-sample.yaml @@ -0,0 +1,27 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +open_cli_sample_version: 1.0 +name: -x +version: onap-dublin +samples: + sample1: + name: -x + input: philip-pool -y 6b33c26b3a924b2789fa17fabd4a292d -e 2b683bedebeb4874a9c2a82939c77f0d -z philip-pool -k philip-vendor -g 12/31/2030 -l 03/15/2019 -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vlm-entitlement-pool-create-schema-dublin-moco.json + output: | + +----------+----------------------------------+ + |property |value | + +----------+----------------------------------+ + |ID |8c70182a9c4641e79477708ef6ed6984 | + +----------+----------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json new file mode 100644 index 00000000..d4aebb0c --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-moco.json @@ -0,0 +1,27 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/feature-groups", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-0033cd99-1c03-4f1b-acf1-e2262e0b7027", + "Content-Type" : "application/json" + }, + "json" : { + "name" : "philip-feature-grp", + "addedLicenseKeyGroupsIds" : [ "51466fa44cb346eda6881176440eee5d" ], + "addedEntitlementPoolsIds" : [ "8c70182a9c4641e79477708ef6ed6984" ], + "partNumber" : "itohan-part", + "description" : "philip-feature-grp" + } + }, + "response" : { + "status" : 200, + "json" : { + "value" : "457e9905f32544cca5351e86cc2e7958" + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..28e31f5b --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-dublin-sample.yaml @@ -0,0 +1,27 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +open_cli_sample_version: 1.0 +name: -x +version: onap-dublin +samples: + sample1: + name: -x + input: philip-feature-grp -y 6b33c26b3a924b2789fa17fabd4a292d -e 2b683bedebeb4874a9c2a82939c77f0d -z philip-feature-grp -g 51466fa44cb346eda6881176440eee5d -b 8c70182a9c4641e79477708ef6ed6984 -c itohan-part -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vlm-feature-group-create-schema-dublin-moco.json + output: | + +----------+----------------------------------+ + |property |value | + +----------+----------------------------------+ + |ID |457e9905f32544cca5351e86cc2e7958 | + +----------+----------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json new file mode 100644 index 00000000..f9654b9e --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-moco.json @@ -0,0 +1,25 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/license-key-groups", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-5b5c1feb-062f-42d2-876d-0d748f460015", + "Content-Type" : "application/json" + }, + "json" : { + "description" : "", + "name" : "philip-key-grp", + "type" : "Universal" + } + }, + "response" : { + "status" : 200, + "json" : { + "value" : "51466fa44cb346eda6881176440eee5d" + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..29c0cfda --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-dublin-sample.yaml @@ -0,0 +1,27 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +open_cli_sample_version: 1.0 +name: -c +version: onap-dublin +samples: + sample1: + name: -c + input: 6b33c26b3a924b2789fa17fabd4a292d -e 2b683bedebeb4874a9c2a82939c77f0d -x philip-key-grp -y Universal -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vlm-key-group-create-schema-dublin-moco.json + output: | + +----------+----------------------------------+ + |property |value | + +----------+----------------------------------+ + |ID |51466fa44cb346eda6881176440eee5d | + +----------+----------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-moco.json new file mode 100644 index 00000000..0572447f --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-moco.json @@ -0,0 +1,142 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/onboarding-api/v1.0/vendor-license-models", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "AAI", + "X-TransactionId" : "req-4ea876b0-e0d7-497c-b23f-d434c49acc4f", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "listCount" : 15, + "results" : [ { + "id" : "6b33c26b3a924b2789fa17fabd4a292d", + "type" : "vlm", + "name" : "philip-vendor", + "description" : "", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "126f7efb8d294aceac7fb0e2735ff2a4", + "type" : "vlm", + "name" : "itohan-vendor", + "description" : "", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "9ed3aebe891246dc80d5f184bcc029c5", + "type" : "vlm", + "name" : "3ec04b77-2696-4b6e-92da", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "67fd025b398e45c3b11e2e7c55e79c34", + "type" : "vlm", + "name" : "onap_hpa", + "description" : "onap hpa license", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "c883fc163b834996908f9547ba6fd6ce", + "type" : "vlm", + "name" : "6d5a6c71-3222-4cf4-a4f2", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "ffccf84ea0ab44558912697ed0e90ea3", + "type" : "vlm", + "name" : "6519e766-b68f-4861-b0b5", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "e8c711a8b0b948a0835ccc7f4e35d6a6", + "type" : "vlm", + "name" : "ad7af32c-e5f6-4c7b-8e20", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "e6f808c8ee9040d098d652084c5eda57", + "type" : "vlm", + "name" : "14bb164a-194d-43c7-8316", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "395c397dd9974bc29a0605f346f9d76b", + "type" : "vlm", + "name" : "793af38e-3448-46fc-afa5", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "9eee1fe60434468bbe63dc718bcdd2d2", + "type" : "vlm", + "name" : "354c419d-b63b-4ff9-bc03", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "4d01ca9dd43549a9964664b2270f6a99", + "type" : "vlm", + "name" : "5a58e574-e97f-4874-a7bd", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "09517ab1da3b4587a766ecdeb70462d5", + "type" : "vlm", + "name" : "1d97c202-997e-4f71-a740", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "5e5bc4627e414f8fa0cf0d2612c00eaa", + "type" : "vlm", + "name" : "6bd17f5a-e397-484c-af52", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "c2d912cafb83496ea135b5df26cad759", + "type" : "vlm", + "name" : "3a07540f-4f15-43fe-ac79", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + }, { + "id" : "af0cee7f0f25496eb6c3bbe867298127", + "type" : "vlm", + "name" : "4a719c24-3ce8-431d-aee7", + "description" : "vendor license model", + "owner" : "cs0008", + "status" : "ACTIVE", + "properties" : { } + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-sample.yaml new file mode 100644 index 00000000..f4cae302 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-list-schema-dublin-sample.yaml @@ -0,0 +1,55 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +open_cli_sample_version: 1.0 +name: -m +version: onap-dublin +samples: + sample1: + name: -m + input: http://10.43.107.110:8081 + moco: vlm-list-schema-dublin-moco.json + output: | + +--------------------------+----------------------------------+ + |vlm-name |vlm-id | + +--------------------------+----------------------------------+ + |philip-vendor |6b33c26b3a924b2789fa17fabd4a292d | + +--------------------------+----------------------------------+ + |itohan-vendor |126f7efb8d294aceac7fb0e2735ff2a4 | + +--------------------------+----------------------------------+ + |3ec04b77-2696-4b6e-92da |9ed3aebe891246dc80d5f184bcc029c5 | + +--------------------------+----------------------------------+ + |onap_hpa |67fd025b398e45c3b11e2e7c55e79c34 | + +--------------------------+----------------------------------+ + |6d5a6c71-3222-4cf4-a4f2 |c883fc163b834996908f9547ba6fd6ce | + +--------------------------+----------------------------------+ + |6519e766-b68f-4861-b0b5 |ffccf84ea0ab44558912697ed0e90ea3 | + +--------------------------+----------------------------------+ + |ad7af32c-e5f6-4c7b-8e20 |e8c711a8b0b948a0835ccc7f4e35d6a6 | + +--------------------------+----------------------------------+ + |14bb164a-194d-43c7-8316 |e6f808c8ee9040d098d652084c5eda57 | + +--------------------------+----------------------------------+ + |793af38e-3448-46fc-afa5 |395c397dd9974bc29a0605f346f9d76b | + +--------------------------+----------------------------------+ + |354c419d-b63b-4ff9-bc03 |9eee1fe60434468bbe63dc718bcdd2d2 | + +--------------------------+----------------------------------+ + |5a58e574-e97f-4874-a7bd |4d01ca9dd43549a9964664b2270f6a99 | + +--------------------------+----------------------------------+ + |1d97c202-997e-4f71-a740 |09517ab1da3b4587a766ecdeb70462d5 | + +--------------------------+----------------------------------+ + |6bd17f5a-e397-484c-af52 |5e5bc4627e414f8fa0cf0d2612c00eaa | + +--------------------------+----------------------------------+ + |3a07540f-4f15-43fe-ac79 |c2d912cafb83496ea135b5df26cad759 | + +--------------------------+----------------------------------+ + |4a719c24-3ce8-431d-aee7 |af0cee7f0f25496eb6c3bbe867298127 | + +--------------------------+----------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-moco.json new file mode 100644 index 00000000..f99b6227 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-moco.json @@ -0,0 +1,21 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/onboarding-api/v1.0/vendor-license-models/6b33c26b3a924b2789fa17fabd4a292d/versions/2b683bedebeb4874a9c2a82939c77f0d/actions", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-877570c7-18d7-478f-b6dd-09eabb2c0182", + "Content-Type" : "application/json" + }, + "json" : { + "action" : "Submit" + } + }, + "response" : { + "status" : 200, + "json" : { } + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-sample.yaml new file mode 100644 index 00000000..fc9414f8 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-dublin-sample.yaml @@ -0,0 +1,22 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +open_cli_sample_version: 1.0 +name: -x +version: onap-dublin +samples: + sample1: + name: -x + input: 6b33c26b3a924b2789fa17fabd4a292d -y 2b683bedebeb4874a9c2a82939c77f0d -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vlm-submit-schema-dublin-moco.json + output: \ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml new file mode 100644 index 00000000..bf53824c --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-dublin.yaml @@ -0,0 +1,46 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vlm-list +description: List the vendor license models in ONAP + +info: + product: onap-dublin + service: sdc + author: ONAP HPA Integration Team (itohan.ukponmwan@intel.com) + +results: + direction: landscape + attributes: + - name: vlm-name + description: name of the vendor license model + scope: short + type: string + - name: vlm-id + description: ID of the vendor license model + scope: short + type: string +http: + service: + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-license-models + method: GET + success_codes: + - 200 + result_map: + vlm-name: $b{results.[*].name} + vlm-id: $b{results.[*].id} -- cgit 1.2.3-korg