aboutsummaryrefslogtreecommitdiffstats
path: root/docs/user_guide_verification_program.rst
blob: 05bcb28bcfc9b5e09f07754a839552ad5aef6c6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2018 Huawei Technologies Co., Ltd.

.. user_guide_verification_program:


CLI verification program
==============================================

Verification program helps the author to setup the mocking environment for the HTTP profile (and
in future it could be extended to other profile) for authoring the testing the CLI OCS YAMLs.

It provides the model based test environment where author needs to setup following aspects:

# Write the moco JSON which captures the HTTP request and response in moco style

# Write the sample YAML which captures the one or more functional test case(s)

# Place them under open-cli-sample directory under OPEN_CLI_HOME

Once this setup is done, author can verify the OCS YAML by running the following CLI ::

 oclip <command name> --verify | -V

It will list out the success/failure of each test case written in sample YAML.