aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/msb/src
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2017-09-21 20:10:03 +0530
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2017-09-21 20:14:13 +0530
commit39e959138929fcadef461b2fb6a14990435c20e8 (patch)
tree427bf63158ad3e1fec18f5b5460ac285c738301d /plugins/msb/src
parent1efdcf7693a79de89125f589ded3a4b1dc756efe (diff)
Add documentation samples for msb commands
Add documentation yaml sample for msb commands. Change-Id: Ia3630bef82f0e89c7e914ad10d06504a88d66909 Issue-ID: CLI-35 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'plugins/msb/src')
-rw-r--r--plugins/msb/src/test/resources/onap-cli-sample/msb-create-service-sample-1.1.yaml20
-rw-r--r--plugins/msb/src/test/resources/onap-cli-sample/msb-delete-service-sample-1.1.yaml8
-rw-r--r--plugins/msb/src/test/resources/onap-cli-sample/msb-list-service-sample-1.1.yaml14
-rw-r--r--plugins/msb/src/test/resources/onap-cli-sample/msb-show-service-sample-1.1.yaml14
4 files changed, 56 insertions, 0 deletions
diff --git a/plugins/msb/src/test/resources/onap-cli-sample/msb-create-service-sample-1.1.yaml b/plugins/msb/src/test/resources/onap-cli-sample/msb-create-service-sample-1.1.yaml
new file mode 100644
index 00000000..115e1d9f
--- /dev/null
+++ b/plugins/msb/src/test/resources/onap-cli-sample/msb-create-service-sample-1.1.yaml
@@ -0,0 +1,20 @@
+onap_cli_sample_version: 1.0
+
+name: microservice-create
+version: onap-1.1
+samples:
+ sample1:
+ name: Create a service
+ input: --service-name test-service --service-version v1 --service-url /api/test/v1 --host-url http://192.168.17.23:80 23.14.15.156 80
+ output: |
+ +----------+------------------------------------+
+ |property |value |
+ +----------+------------------------------------+
+ |name |test-service |
+ +----------+------------------------------------+
+ |version |v1 |
+ +----------+------------------------------------+
+ |url |/C:/Program Files/Git/api/test/v1 |
+ +----------+------------------------------------+
+ |status |1 |
+ +----------+------------------------------------+ \ No newline at end of file
diff --git a/plugins/msb/src/test/resources/onap-cli-sample/msb-delete-service-sample-1.1.yaml b/plugins/msb/src/test/resources/onap-cli-sample/msb-delete-service-sample-1.1.yaml
new file mode 100644
index 00000000..2aaadb22
--- /dev/null
+++ b/plugins/msb/src/test/resources/onap-cli-sample/msb-delete-service-sample-1.1.yaml
@@ -0,0 +1,8 @@
+onap_cli_sample_version: 1.0
+
+name: microservice-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: Delete a service
+ input: --service-name test-service --service-version v1 --host-url http://192.168.17.23:80 --node-ip 23.14.15.156 --node-port 80 \ No newline at end of file
diff --git a/plugins/msb/src/test/resources/onap-cli-sample/msb-list-service-sample-1.1.yaml b/plugins/msb/src/test/resources/onap-cli-sample/msb-list-service-sample-1.1.yaml
new file mode 100644
index 00000000..178a9c85
--- /dev/null
+++ b/plugins/msb/src/test/resources/onap-cli-sample/msb-list-service-sample-1.1.yaml
@@ -0,0 +1,14 @@
+onap_cli_sample_version: 1.0
+
+name: microservice-list
+version: onap-1.1
+samples:
+ sample1:
+ name: List a service
+ input: --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
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
new file mode 100644
index 00000000..abf1f110
--- /dev/null
+++ b/plugins/msb/src/test/resources/onap-cli-sample/msb-show-service-sample-1.1.yaml
@@ -0,0 +1,14 @@
+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