1 .. This work is licensed under a Creative Commons Attribution 4.0 International
3 .. http://creativecommons.org/licenses/by/4.0
4 .. (c) OPNFV, Huawei Technologies Co.,Ltd and others.
6 *************************************
7 Yardstick Test Case Description TC040
8 *************************************
10 .. _Parser: https://wiki.opnfv.org/parser
12 +-----------------------------------------------------------------------------+
13 |Verify Parser Yang-to-Tosca |
15 +--------------+--------------------------------------------------------------+
16 |test case id | OPNFV_YARDSTICK_TC040 Verify Parser Yang-to-Tosca |
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. |
24 +--------------+--------------------------------------------------------------+
25 |configuration | file: opnfv_yardstick_tc040.yaml |
27 | | yangfile: the path of the yangfile which you want to convert |
28 | | toscafile: the path of the toscafile which is your expected |
31 +--------------+--------------------------------------------------------------+
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 |
40 +--------------+--------------------------------------------------------------+
41 |references | Parser_ |
44 +--------------+--------------------------------------------------------------+
45 |applicability | Test can be configured with different path of yangfile and |
46 | | toscafile to fit your real environment to verify Parser |
48 +--------------+--------------------------------------------------------------+
49 |pre-test | No POD specific requirements have been identified. |
50 |conditions | it can be run without VM |
52 +--------------+--------------------------------------------------------------+
53 |test sequence | description and expected result |
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. |
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. |
65 +--------------+--------------------------------------------------------------+