Merge "[Yardstick-233]latency measurment by using pktgen-dpdk"
[yardstick.git] / docs / userguide / opnfv_yardstick_tc040.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International
2 .. License.
3 .. http://creativecommons.org/licenses/by/4.0
4 .. (c) OPNFV, Huawei Technologies Co.,Ltd and others.
5
6 *************************************
7 Yardstick Test Case Description TC040
8 *************************************
9
10 .. _Parser: https://wiki.opnfv.org/parser
11
12 +-----------------------------------------------------------------------------+
13 |Verify Parser Yang-to-Tosca                                                  |
14 |                                                                             |
15 +--------------+--------------------------------------------------------------+
16 |test case id  | OPNFV_YARDSTICK_TC040 Verify Parser Yang-to-Tosca            |
17 |              |                                                              |
18 +--------------+--------------------------------------------------------------+
19 |metric        | 1. tosca file which is converted from yang file by Parser    |
20 |              | 2. result whether the output is same with expected outcome   |
21 +--------------+--------------------------------------------------------------+
22 |test purpose  | To verify the function of Yang-to-Tosca in Parser.           |
23 |              |                                                              |
24 +--------------+--------------------------------------------------------------+
25 |configuration | file: opnfv_yardstick_tc040.yaml                             |
26 |              |                                                              |
27 |              | yangfile: the path of the yangfile which you want to convert |
28 |              | toscafile: the path of the toscafile which is your expected  |
29 |              | outcome.                                                     |
30 |              |                                                              |
31 +--------------+--------------------------------------------------------------+
32 |test tool     | Parser                                                       |
33 |              |                                                              |
34 |              | (Parser is not part of a Linux distribution, hence it        |
35 |              | needs to be installed. As an example see the                 |
36 |              | /yardstick/benchmark/scenarios/parser/parser_setup.sh for    |
37 |              | how to install it manual. Of course, it will be installed    |
38 |              | and uninstalled automatically when you run this test case    |
39 |              | by yardstick)                                                |
40 +--------------+--------------------------------------------------------------+
41 |references    | Parser_                                                      |
42 |              |                                                              |
43 |              |                                                              |
44 +--------------+--------------------------------------------------------------+
45 |applicability | Test can be configured with different path of yangfile and   |
46 |              | toscafile to fit your real environment to verify Parser      |
47 |              |                                                              |
48 +--------------+--------------------------------------------------------------+
49 |pre-test      |  No POD specific requirements have been identified.          |
50 |conditions    |  it can be run without VM                                    |
51 |              |                                                              |
52 +--------------+--------------------------------------------------------------+
53 |test sequence | description and expected result                              |
54 |              |                                                              |
55 +--------------+--------------------------------------------------------------+
56 |step 1        | parser is installed without VM, running Yang-to-Tosca module |
57 |              | to convert yang file to tosca file, validating output against|
58 |              | expected outcome.                                            |
59 |              |                                                              |
60 |              | Result: Logs are stored.                                     |
61 +--------------+--------------------------------------------------------------+
62 |test verdict  | Fails only if output is different with expected outcome      |
63 |              | or if there is a test case execution problem.                |
64 |              |                                                              |
65 +--------------+--------------------------------------------------------------+