diff options
Diffstat (limited to 'products')
15 files changed, 871 insertions, 17 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-moco.json new file mode 100644 index 00000000..bbd21740 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-moco.json @@ -0,0 +1,41 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/onboarding-api/v1.0/vendor-software-products", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-a5095ef3-5afc-4305-945b-26fbdaf0b6b0", + "Content-Type" : "application/json" + }, + "json" : { + "category" : "resourceNewCategory.generic", + "vendorId" : "74b43ab85f3d49948c1513a27adfaba7", + "subCategory" : "resourceNewCategory.generic.abstract", + "description" : "cli-test-vsp", + "licensingVersion" : "eb65c2fbbaee4a8dbd0b60e697e98fb7", + "licensingData" : { + "featureGroups" : [ "292d56e87f274ef385b0dfd41f41a066" ], + "licenseAgreement" : "92bcbe53b6724ae78c7c13e4269cb90f" + }, + "icon" : "icon", + "onboardingMethod" : "NetworkPackage", + "vendorName" : "Itohan-vendor", + "name" : "cli-vsp-v2" + } + }, + "response" : { + "status" : 200, + "json" : { + "itemId" : "a9928e0e8b124f4d87a9e0654c4b1d60", + "version" : { + "id" : "b087302e50374ab28e5a8d4b32aa3abe", + "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/vsp/vsp-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-sample.yaml new file mode 100644 index 00000000..0f8fee52 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-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: -j +version: onap-dublin +samples: + sample1: + name: -j + input: 292d56e87f274ef385b0dfd41f41a066 -o NetworkPackage -e Itohan-vendor -x cli-vsp-v2 -y cli-test-vsp -i 92bcbe53b6724ae78c7c13e4269cb90f -c eb65c2fbbaee4a8dbd0b60e697e98fb7 -g 74b43ab85f3d49948c1513a27adfaba7 -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vsp-create-schema-dublin-moco.json + output: | + +----------+----------------------------------+ + |property |value | + +----------+----------------------------------+ + |ID |a9928e0e8b124f4d87a9e0654c4b1d60 | + +----------+----------------------------------+ + |version |b087302e50374ab28e5a8d4b32aa3abe | + +----------+----------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-moco.json new file mode 100644 index 00000000..cd155a92 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-moco.json @@ -0,0 +1,274 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/onboarding-api/v1.0/vendor-software-products", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-d7e12432-7aec-4002-a95f-f95ec1a6427f", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "listCount" : 28, + "results" : [ { + "name" : "vsp-cli-v1", + "description" : "aaaa", + "vendorName" : "itohan-vendor", + "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4", + "onboardingMethod" : "NetworkPackage", + "id" : "0afed170432e471e9dafb662f78a8277", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "test2", + "description" : "aasdfasda", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "4065fc6500f74926b0f9e052a071da6f", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "test-vsp", + "description" : "cccc", + "vendorName" : "itohan-vendor", + "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4", + "onboardingMethod" : "NetworkPackage", + "id" : "2d126593c4c84741a441aa0ae5bbb6be", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "cli-test-3", + "description" : "cli test 3", + "vendorName" : "itohan-vendor", + "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4", + "onboardingMethod" : "NetworkPackage", + "id" : "b45a4ac88b274c179744e4a2d2d93767", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "cli-vsp-abs", + "description" : "test cli", + "vendorName" : "itohan-vendor", + "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4", + "onboardingMethod" : "NetworkPackage", + "id" : "54c4c2f26b974f169b362cc20ca434ff", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "test-cli", + "description" : "description", + "vendorName" : "itohan-vendor", + "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4", + "onboardingMethod" : "NetworkPackage", + "id" : "ab365698f8f948cbb358ca4fd72923c3", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "new-cli-vsp", + "description" : "cli-test-vsp", + "vendorName" : "Itohan-vendor", + "vendorId" : "74b43ab85f3d49948c1513a27adfaba7", + "onboardingMethod" : "NetworkPackage", + "id" : "8d5974a45c014ed6ad1b8bcace4a3609", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "test3", + "description" : "test dummy package", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "984cdff3ec9e48539d36371c4d9367db", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "test4", + "description" : "test4", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "0063e08cd03a4012b381b376e537ebb1", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "test6", + "description" : "test6", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "18460421f5ee4eda893dd661c41ff5bd", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "test5", + "description" : "test5", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "5db09293ff384c738ad5754350630973", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "vlbhpa_sriov", + "description" : "vlbhpa sriov", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "9b3ae4aa686c4aa2be524ce6f6c95842", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "vlbhpa_1", + "description" : "vlbhpa test1", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "62e221a2489d480fa291aeaa2bea9c52", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "vfwhpa_sriov", + "description" : "vfwhpa sriov", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "d10cac28981c4396b7b3636b0a69786f", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "06357cff-760a-4c48-aa35", + "description" : "vendor software product", + "vendorName" : "3ec04b77-2696-4b6e-92da", + "vendorId" : "9ed3aebe891246dc80d5f184bcc029c5", + "onboardingMethod" : "NetworkPackage", + "id" : "978a677077cd4632b6b85820a30a0e91", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "vfwhpa_test1_v2", + "description" : "vfwhpa test1", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "ab143b9d132c45e980c6237cb79b6a2c", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "vfwhpa_test1", + "description" : "vfwhpa test1", + "vendorName" : "onap_hpa", + "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34", + "onboardingMethod" : "NetworkPackage", + "id" : "38a21a8bb73e4107b3b727f08153bce7", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "c60aed4e-dce4-44fd-a89c", + "description" : "vendor software product", + "vendorName" : "6d5a6c71-3222-4cf4-a4f2", + "vendorId" : "c883fc163b834996908f9547ba6fd6ce", + "onboardingMethod" : "NetworkPackage", + "id" : "729a07cd8a3c4142836555a315305a22", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "ef858a2c-2397-481f-b82a", + "description" : "vendor software product", + "vendorName" : "6519e766-b68f-4861-b0b5", + "vendorId" : "ffccf84ea0ab44558912697ed0e90ea3", + "onboardingMethod" : "NetworkPackage", + "id" : "37959c2841e244fc805a14fc57220a0c", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "ad55252e-b8bf-44c7-84f7", + "description" : "vendor software product", + "vendorName" : "ad7af32c-e5f6-4c7b-8e20", + "vendorId" : "e8c711a8b0b948a0835ccc7f4e35d6a6", + "onboardingMethod" : "NetworkPackage", + "id" : "3f9aa74f65574a299cbd6f81448846ac", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "38a68c2a-aa6a-4088-bb2b", + "description" : "vendor software product", + "vendorName" : "14bb164a-194d-43c7-8316", + "vendorId" : "e6f808c8ee9040d098d652084c5eda57", + "onboardingMethod" : "NetworkPackage", + "id" : "47cb2a42991548a09b377a3aa9703397", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "46f8da66-75c2-4786-87dc", + "description" : "vendor software product", + "vendorName" : "793af38e-3448-46fc-afa5", + "vendorId" : "395c397dd9974bc29a0605f346f9d76b", + "onboardingMethod" : "NetworkPackage", + "id" : "21116b5c438b4949b24fda554d2ff555", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "53cfef18-7743-4b35-bd89", + "description" : "vendor software product", + "vendorName" : "354c419d-b63b-4ff9-bc03", + "vendorId" : "9eee1fe60434468bbe63dc718bcdd2d2", + "onboardingMethod" : "NetworkPackage", + "id" : "b3b170ffa1e54f6880b61817aebdbdca", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "c46e4d8b-6451-4428-a0cf", + "description" : "vendor software product", + "vendorName" : "5a58e574-e97f-4874-a7bd", + "vendorId" : "4d01ca9dd43549a9964664b2270f6a99", + "onboardingMethod" : "NetworkPackage", + "id" : "6ee2299702ec46cd80c83eab3cb182f9", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "68a79a72-03be-4180-b981", + "description" : "vendor software product", + "vendorName" : "1d97c202-997e-4f71-a740", + "vendorId" : "09517ab1da3b4587a766ecdeb70462d5", + "onboardingMethod" : "NetworkPackage", + "id" : "0ef9544b18154e27862f40457c36bfc7", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "0da72c3b-1abf-4bcb-bf12", + "description" : "vendor software product", + "vendorName" : "6bd17f5a-e397-484c-af52", + "vendorId" : "5e5bc4627e414f8fa0cf0d2612c00eaa", + "onboardingMethod" : "NetworkPackage", + "id" : "911ab62d97034a31b5e6219ff32c93a2", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "4e9883c1-d06c-4554-bdf3", + "description" : "vendor software product", + "vendorName" : "3a07540f-4f15-43fe-ac79", + "vendorId" : "c2d912cafb83496ea135b5df26cad759", + "onboardingMethod" : "NetworkPackage", + "id" : "a0440d85e9c24f9486e37e42aef206d1", + "owner" : "cs0008", + "status" : "ACTIVE" + }, { + "name" : "8dc447f7-9a65-4b88-8193", + "description" : "vendor software product", + "vendorName" : "4a719c24-3ce8-431d-aee7", + "vendorId" : "af0cee7f0f25496eb6c3bbe867298127", + "onboardingMethod" : "NetworkPackage", + "id" : "bc9dfa3d21c1455ea42759d3f045ad28", + "owner" : "cs0008", + "status" : "ACTIVE" + } ] + } + } +} ]
\ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-sample.yaml new file mode 100644 index 00000000..1942ad14 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-sample.yaml @@ -0,0 +1,81 @@ +# 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: -u +version: onap-dublin +samples: + sample1: + name: -u + input: cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vsp-list-schema-dublin-moco.json + output: | + +----------------------------------+--------------------------+----------+--------+ + |ID |name |version |status | + +----------------------------------+--------------------------+----------+--------+ + |0afed170432e471e9dafb662f78a8277 |vsp-cli-v1 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |4065fc6500f74926b0f9e052a071da6f |test2 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |2d126593c4c84741a441aa0ae5bbb6be |test-vsp | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |b45a4ac88b274c179744e4a2d2d93767 |cli-test-3 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |54c4c2f26b974f169b362cc20ca434ff |cli-vsp-abs | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |ab365698f8f948cbb358ca4fd72923c3 |test-cli | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |8d5974a45c014ed6ad1b8bcace4a3609 |new-cli-vsp | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |984cdff3ec9e48539d36371c4d9367db |test3 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |0063e08cd03a4012b381b376e537ebb1 |test4 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |18460421f5ee4eda893dd661c41ff5bd |test6 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |5db09293ff384c738ad5754350630973 |test5 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |9b3ae4aa686c4aa2be524ce6f6c95842 |vlbhpa_sriov | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |62e221a2489d480fa291aeaa2bea9c52 |vlbhpa_1 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |d10cac28981c4396b7b3636b0a69786f |vfwhpa_sriov | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |978a677077cd4632b6b85820a30a0e91 |06357cff-760a-4c48-aa35 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |ab143b9d132c45e980c6237cb79b6a2c |vfwhpa_test1_v2 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |38a21a8bb73e4107b3b727f08153bce7 |vfwhpa_test1 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |729a07cd8a3c4142836555a315305a22 |c60aed4e-dce4-44fd-a89c | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |37959c2841e244fc805a14fc57220a0c |ef858a2c-2397-481f-b82a | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |3f9aa74f65574a299cbd6f81448846ac |ad55252e-b8bf-44c7-84f7 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |47cb2a42991548a09b377a3aa9703397 |38a68c2a-aa6a-4088-bb2b | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |21116b5c438b4949b24fda554d2ff555 |46f8da66-75c2-4786-87dc | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |b3b170ffa1e54f6880b61817aebdbdca |53cfef18-7743-4b35-bd89 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |6ee2299702ec46cd80c83eab3cb182f9 |c46e4d8b-6451-4428-a0cf | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |0ef9544b18154e27862f40457c36bfc7 |68a79a72-03be-4180-b981 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |911ab62d97034a31b5e6219ff32c93a2 |0da72c3b-1abf-4bcb-bf12 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |a0440d85e9c24f9486e37e42aef206d1 |4e9883c1-d06c-4554-bdf3 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ + |bc9dfa3d21c1455ea42759d3f045ad28 |8dc447f7-9a65-4b88-8193 | |ACTIVE | + +----------------------------------+--------------------------+----------+--------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-moco.json new file mode 100644 index 00000000..762bdbc2 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-moco.json @@ -0,0 +1,31 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/onboarding-api/v1.0/vendor-software-products/0afed170432e471e9dafb662f78a8277/versions/a6a78a511fd74524889f8095e12b9aac/actions", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-48bfec31-2210-41cd-b42c-156a947d5b74", + "Content-Type" : "application/json" + }, + "json" : { + "action" : "Create_Package" + } + }, + "response" : { + "status" : 200, + "json" : { + "description" : "aaaa", + "vspName" : "vsp-cli-v1", + "version" : "1.0", + "packageId" : "0afed170432e471e9dafb662f78a8277", + "category" : "resourceNewCategory.generic", + "subCategory" : "resourceNewCategory.generic.abstract", + "vendorName" : "itohan-vendor", + "vendorRelease" : "1.0", + "packageType" : "CSAR" + } + } +} ]
\ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-sample.yaml new file mode 100644 index 00000000..477ef99c --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-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: 0afed170432e471e9dafb662f78a8277 -y a6a78a511fd74524889f8095e12b9aac -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vsp-package-schema-dublin-moco.json + output:
\ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-moco.json new file mode 100644 index 00000000..b9888f3c --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-moco.json @@ -0,0 +1,21 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/onboarding-api/v1.0/vendor-software-products/0afed170432e471e9dafb662f78a8277/versions/a6a78a511fd74524889f8095e12b9aac/actions", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-625cc732-d215-4a80-9887-7fbe217954c2", + "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/vsp/vsp-submit-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-sample.yaml new file mode 100644 index 00000000..62bb71bb --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-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: 0afed170432e471e9dafb662f78a8277 -y a6a78a511fd74524889f8095e12b9aac -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vsp-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-sample/vsp/vsp-validate-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-moco.json new file mode 100644 index 00000000..fabb98b3 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-moco.json @@ -0,0 +1,49 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/onboarding-api/v1.0/vendor-software-products/0afed170432e471e9dafb662f78a8277/versions/a6a78a511fd74524889f8095e12b9aac/orchestration-template-candidate/process", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-db25d79f-0a66-4a9b-b8af-0d3e2f5c6376", + "Content-Type" : "application/json" + }, + "json" : { } + }, + "response" : { + "status" : 200, + "json" : { + "fileNames" : [ "base_vfw.yaml", "base_vfw.env" ], + "errors" : { + "base_vfw.yaml" : [ { + "level" : "WARNING", + "message" : "WARNING: [NNP1]: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vfw_private_2_port]. As a result, VF/VFC Profile may miss this information" + }, { + "level" : "WARNING", + "message" : "WARNING: [NNP1]: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vpg_private_1_port]. As a result, VF/VFC Profile may miss this information" + }, { + "level" : "WARNING", + "message" : "WARNING: [NNP1]: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vsn_private_1_port]. As a result, VF/VFC Profile may miss this information" + }, { + "level" : "WARNING", + "message" : "WARNING: [NNS11]: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vfw_0]" + }, { + "level" : "WARNING", + "message" : "WARNING: [NNS12]: A resource is connected twice to the same network role, Network Role [vpg_0], Resource ID [onap_private]" + }, { + "level" : "WARNING", + "message" : "WARNING: [NNS11]: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vpg_0]" + }, { + "level" : "WARNING", + "message" : "WARNING: [NNS12]: A resource is connected twice to the same network role, Network Role [vsn_0], Resource ID [onap_private]" + }, { + "level" : "WARNING", + "message" : "WARNING: [NNS11]: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vsn_0]" + } ] + }, + "status" : "Success" + } + } +} ]
\ No newline at end of file diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-sample.yaml new file mode 100644 index 00000000..b0509321 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-sample.yaml @@ -0,0 +1,61 @@ +# 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: 0afed170432e471e9dafb662f78a8277 -y a6a78a511fd74524889f8095e12b9aac -u cs0008 -p demo123456! -m http://10.43.107.110:8081 + moco: vsp-validate-schema-dublin-moco.json + output: | + +----------+----------------------------------------------------+ + |property |value | + +----------+----------------------------------------------------+ + |status |Success | + +----------+----------------------------------------------------+ + |errors |{base_vfw.yaml=[{"level":"WARNING","message":"WARN | + | |ING: [NNP1]: Port 'Fixed_IPS' Parameter Name not | + | |aligned with Guidelines, Parameter Name | + | |[onap_private_subnet_id], Resource ID | + | |[vfw_private_2_port]. As a result, VF\/VFC | + | |Profile may miss this information"},{"level":"WARN | + | |ING","message":"WARNING: [NNP1]: Port 'Fixed_IPS' | + | |Parameter Name not aligned with Guidelines, | + | |Parameter Name [onap_private_subnet_id], Resource | + | |ID [vpg_private_1_port]. As a result, VF\/VFC | + | |Profile may miss this information"},{"level":"WARN | + | |ING","message":"WARNING: [NNP1]: Port 'Fixed_IPS' | + | |Parameter Name not aligned with Guidelines, | + | |Parameter Name [onap_private_subnet_id], Resource | + | |ID [vsn_private_1_port]. As a result, VF\/VFC | + | |Profile may miss this information"},{"level":"WARN | + | |ING","message":"WARNING: [NNS11]: Nova Server | + | |naming convention in image, flavor and name | + | |properties is not consistent, Resource ID | + | |[vfw_0]"},{"level":"WARNING","message":"WARNING: | + | |[NNS12]: A resource is connected twice to the | + | |same network role, Network Role [vpg_0], Resource | + | |ID [onap_private]"},{"level":"WARNING","message":" | + | |WARNING: [NNS11]: Nova Server naming convention | + | |in image, flavor and name properties is not | + | |consistent, Resource ID | + | |[vpg_0]"},{"level":"WARNING","message":"WARNING: | + | |[NNS12]: A resource is connected twice to the | + | |same network role, Network Role [vsn_0], Resource | + | |ID [onap_private]"},{"level":"WARNING","message":" | + | |WARNING: [NNS11]: Nova Server naming convention | + | |in image, flavor and name properties is not | + | |consistent, Resource ID [vsn_0]"}]} | + +----------+----------------------------------------------------+ diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml new file mode 100644 index 00000000..42c92f37 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml @@ -0,0 +1,54 @@ +# 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: vsp-add-artifact +description: Upload the CSAR/ZIP file to VSP + +info: + product: onap-dublin + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false + - name: vsp-version + description: Onap VSP version + type: string + short_option: y + long_option: vsp-version + is_optional: false + - name: vsp-file + description: CSAR File path + type: binary + short_option: z + long_option: vsp-file + is_optional: false +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate + method: POST + body: '${vsp-file}' + multipart_entity_name: 'upload' + headers: + Content-type: 'multipart/form-data' + Accept: '*/*' + USER_ID: "${host-username}" + success_codes: + - 200 diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml index 84c67820..19c92393 100644 --- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml @@ -34,20 +34,6 @@ parameters: short_option: y long_option: vsp-description is_optional: true - - name: vsp-category - description: Category of the VSP - type: string - long_option: vsp-category - short_option: z - is_optional: true - default_value: resourceNewCategory.generic - - name: vsp-subcategory - description: Sub Category of VSP - type: string - long_option: vsp-subcategory - short_option: b - is_optional: true - default_value: resourceNewCategory.generic.abstract - name: vlm-version description: License version type: string @@ -79,6 +65,13 @@ parameters: long_option: vlm-feature-group-id short_option: j is_optional: false + - name: onboarding-method + description: Method to be used for onboarding (Manual or NetworkPackage) + type: string + long_option: onboarding-method + short_option: o + is_optional: false + results: direction: portrait attributes: @@ -99,9 +92,20 @@ http: request: uri: /onboarding-api/v1.0/vendor-software-products method: POST - body: '{"category": "${vsp-category}", "vendorId": "${vlm-id}", "subCategory": "${vsp-subcategory}", "description": "${vsp-description}", "licensingVersion": "${vlm-version}", "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"}, "icon": "icon", "onboardingMethod": "Manual", "vendorName": "${vlm-vendor}", "name": "${vsp-name}"}' + body: '{ + "category": "resourceNewCategory.generic", + "vendorId": "${vlm-id}", + "subCategory": "resourceNewCategory.generic.abstract", + "description": "${vsp-description}", + "licensingVersion": "${vlm-version}", + "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"}, + "icon": "icon", + "onboardingMethod": "${onboarding-method}", + "vendorName": "${vlm-vendor}", + "name": "${vsp-name}" + }' success_codes: - 200 result_map: - ID: $b{$.vspId} - version: $b{$.version.id}
\ No newline at end of file + ID: $b{$.itemId} + version: $b{$.version.id} diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml new file mode 100644 index 00000000..6cd48e87 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml @@ -0,0 +1,51 @@ +# 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: vsp-package +description: Package Vendor Software Product + +info: + product: onap-dublin + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false + - name: vsp-version + description: VSP version + type: string + short_option: y + long_option: vsp-version + is_optional: false +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions + method: PUT + body: '{"action": "Create_Package"}' + success_codes: + - 201 + - 200 + sample_response: + body: '' diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml new file mode 100644 index 00000000..6d46f6fa --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml @@ -0,0 +1,49 @@ +# 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: vsp-submit +description: Submit Vendor Software Product + +info: + product: onap-dublin + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false + - name: vsp-version + description: VSP version + type: string + short_option: y + long_option: vsp-version + is_optional: false +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions + method: PUT + body: '{"action": "Submit"}' + success_codes: + - 201 + - 200 diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml new file mode 100644 index 00000000..41f1fea1 --- /dev/null +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml @@ -0,0 +1,65 @@ +# 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: vsp-validate +description: Validate the uploaded Vendor Software Product + +info: + product: onap-dublin + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false + - name: vsp-version + description: VSP version + type: string + short_option: y + long_option: vsp-version + is_optional: false + +results: + direction: portrait + attributes: + - name: status + description: Validation status + scope: short + type: string + - name: errors + description: Validation messages + scope: short + type: json + +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate/process + method: PUT + body: '{}' + success_codes: + - 201 + - 200 + result_map: + status: $b{$.status} + errors: $b{$.errors} |