13eab06df5dde4ac2bdebbb548fa5c77c597ec84
[csit.git] / docs / report / introduction / csit_test_naming.rst
1 CSIT Test Naming\r
2 ================\r
3 \r
4 Background\r
5 ----------\r
6 \r
7 CSIT |release| follows a common structured naming convention for all\r
8 performance and system functional tests, introduced in CSIT |release-1|.\r
9 \r
10 The naming should be intuitive for majority of the tests. Complete\r
11 description of CSIT test naming convention is provided on\r
12 `CSIT test naming wiki page <https://wiki.fd.io/view/CSIT/csit-test-naming>`_.\r
13 Below few illustrative examples of the naming usage for test suites across CSIT\r
14 performance, functional and HoneyComb management test areas.\r
15 \r
16 Naming Convention\r
17 -----------------\r
18 \r
19 The CSIT approach is to use tree naming convention and to encode following\r
20 testing information into test suite and test case names:\r
21 \r
22 #. packet network port configuration\r
23 \r
24    * port type, physical or virtual;\r
25    * number of ports;\r
26    * NIC model, if applicable;\r
27    * port-NIC locality, if applicable;\r
28 \r
29 #. packet encapsulations;\r
30 \r
31 #. VPP packet processing\r
32 \r
33    * packet forwarding mode;\r
34    * packet processing function(s);\r
35 \r
36 #. packet forwarding path\r
37 \r
38    * if present, network functions (processes, containers, VMs) and their\r
39      topology within the computer;\r
40 \r
41 #. main measured variable, type of test.\r
42 \r
43 Proposed convention is to encode ports and NICs on the left (underlay),\r
44 followed by outer-most frame header, then other stacked headers up to the\r
45 header processed by vSwitch-VPP, then VPP forwarding function, then encap on\r
46 vhost interface, number of vhost interfaces, number of VMs. If chained VMs\r
47 present, they get added on the right. Test topology is expected to be\r
48 symmetric, in other words packets enter and leave SUT through ports specified\r
49 on the left of the test name. Here some examples to illustrate the convention\r
50 followed by the complete legend, and tables mapping the new test filenames to\r
51 old ones.\r
52 \r
53 Naming Examples\r
54 ---------------\r
55 \r
56 CSIT test suite naming examples (filename.robot) for common tested VPP\r
57 topologies:\r
58 \r
59 1. **Physical port to physical port - a.k.a. NIC-to-NIC, Phy-to-Phy, P2P**\r
60 \r
61    * *PortNICConfig-WireEncapsulation-PacketForwardingFunction-\r
62      PacketProcessingFunction1-...-PacketProcessingFunctionN-TestType*\r
63    * *10ge2p1x520-dot1q-l2bdbasemaclrn-ndrdisc.robot* => 2 ports of 10GE on Intel\r
64      x520 NIC, dot1q tagged Ethernet, L2 bridge-domain baseline switching with\r
65      MAC learning, NDR throughput discovery.\r
66    * *10ge2p1x520-ethip4vxlan-l2bdbasemaclrn-ndrchk.robot* => 2 ports of 10GE on\r
67      Intel x520 NIC, IPv4 VXLAN Ethernet, L2 bridge-domain baseline switching\r
68      with MAC learning, NDR throughput discovery.\r
69    * *10ge2p1x520-ethip4-ip4base-ndrdisc.robot* => 2 ports of 10GE on Intel x520\r
70      NIC, IPv4 baseline routed forwarding, NDR throughput discovery.\r
71    * *10ge2p1x520-ethip6-ip6scale200k-ndrdisc.robot* => 2 ports of 10GE on Intel\r
72      x520 NIC, IPv6 scaled up routed forwarding, NDR throughput discovery.\r
73    * *10ge2p1x520-ethip4-ip4base-iacldstbase-ndrdisc.robot* => 2 ports of 10GE on\r
74      Intel x520 NIC, IPv4 baseline routed forwarding, ingress Access Control\r
75      Lists baseline matching on destination, NDR throughput discovery.\r
76    * *40ge2p1vic1385-ethip4-ip4base-ndrdisc.robot* => 2 ports of 40GE on Cisco\r
77      vic1385 NIC, IPv4 baseline routed forwarding, NDR throughput discovery.\r
78    * *eth2p-ethip4-ip4base-func.robot* => 2 ports of Ethernet, IPv4 baseline\r
79      routed forwarding, functional tests.\r
80 \r
81 2. **Physical port to VM (or VM chain) to physical port - a.k.a. NIC2VM2NIC,\r
82    P2V2P, NIC2VMchain2NIC, P2V2V2P**\r
83 \r
84    * *PortNICConfig-WireEncapsulation-PacketForwardingFunction-\r
85      PacketProcessingFunction1-...-PacketProcessingFunctionN-VirtEncapsulation-\r
86      VirtPortConfig-VMconfig-TestType*\r
87    * *10ge2p1x520-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc.robot* => 2 ports\r
88      of 10GE on Intel x520 NIC, dot1q tagged Ethernet, L2 bridge-domain switching\r
89      to/from two vhost interfaces and one VM, NDR throughput discovery.\r
90    * *10ge2p1x520-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc.robot* => 2\r
91      ports of 10GE on Intel x520 NIC, IPv4 VXLAN Ethernet, L2 bridge-domain\r
92      switching to/from two vhost interfaces and one VM, NDR throughput discovery.\r
93    * *10ge2p1x520-ethip4vxlan-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc.robot* => 2\r
94      ports of 10GE on Intel x520 NIC, IPv4 VXLAN Ethernet, L2 bridge-domain\r
95      switching to/from four vhost interfaces and two VMs, NDR throughput\r
96      discovery.\r
97    * *eth2p-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-func.robot* => 2 ports of\r
98      Ethernet, IPv4 VXLAN Ethernet, L2 bridge-domain switching to/from two vhost\r
99      interfaces and one VM, functional tests.\r
100 \r
101 3. **API CRUD tests - Create (Write), Read (Retrieve), Update (Modify), Delete\r
102    (Destroy) operations for configuration and operational data**\r
103 \r
104    * *ManagementTestKeyword-ManagementOperation-ManagedFunction1-...-\r
105      ManagedFunctionN-ManagementAPI1-ManagementAPIN-TestType*\r
106    * *mgmt-cfg-lisp-apivat-func* => configuration of LISP with VAT API calls,\r
107      functional tests.\r
108    * *mgmt-cfg-l2bd-apihc-apivat-func* => configuration of L2 Bridge-Domain with\r
109      HoneyComb API and VAT API calls, functional tests.\r
110    * *mgmt-oper-int-apihcnc-func* => reading status and operational data of\r
111      interface with HoneyComb NetConf API calls, functional tests.\r
112    * *mgmt-cfg-int-tap-apihcnc-func* => configuration of tap interfaces with\r
113      HoneyComb NetConf API calls, functional tests.\r
114    * *mgmt-notif-int-subint-apihcnc-func* => notifications of interface and\r
115      sub-interface events with HoneyComb NetConf Notifications, functional tests.\r
116 \r
117 For complete description of CSIT test naming convention please refer to `CSIT\r
118 test naming wiki page <https://wiki.fd.io/view/CSIT/csit-test-naming>`_.\r