From f97d6ed029478d59cb2a1ee8334a3903093a1115 Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Mon, 15 Apr 2019 15:24:34 +0530 Subject: Add dublin in OCS yaml names Issue-ID: CLI-154 Change-Id: Ic02b092ee7c14a99190f8360ebeed5c94797aba8 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-schema/csar-create-schema-dublin.yaml | 52 ++++++++++++++ .../open-cli-schema/csar-create-schema.yaml | 52 -------------- .../open-cli-schema/csar-delete-schema-dublin.yaml | 41 +++++++++++ .../open-cli-schema/csar-delete-schema.yaml | 41 ----------- .../open-cli-schema/csar-list-schema-dublin.yaml | 63 +++++++++++++++++ .../open-cli-schema/csar-list-schema.yaml | 63 ----------------- .../open-cli-schema/csar-show-schema-dublin.yaml | 66 ++++++++++++++++++ .../open-cli-schema/csar-show-schema.yaml | 66 ------------------ .../open-cli-schema/vnftest-list-dublin.yaml | 47 +++++++++++++ .../resources/open-cli-schema/vnftest-list.yaml | 47 ------------- .../open-cli-schema/vnftest-run-dublin.yaml | 79 ++++++++++++++++++++++ .../resources/open-cli-schema/vnftest-run.yaml | 79 ---------------------- 12 files changed, 348 insertions(+), 348 deletions(-) create mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-dublin.yaml delete mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml create mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-dublin.yaml delete mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml create mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-dublin.yaml delete mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml create mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-dublin.yaml delete mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml create mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-dublin.yaml delete mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml create mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-dublin.yaml delete mode 100644 products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-dublin.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-dublin.yaml new file mode 100644 index 00000000..9ed30345 --- /dev/null +++ b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-dublin.yaml @@ -0,0 +1,52 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: csar-create +description: Uploads the CSARs in marketplace + + +info: + product: onap-dublin + service: marketplace + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: csar-file + description: CSAR File path + type: binary + short_option: x + long_option: csar-file + is_optional: false + +results: + direction: landscape + attributes: + - name: csarId + description: CSAR id + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars + method: POST + body: ${csar-file} + multipart_entity_name: file + success_codes: + - 200 + result_map: + csarId: $b{$.csarId} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml deleted file mode 100644 index 9ed30345..00000000 --- a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# 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: csar-create -description: Uploads the CSARs in marketplace - - -info: - product: onap-dublin - service: marketplace - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: csar-file - description: CSAR File path - type: binary - short_option: x - long_option: csar-file - is_optional: false - -results: - direction: landscape - attributes: - - name: csarId - description: CSAR id - scope: short - type: string -http: - service: - auth: none - mode: direct - request: - uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars - method: POST - body: ${csar-file} - multipart_entity_name: file - success_codes: - - 200 - result_map: - csarId: $b{$.csarId} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-dublin.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-dublin.yaml new file mode 100644 index 00000000..20aa42d1 --- /dev/null +++ b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-dublin.yaml @@ -0,0 +1,41 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: csar-delete +description: Delete CSARs in marketplace + +info: + product: onap-dublin + service: marketplace + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: csar-id + description: Onap CSAR id + type: string + short_option: x + long_option: csar-id + is_optional: false + +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id} + method: DELETE + success_codes: + - 201 + - 200 \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml deleted file mode 100644 index 20aa42d1..00000000 --- a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# 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: csar-delete -description: Delete CSARs in marketplace - -info: - product: onap-dublin - service: marketplace - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: csar-id - description: Onap CSAR id - type: string - short_option: x - long_option: csar-id - is_optional: false - -http: - service: - auth: none - mode: direct - request: - uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id} - method: DELETE - success_codes: - - 201 - - 200 \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-dublin.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-dublin.yaml new file mode 100644 index 00000000..9848fba4 --- /dev/null +++ b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-dublin.yaml @@ -0,0 +1,63 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: csar-list +description: Lists the CSARs in marketplace + + +info: + product: onap-dublin + service: marketplace + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: csarId + description: CSAR Id + scope: short + type: string + - name: name + description: CSAR Name + scope: short + type: string + - name: size + description: CSAR size + scope: short + type: url + - name: downloadUri + description: CSAR download URL + scope: short + type: url + - name: provider + description: CSAR Provider + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars + method: GET + success_codes: + - 201 + - 200 + result_map: + csarId: $b{$.[*].csarId} + name: $b{$.[*].name} + size: $b{$.[*].size} + downloadUri: $b{$.[*].downloadUri} + provider: $b{$.[*].provider} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml deleted file mode 100644 index 9848fba4..00000000 --- a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# 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: csar-list -description: Lists the CSARs in marketplace - - -info: - product: onap-dublin - service: marketplace - author: ONAP CLI Team onap-discuss@lists.onap.org - -results: - direction: landscape - attributes: - - name: csarId - description: CSAR Id - scope: short - type: string - - name: name - description: CSAR Name - scope: short - type: string - - name: size - description: CSAR size - scope: short - type: url - - name: downloadUri - description: CSAR download URL - scope: short - type: url - - name: provider - description: CSAR Provider - scope: short - type: string -http: - service: - auth: none - mode: direct - request: - uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars - method: GET - success_codes: - - 201 - - 200 - result_map: - csarId: $b{$.[*].csarId} - name: $b{$.[*].name} - size: $b{$.[*].size} - downloadUri: $b{$.[*].downloadUri} - provider: $b{$.[*].provider} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-dublin.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-dublin.yaml new file mode 100644 index 00000000..099b4dd9 --- /dev/null +++ b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-dublin.yaml @@ -0,0 +1,66 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: csar-show +description: Show details of the CSARs in marketplace + + +info: + product: onap-dublin + service: marketplace + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: csar-id + description: Onap CSAR id + type: string + short_option: x + long_option: csar-id + is_optional: false + +results: + direction: portrait + attributes: + - name: name + description: CSAR Name + scope: short + type: string + - name: size + description: CSAR size + scope: short + type: url + - name: downloadUri + description: CSAR download URL + scope: short + type: url + - name: provider + description: CSAR Provider + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id} + method: GET + success_codes: + - 201 + - 200 + result_map: + name: $b{$.name} + size: $b{$.size} + downloadUri: $b{$.downloadUri} + provider: $b{$.provider} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml deleted file mode 100644 index 099b4dd9..00000000 --- a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# 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: csar-show -description: Show details of the CSARs in marketplace - - -info: - product: onap-dublin - service: marketplace - author: ONAP CLI Team onap-discuss@lists.onap.org - -parameters: - - name: csar-id - description: Onap CSAR id - type: string - short_option: x - long_option: csar-id - is_optional: false - -results: - direction: portrait - attributes: - - name: name - description: CSAR Name - scope: short - type: string - - name: size - description: CSAR size - scope: short - type: url - - name: downloadUri - description: CSAR download URL - scope: short - type: url - - name: provider - description: CSAR Provider - scope: short - type: string -http: - service: - auth: none - mode: direct - request: - uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id} - method: GET - success_codes: - - 201 - - 200 - result_map: - name: $b{$.name} - size: $b{$.size} - downloadUri: $b{$.downloadUri} - provider: $b{$.provider} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-dublin.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-dublin.yaml new file mode 100644 index 00000000..abfd4925 --- /dev/null +++ b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-dublin.yaml @@ -0,0 +1,47 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: vnftest-list +description: Lists the VNF test cases in VNF Test Platform (VTP) + +info: + product: onap-dublin + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: tescase + description: Testcase name + scope: short + type: string + - name: testsuite + description: Test suite name + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/vtp/scenarios/onap-vtp/testcases + method: GET + success_codes: + - 201 + - 200 + result_map: + tescase: $b{$.[*].testCaseName} + testsuite: $b{$.[*].testSuiteName} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml deleted file mode 100644 index abfd4925..00000000 --- a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# 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: vnftest-list -description: Lists the VNF test cases in VNF Test Platform (VTP) - -info: - product: onap-dublin - service: vtp - author: ONAP CLI Team onap-discuss@lists.onap.org - -results: - direction: landscape - attributes: - - name: tescase - description: Testcase name - scope: short - type: string - - name: testsuite - description: Test suite name - scope: short - type: string -http: - service: - auth: none - mode: direct - request: - uri: /onapapi/vnfsdk-marketplace/v1/vtp/scenarios/onap-vtp/testcases - method: GET - success_codes: - - 201 - - 200 - result_map: - tescase: $b{$.[*].testCaseName} - testsuite: $b{$.[*].testSuiteName} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-dublin.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-dublin.yaml new file mode 100644 index 00000000..103bc422 --- /dev/null +++ b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-dublin.yaml @@ -0,0 +1,79 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: vnftest-run +description: Runs the VNF test cases in VNF Test Platform (VTP) + +info: + product: onap-dublin + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org +parameters: + - name: name + description: VNFtest case name + type: string + short_option: x + long_option: name + is_optional: false + - name: param + description: VNFtest case name params, and can be repeated. + type: map + short_option: y + long_option: param + is_optional: true + +results: + direction: portrait + attributes: + - name: executionId + description: Testcase execution Id + scope: short + type: string + - name: status + description: Test status + scope: short + type: string + default_value: $s{env:BUILD_TAG} + - name: startTime + description: Testcase startTime + scope: short + type: string + - name: endTime + description: Testcase endTime + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/vtp/executions + method: POST + body: + multipart: + - name: executions + content: '[{ + "scenario": "onap-vtp", + "testSuiteName": "${testsuite-name}", + "testCaseName": "${testcase-name}", + "parameters": ${param}]' + success_codes: + - 201 + - 200 + result_map: + executionId: $b{$.[0].executionId} + status: $b{$.[0].status} + startTime: $b{$.[0].startTime} + endTime: $b{$.[0].endTime} \ No newline at end of file diff --git a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml b/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml deleted file mode 100644 index 103bc422..00000000 --- a/products/onap-dublin/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 2018 Huawei Technologies Co., Ltd. -# -# 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: vnftest-run -description: Runs the VNF test cases in VNF Test Platform (VTP) - -info: - product: onap-dublin - service: vtp - author: ONAP CLI Team onap-discuss@lists.onap.org -parameters: - - name: name - description: VNFtest case name - type: string - short_option: x - long_option: name - is_optional: false - - name: param - description: VNFtest case name params, and can be repeated. - type: map - short_option: y - long_option: param - is_optional: true - -results: - direction: portrait - attributes: - - name: executionId - description: Testcase execution Id - scope: short - type: string - - name: status - description: Test status - scope: short - type: string - default_value: $s{env:BUILD_TAG} - - name: startTime - description: Testcase startTime - scope: short - type: string - - name: endTime - description: Testcase endTime - scope: short - type: string -http: - service: - auth: none - mode: direct - request: - uri: /onapapi/vnfsdk-marketplace/v1/vtp/executions - method: POST - body: - multipart: - - name: executions - content: '[{ - "scenario": "onap-vtp", - "testSuiteName": "${testsuite-name}", - "testCaseName": "${testcase-name}", - "parameters": ${param}]' - success_codes: - - 201 - - 200 - result_map: - executionId: $b{$.[0].executionId} - status: $b{$.[0].status} - startTime: $b{$.[0].startTime} - endTime: $b{$.[0].endTime} \ No newline at end of file -- cgit 1.2.3-korg From eb8e385895eddc369323ebe3495538cb50bc79ba Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Tue, 16 Apr 2019 17:04:30 +0530 Subject: Add oclip service entry Issue-ID: CLI-154 Change-Id: I29728c5d002b9bd37b3b82c78cfc45d81644a564 Signed-off-by: Kanagaraj Manickam k00365106 --- .../zip/src/main/release/conf/oclip-service.sh | 113 +++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 deployment/zip/src/main/release/conf/oclip-service.sh diff --git a/deployment/zip/src/main/release/conf/oclip-service.sh b/deployment/zip/src/main/release/conf/oclip-service.sh new file mode 100644 index 00000000..98c40426 --- /dev/null +++ b/deployment/zip/src/main/release/conf/oclip-service.sh @@ -0,0 +1,113 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: OCLIP +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start daemon at boot time +# Description: Enable service provided by daemon. +### END INIT INFO +# +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# 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. +# + +dir="/opt" +cmd="/opt/oclip/bin/oclip-grpc-service.sh" +user="root" + +name=`basename $0` +pid_file="/var/run/$name.pid" +stdout_log="/var/log/$name.log" +stderr_log="/var/log/$name.err" + +get_pid() { + cat "$pid_file" +} + +is_running() { + [ -f "$pid_file" ] && ps `get_pid` > /dev/null 2>&1 +} + +case "$1" in + start) + if is_running; then + echo "Already started" + else + echo "Starting $name" + cd "$dir" + if [ -z "$user" ]; then + sudo $cmd >> "$stdout_log" 2>> "$stderr_log" & + else + sudo -u "$user" $cmd >> "$stdout_log" 2>> "$stderr_log" & + fi + echo $! > "$pid_file" + if ! is_running; then + echo "Unable to start, see $stdout_log and $stderr_log" + exit 1 + fi + fi + ;; + stop) + if is_running; then + echo -n "Stopping $name.." + kill `get_pid` + for i in {1..10} + do + if ! is_running; then + break + fi + + echo -n "." + sleep 1 + done + echo + + if is_running; then + echo "Not stopped; may still be shutting down or shutdown may have failed" + exit 1 + else + echo "Stopped" + if [ -f "$pid_file" ]; then + rm "$pid_file" + fi + fi + else + echo "Not running" + fi + ;; + restart) + $0 stop + if is_running; then + echo "Unable to stop, will not attempt to start" + exit 1 + fi + $0 start + ;; + status) + if is_running; then + echo "Running" + else + echo "Stopped" + exit 1 + fi + ;; + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 -- cgit 1.2.3-korg