aboutsummaryrefslogtreecommitdiffstats
path: root/docs/configguide/yardstick_testcases/opnfv_yardstick_tc040.rst
blob: 044ccf19337e065b2f158469f16d750a24427daa (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
*************************************
Yardstick Test Case Description TC040
*************************************

.. _Parser: https://wiki.opnfv.org/parser

+-----------------------------------------------------------------------------+
|Verify Parser Yang-to-Tosca                                                  |
|                                                                             |
+--------------+--------------------------------------------------------------+
|test case id  | OPNFV_YARDSTICK_TC040 Verify Parser Yang-to-Tosca            |
|              |                                                              |
+--------------+--------------------------------------------------------------+
|metric        | 1. tosca file which is converted from yang file by Parser    |
|              | 2. result whether the output is same with expected outcome   |
+--------------+--------------------------------------------------------------+
|test purpose  | To verify the function of Yang-to-Tosca in Parser.           |
|              |                                                              |
+--------------+--------------------------------------------------------------+
|configuration | file: opnfv_yardstick_tc040.yaml                             |
|              |                                                              |
|              | yangfile: the path of the yangfile which you want to convert |
|              | toscafile: the path of the toscafile which is your expected  |
|              | outcome.                                                     |
|              |                                                              |
+--------------+--------------------------------------------------------------+
|test tool     | Parser                                                       |
|              |                                                              |
|              | (Parser is not part of a Linux distribution, hence it        |
|              | needs to be installed. As an example see the                 |
|              | /yardstick/benchmark/scenarios/parser/parser_setup.sh for    |
|              | how to install it manual. Of course, it will be installed    |
|              | and uninstalled automatically when you run this test case    |
|              | by yardstick)                                                |
+--------------+--------------------------------------------------------------+
|references    | Parser_                                                      |
|              |                                                              |
|              |                                                              |
+--------------+--------------------------------------------------------------+
|applicability | Test can be configured with different path of yangfile and   |
|              | toscafile to fit your real environment to verify Parser      |
|              |                                                              |
+--------------+--------------------------------------------------------------+
|pre-test      |  No POD specific requirements have been identified.          |
|conditions    |  it can be run without VM                                    |
|              |                                                              |
+--------------+--------------------------------------------------------------+
|test sequence | description and expected result                              |
|              |                                                              |
+--------------+--------------------------------------------------------------+
|step 1        | parser is installed without VM, running Yang-to-Tosca module |
|              | to convert yang file to tosca file, validating output against|
|              | expected outcome.                                            |
|              |                                                              |
|              | Result: Logs are stored.                                     |
+--------------+--------------------------------------------------------------+
|test verdict  | Fails only if output is different with expected outcome      |
|              | or if there is a test case execution problem.                |
|              |                                                              |
+--------------+--------------------------------------------------------------+