summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/msb/src/test/resources/onap-cli-sample/microservice-show-schema-moco.json41
-rw-r--r--plugins/msb/src/test/resources/onap-cli-sample/microservice-show-schema-sample.yaml26
-rw-r--r--plugins/msb/src/test/resources/onap-cli-sample/msb-show-service-sample-1.1.yaml14
3 files changed, 67 insertions, 14 deletions
diff --git a/plugins/msb/src/test/resources/onap-cli-sample/microservice-show-schema-moco.json b/plugins/msb/src/test/resources/onap-cli-sample/microservice-show-schema-moco.json
new file mode 100644
index 00000000..7d0863f7
--- /dev/null
+++ b/plugins/msb/src/test/resources/onap-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/plugins/msb/src/test/resources/onap-cli-sample/microservice-show-schema-sample.yaml b/plugins/msb/src/test/resources/onap-cli-sample/microservice-show-schema-sample.yaml
new file mode 100644
index 00000000..b3f659a4
--- /dev/null
+++ b/plugins/msb/src/test/resources/onap-cli-sample/microservice-show-schema-sample.yaml
@@ -0,0 +1,26 @@
+onap_cli_sample_version: 1.0
+name: microservice-show
+version: onap-1.1
+samples:
+ sample1:
+ name: microservice-show
+ input: --service-name test --service-version v1 --long
+ moco: microservice-show-schema-moco.json
+ ouput:|
+ +------------+----------------+
+ |property |value |
+ +------------+----------------+
+ |name |test |
+ +------------+----------------+
+ |version |v1 |
+ +------------+----------------+
+ |url |/C:/Git/test |
+ +------------+----------------+
+ |status |1 |
+ +------------+----------------+
+ |nodes |10.0.0.1:8080 |
+ +------------+----------------+
+ |enable-ssl |false |
+ +------------+----------------+
+ |path |/C:/Git/test |
+ +------------+----------------+
diff --git a/plugins/msb/src/test/resources/onap-cli-sample/msb-show-service-sample-1.1.yaml b/plugins/msb/src/test/resources/onap-cli-sample/msb-show-service-sample-1.1.yaml
deleted file mode 100644
index abf1f110..00000000
--- a/plugins/msb/src/test/resources/onap-cli-sample/msb-show-service-sample-1.1.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: microservice-show
-version: onap-1.1
-samples:
- sample1:
- name: Show a service
- input: --service-name test-service --service-version v1 --host-url http://192.168.17.23:80
- output: |
- +--------------+----------+------------------------------------+--------+------------------+
- |name |version |url |status |nodes |
- +--------------+----------+------------------------------------+--------+------------------+
- |test-service |v1 |/C:/Program Files/Git/api/test/v1 |1 |23.14.15.156:80 |
- +--------------+----------+------------------------------------+--------+------------------+ \ No newline at end of file