From c6950dab8f95fd64ee9a4d373054ab015a325605 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 18:25:37 +0530 Subject: Casablanca: Enable features plugin Issue-ID: CLI-122 Change-Id: Ib7a743bf5c36af5e35f95ff40e30f8b1412ce884 Signed-off-by: Kanagaraj Manickam k00365106 --- products/onap-casablanca/features/pom.xml | 68 +++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 products/onap-casablanca/features/pom.xml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/pom.xml b/products/onap-casablanca/features/pom.xml new file mode 100644 index 00000000..3c55e370 --- /dev/null +++ b/products/onap-casablanca/features/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-casablanca + 2.0.3 + + + cli-products-onap-casablanca-features + cli/products/onap-casablanca/features + pom + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-artifact + package + + copy + + + + + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.packaging} + + + + ../../../../products/target/lib + + + + + + + + -- cgit 1.2.3-korg From efb373af9a5e95f333eb85670810369bc3ad712e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 18:59:01 +0530 Subject: Casablanca: MSB plugin Issue-ID: CLI-122 Change-Id: I410967d1ecf6a197d06e434ab420d8873512ee74 Signed-off-by: Kanagaraj Manickam k00365106 --- products/onap-casablanca/features/msb/pom.xml | 41 +++++++++++++++++++++++++++ products/onap-casablanca/features/pom.xml | 1 + 2 files changed, 42 insertions(+) create mode 100644 products/onap-casablanca/features/msb/pom.xml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/msb/pom.xml b/products/onap-casablanca/features/msb/pom.xml new file mode 100644 index 00000000..85aac554 --- /dev/null +++ b/products/onap-casablanca/features/msb/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-casablanca-features + 2.0.3 + + + cli-products-onap-casablanca-features-msb + cli/products/onap-casablanca/features/msb + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-casablanca/features/pom.xml b/products/onap-casablanca/features/pom.xml index 3c55e370..7d2be871 100644 --- a/products/onap-casablanca/features/pom.xml +++ b/products/onap-casablanca/features/pom.xml @@ -32,6 +32,7 @@ pom + msb -- cgit 1.2.3-korg From 40cf0d56ab6ccc624b8a05e49d0216bbe318dbd4 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 19:01:03 +0530 Subject: Casablanca: MSB service show Issue-ID: CLI-122 Change-Id: I7595753de8bd034a90f26c9d49b01f2a04ad015d Signed-off-by: Kanagaraj Manickam k00365106 --- .../microservice-show-schema-moco.json | 41 ++++++++++ .../microservice-show-schema-sample.yaml | 40 ++++++++++ .../open-cli-schema/microservice-show-schema.yaml | 91 ++++++++++++++++++++++ 3 files changed, 172 insertions(+) create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json new file mode 100644 index 00000000..5064b7b6 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json @@ -0,0 +1,41 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/api/microservices/v1/services/test/version/v1", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "serviceName" : "test", + "version" : "v1", + "url" : "/C:/Git/test", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "ip_hash", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/C:/Git/test", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.0.1", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_test_10.0.0.1_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml new file mode 100644 index 00000000..22089571 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml @@ -0,0 +1,40 @@ +# 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_sample_version: 1.0 +name: microservice-show +version: onap-casablanca +samples: + sample1: + name: microservice-show + input: --service-name test --service-version v1 --long + moco: microservice-show-schema-moco.json + output: | + +------------+----------------+ + |property |value | + +------------+----------------+ + |name |test | + +------------+----------------+ + |version |v1 | + +------------+----------------+ + |url |/test | + +------------+----------------+ + |status |1 | + +------------+----------------+ + |nodes |10.0.0.1:8080 | + +------------+----------------+ + |enable-ssl |false | + +------------+----------------+ + |path |/test | + +------------+----------------+ diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml new file mode 100644 index 00000000..4bb1bf98 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml @@ -0,0 +1,91 @@ +# 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: microservice-show +description: Details the registered microservice in Onap + +info: + product: onap-casablanca + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: service-name + description: Onap service name + type: string + short_option: x + long_option: service-name + is_optional: false + - name: service-version + description: Onap service version + type: string + short_option: y + long_option: service-version + is_optional: false +results: + direction: portrait + attributes: + - name: name + description: Onap service name + scope: short + type: string + - name: version + description: Onap service version + scope: short + type: string + - name: url + description: Onap service base url + scope: short + type: url + - name: status + description: Onap service status + scope: short + type: digit + - name: nodes + description: Onap service running nodes + scope: long + type: json + - name: enable-ssl + description: Onap service is enabled with https or not + scope: long + type: string + - name: path + description: Onap service path + scope: long + type: string +http: + service: + auth: none + mode: direct + request: + uri: /api/microservices/v1/services/${service-name}/version/${service-version} + method: GET + success_codes: + - 201 + - 200 + result_map: + name: $b{$.serviceName} + version: $b{$.version} + url: $b{$.url} + status: $b{$.status} + enable-ssl: $b{$.enable_ssl} + path: $b{$.path} + nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} + sample_response: + body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' + + + + -- cgit 1.2.3-korg From b61ec6a8400fe9006061c20110bcd8e714f3f601 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 19:01:55 +0530 Subject: Casablanca: MSB service list Issue-ID: CLI-122 Change-Id: If46d504450ee11c4c34356d27ed0f6e1603f9b5e Signed-off-by: Kanagaraj Manickam k00365106 --- .../microservice-list-schema-moco.json | 1335 ++++++++++++++++++++ .../microservice-list-schema-sample.yaml | 140 ++ .../open-cli-schema/microservice-list-schema.yaml | 79 ++ 3 files changed, 1554 insertions(+) create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json new file mode 100644 index 00000000..b836183d --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json @@ -0,0 +1,1335 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/api/microservices/v1/services", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : [ { + "serviceName" : "aai-actions", + "version" : "v11", + "url" : "/aai/v11/actions", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-actions_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-actions-deprecated", + "version" : "v11", + "url" : "/aai/v11/actions", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/aai/v11/actions", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-actions-deprecated_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-business", + "version" : "v11", + "url" : "/aai/v11/business", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-business_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-business-deprecated", + "version" : "v11", + "url" : "/aai/v11/business", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/aai/v11/business", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-business-deprecated_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-cloudInfrastructure", + "version" : "v11", + "url" : "/aai/v11/cloud-infrastructure", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-cloudInfrastructure_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-cloudInfrastructure-deprecated", + "version" : "v11", + "url" : "/aai/v11/cloud-infrastructure", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/aai/v11/cloud-infrastructure", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-cloudInfrastructure-deprecated_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-esr-gui", + "version" : "v1", + "url" : "/esr-gui", + "protocol" : "UI", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/iui/aai-esr-gui", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "9519", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-esr-gui_10.0.14.1_9519", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-esr-server", + "version" : "v1", + "url" : "/api/aai-esr-server/v1", + "protocol" : "REST", + "visualRange" : "0|1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.5", + "port" : "9518", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-esr-server_172.17.0.5_9518", + "status" : "passing" + }, { + "ip" : "10.0.14.1", + "port" : "9518", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-esr-server_10.0.14.1_9518", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-externalSystem", + "version" : "v11", + "url" : "/aai/v11/external-system", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-externalSystem_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-externalSystem-deprecated", + "version" : "v11", + "url" : "/aai/v11/external-system", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/aai/v11/external-system", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-externalSystem-deprecated_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-network", + "version" : "v11", + "url" : "/aai/v11/network", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-network_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-network-deprecated", + "version" : "v11", + "url" : "/aai/v11/network", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/aai/v11/network", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-network-deprecated_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-search", + "version" : "v11", + "url" : "/aai/v11/search", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-search_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-search-deprecated", + "version" : "v11", + "url" : "/aai/v11/search", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/aai/v11/search", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-search-deprecated_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-service-design-and-creation", + "version" : "v11", + "url" : "/aai/v11/service-design-and-creation", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-service-design-and-creation_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "aai-service-design-and-creation-deprecated", + "version" : "v11", + "url" : "/aai/v11/service-design-and-creation", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/aai/v11/service-design-and-creation", + "enable_ssl" : true, + "nodes" : [ { + "ip" : "10.0.1.1", + "port" : "8443", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_aai-service-design-and-creation-deprecated_10.0.1.1_8443", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "activiti", + "version" : "v1", + "url" : "/api/activiti/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8804", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_activiti_10.0.14.1_8804", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "activiti-rest", + "version" : "v1", + "url" : "/activiti-rest", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/activiti-rest", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8804", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_activiti-rest_10.0.14.1_8804", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "catalog", + "version" : "v1", + "url" : "/api/catalog/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.15", + "port" : "8806", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_catalog_172.17.0.15_8806", + "status" : "passing" + }, { + "ip" : "10.0.14.1", + "port" : "8806", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_catalog_10.0.14.1_8806", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "emsdriver", + "version" : "v1", + "url" : "/api/emsdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8206", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_emsdriver_10.0.14.1_8206", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "gvnfmdriver", + "version" : "v1", + "url" : "/api/gvnfmdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.17", + "port" : "8484", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_gvnfmdriver_172.17.0.17_8484", + "status" : "passing" + }, { + "ip" : "10.0.14.1", + "port" : "8484", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_gvnfmdriver_10.0.14.1_8484", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "huaweivnfmdriver", + "version" : "v1", + "url" : "/api/huaweivnfmdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8482", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_huaweivnfmdriver_10.0.14.1_8482", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "jujuvnfmdriver", + "version" : "v1", + "url" : "/api/jujuvnfmdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8483", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_jujuvnfmdriver_10.0.14.1_8483", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "multicloud", + "version" : "v0", + "url" : "/api/multicloud/v0", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "9001", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_multicloud_10.0.14.1_9001", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "multicloud-ocata", + "version" : "v0", + "url" : "/api/multicloud-ocata/v0", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "9006", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_multicloud-ocata_10.0.14.1_9006", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "multicloud-titanium_cloud", + "version" : "v0", + "url" : "/api/multicloud-titanium_cloud/v0", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "9005", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_multicloud-titanium_cloud_10.0.14.1_9005", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "multicloud-vio", + "version" : "v0", + "url" : "/api/multicloud-vio/v0", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "9004", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_multicloud-vio_10.0.14.1_9004", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "nokia-vnfm-driver", + "version" : "v1", + "url" : "/api/nokiavnfmdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.27", + "port" : "8486", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_nokia-vnfm-driver_172.17.0.27_8486", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "nokiavnfmdriver", + "version" : "v1", + "url" : "/api/nokiavnfmdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8485", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_nokiavnfmdriver_10.0.14.1_8485", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "nslcm", + "version" : "v1", + "url" : "/api/nslcm/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.20", + "port" : "8403", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_nslcm_172.17.0.20_8403", + "status" : "passing" + }, { + "ip" : "10.0.14.1", + "port" : "8403", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_nslcm_10.0.14.1_8403", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "policy-pdp", + "version" : "v1", + "url" : "/pdp", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.6.1", + "port" : "8081", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_policy-pdp_10.0.6.1_8081", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "policy-pdp-deprecated", + "version" : "v1", + "url" : "/pdp", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/pdp", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.6.1", + "port" : "8081", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_policy-pdp-deprecated_10.0.6.1_8081", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "portal", + "version" : "v2", + "url" : "/", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.9.1", + "port" : "8989", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_portal_10.0.9.1_8989", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "resmgr", + "version" : "v1", + "url" : "/api/resmgr/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8480", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_resmgr_10.0.14.1_8480", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "sdc", + "version" : "v1", + "url" : "/sdc/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.3.1", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_sdc_10.0.3.1_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "sdc-deprecated", + "version" : "v1", + "url" : "/sdc/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/sdc/v1", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.3.1", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_sdc-deprecated_10.0.3.1_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "sdnc", + "version" : "v1", + "url" : "/restconf", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/restconf", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.7.1", + "port" : "8282", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_sdnc_10.0.7.1_8282", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "so", + "version" : "v1", + "url" : "/ecomp/mso/infra", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.5.1", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_so_10.0.5.1_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "so-deprecated", + "version" : "v1", + "url" : "/ecomp/mso/infra", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/ecomp/mso/infra", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.5.1", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_so-deprecated_10.0.5.1_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "usecase-ui", + "version" : "v1", + "url" : "/usecase-ui", + "protocol" : "UI", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.11", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_usecase-ui_172.17.0.11_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "usecaseui", + "version" : "v1", + "url" : "/api/usecaseui/server/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8901", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_usecaseui_10.0.14.1_8901", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "usecaseui-gui", + "version" : "v1", + "url" : "/iui/usecaseui", + "protocol" : "UI", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/iui/usecaseui", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8900", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_usecaseui-gui_10.0.14.1_8900", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "vnflcm", + "version" : "v1", + "url" : "/api/vnflcm/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8801", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_vnflcm_10.0.14.1_8801", + "status" : "passing" + }, { + "ip" : "172.17.0.22", + "port" : "8801", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_vnflcm_172.17.0.22_8801", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "vnfmgr", + "version" : "v1", + "url" : "/api/vnfmgr/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.23", + "port" : "8803", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_vnfmgr_172.17.0.23_8803", + "status" : "passing" + }, { + "ip" : "10.0.14.1", + "port" : "8803", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_vnfmgr_10.0.14.1_8803", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "vnfres", + "version" : "v1", + "url" : "/api/vnfres/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.24", + "port" : "8802", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_vnfres_172.17.0.24_8802", + "status" : "passing" + }, { + "ip" : "10.0.14.1", + "port" : "8802", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_vnfres_10.0.14.1_8802", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "workflow", + "version" : "v1", + "url" : "/api/workflow/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8805", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_workflow_10.0.14.1_8805", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "ztesdncdriver", + "version" : "v1", + "url" : "/api/ztesdncdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "172.17.0.25", + "port" : "8411", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_ztesdncdriver_172.17.0.25_8411", + "status" : "passing" + }, { + "ip" : "10.0.14.1", + "port" : "8411", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_ztesdncdriver_10.0.14.1_8411", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + }, { + "serviceName" : "ztevmanagerdriver", + "version" : "v1", + "url" : "/api/ztevmanagerdriver/v1", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.14.1", + "port" : "8410", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_ztevmanagerdriver_10.0.14.1_8410", + "status" : "passing" + }, { + "ip" : "172.17.0.26", + "port" : "8410", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_ztevmanagerdriver_172.17.0.26_8410", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + } ] + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml new file mode 100644 index 00000000..8c63387c --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml @@ -0,0 +1,140 @@ +# 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_sample_version: 1.0 +name: microservice-list +version: onap-casablanca +samples: + sample1: + name: microservice-list + input: --long + moco: microservice-list-schema-moco.json + output: | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |name |version |url |status |nodes |enable-ssl |path | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-actions |v11 |/aai/v11/actions |1 |10.0.1.1:8443 |true | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-actions-deprecated |v11 |/aai/v11/actions |1 |10.0.1.1:8443 |true |/aai/v11/actions | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-business |v11 |/aai/v11/business |1 |10.0.1.1:8443 |true | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-business-deprecated |v11 |/aai/v11/business |1 |10.0.1.1:8443 |true |/aai/v11/business | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-cloudInfrastructure |v11 |/aai/v11/cloud-infrastructure |1 |10.0.1.1:8443 |true | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-cloudInfrastructure-deprecated |v11 |/aai/v11/cloud-infrastructure |1 |10.0.1.1:8443 |true |/aai/v11/cloud-infrastructure | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-esr-gui |v1 |/esr-gui |1 |10.0.14.1:9519 |false |/iui/aai-esr-gui | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-esr-server |v1 |/api/aai-esr-server/v1 |1 |172.17.0.5:9518 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-externalSystem |v11 |/aai/v11/external-system |1 |10.0.14.1:9518 |true | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-externalSystem-deprecated |v11 |/aai/v11/external-system |1 |10.0.1.1:8443 |true |/aai/v11/external-system | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-network |v11 |/aai/v11/network |1 |10.0.1.1:8443 |true | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-network-deprecated |v11 |/aai/v11/network |1 |10.0.1.1:8443 |true |/aai/v11/network | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-search |v11 |/aai/v11/search |1 |10.0.1.1:8443 |true | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-search-deprecated |v11 |/aai/v11/search |1 |10.0.1.1:8443 |true |/aai/v11/search | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-service-design-and-creation |v11 |/aai/v11/service-design-and-creation |1 |10.0.1.1:8443 |true | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |aai-service-design-and-creation-deprecated |v11 |/aai/v11/service-design-and-creation |1 |10.0.1.1:8443 |true |/aai/v11/service-design-and-creation | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |activiti |v1 |/api/activiti/v1 |1 |10.0.1.1:8443 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |activiti-rest |v1 |/activiti-rest |1 |10.0.14.1:8804 |false |/activiti-rest | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |catalog |v1 |/api/catalog/v1 |1 |10.0.14.1:8804 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |emsdriver |v1 |/api/emsdriver/v1 |1 |172.17.0.15:8806 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |gvnfmdriver |v1 |/api/gvnfmdriver/v1 |1 |10.0.14.1:8806 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |huaweivnfmdriver |v1 |/api/huaweivnfmdriver/v1 |1 |10.0.14.1:8206 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |jujuvnfmdriver |v1 |/api/jujuvnfmdriver/v1 |1 |172.17.0.17:8484 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |multicloud |v0 |/api/multicloud/v0 |1 |10.0.14.1:8484 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |multicloud-ocata |v0 |/api/multicloud-ocata/v0 |1 |10.0.14.1:8482 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |multicloud-titanium_cloud |v0 |/api/multicloud-titanium_cloud/v0 |1 |10.0.14.1:8483 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |multicloud-vio |v0 |/api/multicloud-vio/v0 |1 |10.0.14.1:9001 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |nokia-vnfm-driver |v1 |/api/nokiavnfmdriver/v1 |1 |10.0.14.1:9006 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |nokiavnfmdriver |v1 |/api/nokiavnfmdriver/v1 |1 |10.0.14.1:9005 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |nslcm |v1 |/api/nslcm/v1 |1 |10.0.14.1:9004 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |policy-pdp |v1 |/pdp |1 |172.17.0.27:8486 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |policy-pdp-deprecated |v1 |/pdp |1 |10.0.14.1:8485 |false |/pdp | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |portal |v2 |/ |1 |172.17.0.20:8403 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |resmgr |v1 |/api/resmgr/v1 |1 |10.0.14.1:8403 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |sdc |v1 |/sdc/v1 |1 |10.0.6.1:8081 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |sdc-deprecated |v1 |/sdc/v1 |1 |10.0.6.1:8081 |false |/sdc/v1 | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |sdnc |v1 |/restconf |1 |10.0.9.1:8989 |false |/restconf | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |so |v1 |/ecomp/mso/infra |1 |10.0.14.1:8480 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |so-deprecated |v1 |/ecomp/mso/infra |1 |10.0.3.1:8080 |false |/ecomp/mso/infra | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |usecase-ui |v1 |/usecase-ui |1 |10.0.3.1:8080 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |usecaseui |v1 |/api/usecaseui/server/v1 |1 |10.0.7.1:8282 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |usecaseui-gui |v1 |/iui/usecaseui |1 |10.0.5.1:8080 |false |/iui/usecaseui | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |vnflcm |v1 |/api/vnflcm/v1 |1 |10.0.5.1:8080 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |vnfmgr |v1 |/api/vnfmgr/v1 |1 |172.17.0.11:8080 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |vnfres |v1 |/api/vnfres/v1 |1 |10.0.14.1:8901 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |workflow |v1 |/api/workflow/v1 |1 |10.0.14.1:8900 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |ztesdncdriver |v1 |/api/ztesdncdriver/v1 |1 |10.0.14.1:8801 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + |ztevmanagerdriver |v1 |/api/ztevmanagerdriver/v1 |1 |172.17.0.22:8801 |false | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |172.17.0.23:8803 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |10.0.14.1:8803 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |172.17.0.24:8802 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |10.0.14.1:8802 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |10.0.14.1:8805 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |172.17.0.25:8411 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |10.0.14.1:8411 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |10.0.14.1:8410 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ + | | | | |172.17.0.26:8410 | | | + +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+ diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml new file mode 100644 index 00000000..56e5512b --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.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: microservice-list +description: Lists the registetred micro services in Onap + + +info: + product: onap-casablanca + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: name + description: Onap service name + scope: short + type: string + - name: version + description: Onap service version + scope: short + type: string + - name: url + description: Onap service base url + scope: short + type: url + - name: status + description: Onap service status + scope: short + type: digit + - name: nodes + description: Onap service running nodes + scope: long + type: json + - name: enable-ssl + description: Onap service is enabled with https or not + scope: long + type: string + - name: path + description: Onap service path + scope: long + type: string +http: + service: + auth: none + mode: direct + request: + uri: /api/microservices/v1/services + method: GET + success_codes: + - 201 + - 200 + result_map: + name: $b{$.[*].serviceName} + version: $b{$.[*].version} + url: $b{$.[*].url} + status: $b{$.[*].status} + enable-ssl: $b{$.[*].enable_ssl} + path: $b{$.[*].path} + nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port} + sample_response: + body: '[{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}]' + + + + -- cgit 1.2.3-korg From 5f428243d6a97f733a6c527484ca64f2a219ea6a Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 19:02:27 +0530 Subject: Casablanca: MSB service create Issue-ID: CLI-122 Change-Id: Ie3eba0ddb0c8b6b4c83acdecb565707c0415b6ae Signed-off-by: Kanagaraj Manickam k00365106 --- .../microservice-create-schema-moco.json | 55 ++++++++++ .../microservice-create-schema-sample.yaml | 34 ++++++ .../microservice-create-schema.yaml | 121 +++++++++++++++++++++ 3 files changed, 210 insertions(+) create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json new file mode 100644 index 00000000..d2b703d0 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json @@ -0,0 +1,55 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/api/microservices/v1/services", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : { + "serviceName" : "test", + "version" : "v1", + "path" : "/test", + "url" : "/test", + "protocol" : "REST", + "enable_ssl" : "", + "visualRange" : "1", + "lb_policy" : "ip_hash", + "nodes" : [ { + "ip" : "10.0.0.1", + "port" : "8080", + "ttl" : 0 + } ] + } + }, + "response" : { + "status" : 201, + "json" : { + "serviceName" : "test", + "version" : "v1", + "url" : "/test", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "ip_hash", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/test", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.0.1", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_test_10.0.0.1_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml new file mode 100644 index 00000000..4c302df8 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml @@ -0,0 +1,34 @@ +# 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_sample_version: 1.0 +name: microservice-create +version: onap-casablanca +samples: + sample1: + name: microservice-create + input: --service-name test --service-version v1 --service-url /test --path /test 10.0.0.1 8080 + moco: microservice-create-schema-moco.json + output: | + +----------+--------------+ + |property |value | + +----------+--------------+ + |name |test | + +----------+--------------+ + |version |v1 | + +----------+--------------+ + |url |/test | + +----------+--------------+ + |status |1 | + +----------+--------------+ diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml new file mode 100644 index 00000000..9b897287 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml @@ -0,0 +1,121 @@ +# 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: microservice-create +description: Register microservice into Onap + +info: + product: onap-casablanca + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: service-name + description: Onap service name + type: string + short_option: x + long_option: service-name + is_optional: false + - name: service-version + description: Onap service version + type: string + short_option: y + long_option: service-version + is_optional: false + - name: service-url + description: Onap service base url + type: url + short_option: r + long_option: service-url + is_optional: false + - name: enable-ssl + description: Onap service is enabled with https or not + type: string + short_option: b + long_option: enable-ssl + is_optional: true + default: false + - name: path + description: Onap service path + type: string + short_option: c + long_option: path + is_optional: true + - name: node-ip + description: Onap service running node IP + type: string + - name: node-port + description: Onap service running node port + type: string + - name: create-or-update + description: Onap service create or update + type: bool + default_value: true +results: + direction: portrait + attributes: + - name: name + description: Onap service name + scope: short + type: string + - name: version + description: Onap service version + scope: short + type: string + - name: url + description: Onap service base url + scope: short + type: url + - name: status + description: Onap service status + scope: short + type: digit + - name: nodes + description: Onap service running nodes + scope: long + type: string + - name: enable-ssl + description: Onap service is enabled with https or not + scope: long + type: string + - name: path + description: Onap service path + scope: long + type: string +http: + service: + auth: none + mode: direct + request: + uri: /api/microservices/v1/services + method: POST + body: '{"serviceName":"${service-name}","version":"${service-version}","path":"${path}","url":"${service-url}","protocol":"REST", "enable_ssl":"${enable-ssl}", "visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}' + headers: + queries: + createOrUpdate: ${create-or-update} + success_codes: + - 201 + - 200 + result_map: + name: $b{$.serviceName} + version: $b{$.version} + url: $b{$.url} + status: $b{$.status} + enable-ssl: $b{$.enable_ssl} + path: $b{$.path} + nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} + + sample_response: + body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' -- cgit 1.2.3-korg From 3b46e2bb6645f4f679562374d8b8fef99bab4240 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 19:03:21 +0530 Subject: Casablanca: MSB service delete Issue-ID: CLI-122 Change-Id: Id22fdc358f63985fd12d2369ef5ebdd6aeaaa02e Signed-off-by: Kanagaraj Manickam k00365106 --- .../microservice-delete-schema-moco.json | 15 ++++++ .../microservice-delete-schema-sample.yaml | 24 +++++++++ .../microservice-delete-schema.yaml | 63 ++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json new file mode 100644 index 00000000..0c3d7e82 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json @@ -0,0 +1,15 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/api/microservices/v1/services/test/version/v1/nodes/10.0.0.1/8080", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml new file mode 100644 index 00000000..4ed44fa2 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml @@ -0,0 +1,24 @@ +# 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_sample_version: 1.0 + +name: microservice-delete +version: onap-casablanca +samples: + sample1: + name: microservice-delete + input: --service-name test --service-version v1 --host-url http://192.168.17.23:80 --node-ip 23.14.15.156 --node-port 80 + moco: microservice-delete-schema-moco.json + output: diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml new file mode 100644 index 00000000..5f93450e --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.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: microservice-delete +description: Deletes the micro service from Onap + +info: + product: onap-casablanca + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: service-name + description: Onap service name + type: string + short_option: x + long_option: service-name + is_optional: false + - name: service-version + description: Onap service version + type: string + short_option: y + long_option: service-version + is_optional: false + - name: node-ip + description: Onap service running node IP + type: string + short_option: i + long_option: node-ip + is_optional: false + - name: node-port + description: Onap service running node port + type: string + short_option: r + long_option: node-port + is_optional: false +http: + service: + auth: none + mode: direct + request: + uri: /api/microservices/v1/services/${service-name}/version/${service-version}/nodes/${node-ip}/${node-port} + method: DELETE + success_codes: + - 201 + - 200 + - 204 + - 500 + + + -- cgit 1.2.3-korg From 3a62a31feeb5e4e250e4bfc828d2a2336690d1cd Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 19:19:11 +0530 Subject: Fix to remove invalid entries in msb OCS Issue-ID: CLI-122 Change-Id: I03cc319b7fb3ad8e01a2e6a15028989c83a3eb60 Signed-off-by: Kanagaraj Manickam k00365106 --- .../main/resources/open-cli-schema/microservice-create-schema.yaml | 3 --- .../main/resources/open-cli-schema/microservice-list-schema.yaml | 6 ------ .../main/resources/open-cli-schema/microservice-show-schema.yaml | 6 ------ 3 files changed, 15 deletions(-) (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml index 9b897287..7e0cc8e6 100644 --- a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml @@ -116,6 +116,3 @@ http: enable-ssl: $b{$.enable_ssl} path: $b{$.path} nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} - - sample_response: - body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml index 56e5512b..bd63ff58 100644 --- a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml @@ -71,9 +71,3 @@ http: enable-ssl: $b{$.[*].enable_ssl} path: $b{$.[*].path} nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port} - sample_response: - body: '[{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}]' - - - - diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml index 4bb1bf98..58b7ded6 100644 --- a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml @@ -83,9 +83,3 @@ http: enable-ssl: $b{$.enable_ssl} path: $b{$.path} nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} - sample_response: - body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' - - - - -- cgit 1.2.3-korg From 9c8e836fe19301b3000e1d11ff3d50e7409cfe28 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 31 Aug 2018 12:07:50 +0530 Subject: Fix MSB moco samples Issue-ID: CLI-122 Change-Id: I3ef83e688d05d36300ab1febdc8bc44bb1f60533 Signed-off-by: Kanagaraj Manickam k00365106 --- .../microservice-create-schema-sample.yaml | 24 +++++++++++----------- .../microservice-delete-schema-moco.json | 2 +- .../microservice-delete-schema-sample.yaml | 2 +- .../microservice-show-schema-moco.json | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml index 4c302df8..a3e4b4ac 100644 --- a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml @@ -18,17 +18,17 @@ version: onap-casablanca samples: sample1: name: microservice-create - input: --service-name test --service-version v1 --service-url /test --path /test 10.0.0.1 8080 + input: --service-name test --service-version v1 --service-url /test --path /test true 10.0.0.1 8080 moco: microservice-create-schema-moco.json output: | - +----------+--------------+ - |property |value | - +----------+--------------+ - |name |test | - +----------+--------------+ - |version |v1 | - +----------+--------------+ - |url |/test | - +----------+--------------+ - |status |1 | - +----------+--------------+ + +----------+--------+ + |property |value | + +----------+--------+ + |name |test | + +----------+--------+ + |version |v1 | + +----------+--------+ + |url |/test | + +----------+--------+ + |status |1 | + +----------+--------+ diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json index 0c3d7e82..c2d3022c 100644 --- a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json @@ -1,7 +1,7 @@ [ { "request" : { "method" : "delete", - "uri" : "/api/microservices/v1/services/test/version/v1/nodes/10.0.0.1/8080", + "uri" : "/api/microservices/v1/services/test/version/v1/nodes/23.14.15.156/80", "headers" : { "Accept" : "application/json", "Content-Type" : "application/json" diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml index 4ed44fa2..c2ae5143 100644 --- a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml @@ -19,6 +19,6 @@ version: onap-casablanca samples: sample1: name: microservice-delete - input: --service-name test --service-version v1 --host-url http://192.168.17.23:80 --node-ip 23.14.15.156 --node-port 80 + input: --service-name test --service-version v1 --node-ip 23.14.15.156 --node-port 80 moco: microservice-delete-schema-moco.json output: diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json index 5064b7b6..b46de6ec 100644 --- a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json @@ -13,7 +13,7 @@ "json" : { "serviceName" : "test", "version" : "v1", - "url" : "/C:/Git/test", + "url" : "/test", "protocol" : "REST", "visualRange" : "1", "lb_policy" : "ip_hash", @@ -21,7 +21,7 @@ "namespace" : "", "network_plane_type" : "", "host" : "", - "path" : "/C:/Git/test", + "path" : "/test", "enable_ssl" : false, "nodes" : [ { "ip" : "10.0.0.1", -- cgit 1.2.3-korg From 060f27451bac66ff909d1b5785752dd516a7cf66 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 10 Sep 2018 17:52:02 +0530 Subject: VTP: Add VNFSDK support Issue-ID: VNFSDK-304 Change-Id: I3bb2e47606dc14c588ae47fd63eb7c575078b49a Signed-off-by: Kanagaraj Manickam k00365106 --- products/onap-casablanca/features/pom.xml | 3 +- products/onap-casablanca/features/vnfsdk/pom.xml | 41 ++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 products/onap-casablanca/features/vnfsdk/pom.xml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/pom.xml b/products/onap-casablanca/features/pom.xml index 7d2be871..82b03b4d 100644 --- a/products/onap-casablanca/features/pom.xml +++ b/products/onap-casablanca/features/pom.xml @@ -32,7 +32,8 @@ pom - msb + msb + vnfsdk diff --git a/products/onap-casablanca/features/vnfsdk/pom.xml b/products/onap-casablanca/features/vnfsdk/pom.xml new file mode 100644 index 00000000..6c3ca724 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-casablanca-features + 2.0.3 + + + cli-products-onap-casablanca-features-vnfsdk + cli/products/onap-casablanca/features/vnfsdk + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + -- cgit 1.2.3-korg From 12ccc7ac1d06e0ba4ce698f68c4c60038ea03232 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:07:32 +0530 Subject: VTP: Add csar upload cli Issue-ID: VNFSDK-304 Change-Id: I81d6c07857b908f9610db4cce693ccb54c498aa5 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-schema/csar-create-schema.yaml | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml new file mode 100644 index 00000000..ca758519 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml @@ -0,0 +1,54 @@ +# 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-casablanca + service: vtp + 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 + headers: + Content-Type: multipart/form-data + success_codes: + - 200 + result_map: + csarId: $b{$.csarId} \ No newline at end of file -- cgit 1.2.3-korg From 35947381abb8e6abf8d237ae5d54c4e4feb53838 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:09:46 +0530 Subject: VTP: csar show details cli Issue-ID: VNFSDK-304 Change-Id: I56a76fe2aba8c0db3ce85ba3448e08dfc7137554 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/csar-show-schema-moco.json | 31 ++++++++++ .../open-cli-sample/csar-show-schema-sample.yaml | 22 ++++++++ .../open-cli-schema/csar-show-schema.yaml | 66 ++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json new file mode 100644 index 00000000..00d02ce0 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json @@ -0,0 +1,31 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "csarId" : "a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "name" : "VoLTE", + "downloadUri" : "http://127.0.0.1:8080/files/catalog-http/CSAR/ChinaMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE/v1.0/VoLTE.csar", + "size" : "52.4 KB", + "version" : "v1.0", + "provider" : "ChinaMobile", + "type" : "CSAR", + "format" : "yaml", + "deletionPending" : false, + "createTime" : "2018-09-10 15:11:29", + "modifyTime" : "2018-09-10 15:11:29", + "shortDesc" : "descr", + "downloadCount" : 0, + "details" : "details", + "remarks" : "remarks" + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml new file mode 100644 index 00000000..f12488e1 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml @@ -0,0 +1,22 @@ +open_cli_sample_version: 1.0 +name: csar-show +version: onap-casablanca +samples: + sample1: + name: csar-show + input: -m http://localhost:7070/vnf-sdk-marketplace -x a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36 + moco: csar-show-schema-moco.json + output: | + +--------------+----------------------------------------------------+ + |property |value | + +--------------+----------------------------------------------------+ + |name |VoLTE | + +--------------+----------------------------------------------------+ + |size |52.4 KB | + +--------------+----------------------------------------------------+ + |downloadUri |http://127.0.0.1:8080/files/catalog-http/CSAR/Chin | + | |aMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE | + | |/v1.0/VoLTE.csar | + +--------------+----------------------------------------------------+ + |provider |ChinaMobile | + +--------------+----------------------------------------------------+ diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml new file mode 100644 index 00000000..104ddb6c --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.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-casablanca + service: vtp + 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 -- cgit 1.2.3-korg From dcda7b966bc4edd7e7dbc7a67d65c40a77c6a09e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:10:15 +0530 Subject: VTP: csar list cli Issue-ID: VNFSDK-304 Change-Id: I41896003facc0e2de3aafc5abe311ea8aec0db9e Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/csar-list-schema-moco.json | 31 +++++++++++ .../open-cli-sample/csar-list-schema-sample.yaml | 16 ++++++ .../open-cli-schema/csar-list-schema.yaml | 63 ++++++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json new file mode 100644 index 00000000..e0a8e30f --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json @@ -0,0 +1,31 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : [ { + "csarId" : "a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "name" : "VoLTE", + "downloadUri" : "http://127.0.0.1:8080/files/catalog-http/CSAR/ChinaMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE/v1.0/VoLTE.csar", + "size" : "52.4 KB", + "version" : "v1.0", + "provider" : "ChinaMobile", + "type" : "CSAR", + "format" : "yaml", + "deletionPending" : false, + "createTime" : "2018-09-10 15:11:29", + "modifyTime" : "2018-09-10 15:11:29", + "shortDesc" : "descr", + "downloadCount" : 0, + "details" : "details", + "remarks" : "remarks" + } ] + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml new file mode 100644 index 00000000..c3a3e208 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml @@ -0,0 +1,16 @@ +open_cli_sample_version: 1.0 +name: csar-list +version: onap-casablanca +samples: + sample1: + name: csar-list + input: -m http://localhost:7070/vnf-sdk-marketplace + moco: csar-list-schema-moco.json + output: | + +--------------------------------------+--------+----------+----------------------------------------------------+--------------+ + |csarId |name |size |downloadUri |provider | + +--------------------------------------+--------+----------+----------------------------------------------------+--------------+ + |a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36 |VoLTE |52.4 KB |http://127.0.0.1:8080/files/catalog-http/CSAR/Chin |ChinaMobile | + | | | |aMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE | | + | | | |/v1.0/VoLTE.csar | | + +--------------------------------------+--------+----------+----------------------------------------------------+--------------+ diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml new file mode 100644 index 00000000..74fd7554 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.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-casablanca + service: vtp + 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 -- cgit 1.2.3-korg From dfdea78c4bccad33bed8e56fe1faa23e87c08dd5 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:11:05 +0530 Subject: VTP: csar delete cli Issue-ID: VNFSDK-304 Change-Id: I90dbd9945ff5a0d7cdfa9b34ce7c7cfa09b4c454 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/csar-delete-schema-moco.json | 15 ++++++++ .../open-cli-sample/csar-delete-schema-sample.yaml | 9 +++++ .../open-cli-schema/csar-delete-schema.yaml | 41 ++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json new file mode 100644 index 00000000..889ceeaa --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json @@ -0,0 +1,15 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml new file mode 100644 index 00000000..f0e325bd --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: csar-delete +version: onap-casablanca +samples: + sample1: + name: csar-delete + input: -m http://localhost:7070/vnf-sdk-marketplace -x a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36 + moco: csar-delete-schema-moco.json + output: \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml new file mode 100644 index 00000000..2915b52d --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.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-casablanca + service: vtp + 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 -- cgit 1.2.3-korg From 28719311ea4fb6b53c59e0f387ef76a652f7b00f Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:30:01 +0530 Subject: VTP: vnftest list cli Issue-ID: VNFSDK-304 Change-Id: Ia5eed214aef4a7a7e5649d0b5c5c17b80634ecca Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/vnftest-list-moco.json | 29 +++++++++++++ .../open-cli-sample/vnftest-list-sample.yaml | 16 ++++++++ .../resources/open-cli-schema/vnftest-list.yaml | 47 ++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json new file mode 100644 index 00000000..42a74b12 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json @@ -0,0 +1,29 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "results" : [ { + "schema" : "vnftest-list.yaml", + "ocs-version" : "1.0", + "sr.no" : "1", + "type" : "http", + "command" : "vnftest-list" + }, { + "schema" : "vtp-validate-csar.yaml", + "ocs-version" : "1.0", + "sr.no" : "2", + "type" : "basic", + "command" : "csar-validate" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml new file mode 100644 index 00000000..dba50c03 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml @@ -0,0 +1,16 @@ +open_cli_sample_version: 1.0 +name: vnftest-list +version: onap-vtp +samples: + sample1: + name: vnftest-list + input: -m http://localhost:7070/vnf-sdk-marketplace + moco: vnftest-list-moco.json + output: | + +----------------+------------------------+ + |tescase |yaml | + +----------------+------------------------+ + |vnftest-list |vnftest-list.yaml | + +----------------+------------------------+ + |csar-validate |vtp-validate-csar.yaml | + +----------------+------------------------+ diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml new file mode 100644 index 00000000..3911fbe5 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.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-vtp + 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: yaml + description: Test case yaml + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests + method: GET + success_codes: + - 201 + - 200 + result_map: + tescase: $b{$.results.[*].command} + yaml: $b{$.results.[*].schema} \ No newline at end of file -- cgit 1.2.3-korg From a8c20e82f3e30c3a3e06c6af6aa4e9a3ad3f1acb Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:30:49 +0530 Subject: VTP: vnftest run cli Issue-ID: VNFSDK-304 Change-Id: I10a859adc7d4b3563390a3d435b5481abcd404ac Signed-off-by: Kanagaraj Manickam k00365106 --- .../resources/open-cli-schema/vnftest-run.yaml | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml new file mode 100644 index 00000000..1cf4586a --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml @@ -0,0 +1,58 @@ +# 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-vtp + 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: results + description: Testcase results + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests/S{name}/run + method: GET + body: ${param} + success_codes: + - 201 + - 200 + result_map: + tescase: $b{$.results.[*].command} + yaml: $b{$.results.[*].schema} \ No newline at end of file -- cgit 1.2.3-korg From 63b8a6679843436cab00871c43646bd66034f208 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:32:38 +0530 Subject: Migrate VNSDK CLI to market place service Issue-ID: CLI-122 Change-Id: I9b7a3d37c717800aa40e7698285a72a19f40c617 Signed-off-by: Kanagaraj Manickam k00365106 --- .../vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml | 2 +- .../vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml | 2 +- .../vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml | 2 +- .../vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'products/onap-casablanca/features') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml index ca758519..7a4b1665 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml @@ -19,7 +19,7 @@ description: Uploads the CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org parameters: diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml index 2915b52d..a05b8d1c 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml @@ -18,7 +18,7 @@ description: Delete CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org parameters: diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml index 74fd7554..452eb35b 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml @@ -19,7 +19,7 @@ description: Lists the CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org results: diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml index 104ddb6c..c124f9bd 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml @@ -19,7 +19,7 @@ description: Show details of the CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org parameters: -- cgit 1.2.3-korg