Merge "Switch to OS_PROJECT_NAME"
[functest.git] / docs / testing / user / userguide / test_overview.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3
4 Overview of the Functest suites
5 ===============================
6
7 Functest is the OPNFV project primarily targeting functional testing.
8 In the Continuous Integration pipeline, it is launched after an OPNFV fresh
9 installation to validate and verify the basic functions of the
10 infrastructure.
11
12 The current list of test suites can be distributed over 4 main domains:
13   * VIM (Virtualised Infrastructure Manager)
14   * Controllers (i.e. SDN Controllers)
15   * Features
16   * VNF (Virtual Network Functions)
17
18 Functest test suites are also distributed in the OPNFV testing categories:
19 healthcheck, smoke, features, components, performance, VNF, Stress tests.
20
21 All the Healthcheck and smoke tests of a given scenario must be succesful to
22 validate the scenario for the release.
23
24 +-------------+---------------+----------------+----------------------------------+
25 | Domain      | Tier          | Test case      | Comments                         |
26 +=============+===============+================+==================================+
27 | VIM         | healthcheck   | connection     | Check OpenStack connectivity     |
28 |             |               | _check         | through SNAPS framework          |
29 |             |               +----------------+----------------------------------+
30 |             |               | api_check      | Check OpenStack API through      |
31 |             |               |                | SNAPS framework                  |
32 |             |               +----------------+----------------------------------+
33 |             |               | snaps_health   |  basic instance creation, check  |
34 |             |               | \_check        |  DHCP                            |
35 |             +---------------+----------------+----------------------------------+
36 |             | smoke         | vping_ssh      | NFV "Hello World" using an SSH   |
37 |             |               |                | connection to a destination VM   |
38 |             |               |                | over a created floating IP       |
39 |             |               |                | address on the SUT Public /      |
40 |             |               |                | External network. Using the SSH  |
41 |             |               |                | connection a test script is then |
42 |             |               |                | copied to the destination        |
43 |             |               |                | VM and then executed via SSH.    |
44 |             |               |                | The script will ping another     |
45 |             |               |                | VM on a specified IP address over|
46 |             |               |                | the SUT Private Tenant network   |
47 |             |               +----------------+----------------------------------+
48 |             |               | vping_userdata | Uses Ping with given userdata    |
49 |             |               |                | to test intra-VM connectivity    |
50 |             |               |                | over the SUT Private Tenant      |
51 |             |               |                | network. The correct operation   |
52 |             |               |                | of the NOVA Metadata service is  |
53 |             |               |                | also verified in this test       |
54 |             |               +----------------+----------------------------------+
55 |             |               | tempest_smoke  | Generate and run a relevant      |
56 |             |               | \_serial       | Tempest Test Suite in smoke mode.|
57 |             |               |                | The generated test set is        |
58 |             |               |                | dependent on the OpenStack       |
59 |             |               |                | deployment environment           |
60 |             |               +----------------+----------------------------------+
61 |             |               | rally_sanity   | Run a subset of the OpenStack    |
62 |             |               |                | Rally Test Suite in smoke mode   |
63 |             |               +----------------+----------------------------------+
64 |             |               | snaps_smoke    | Run the SNAPS-OO integration     |
65 |             |               |                | tests                            |
66 |             |               +----------------+----------------------------------+
67 |             |               | refstack       | Reference RefStack suite         |
68 |             |               |   \_defcore    | tempest selection for NFV        |
69 |             +---------------+----------------+----------------------------------+
70 |             | components    | tempest_full   | Generate and run a full set of   |
71 |             |               | \_parallel     | the OpenStack Tempest Test Suite.|
72 |             |               |                | See the OpenStack reference test |
73 |             |               |                | suite `[2]`_. The generated      |
74 |             |               |                | test set is dependent on the     |
75 |             |               |                | OpenStack deployment environment |
76 |             |               +----------------+----------------------------------+
77 |             |               | rally_full     | Run the OpenStack testing tool   |
78 |             |               |                | benchmarking OpenStack modules   |
79 |             |               |                | See the Rally documents `[3]`_   |
80 |             |               +----------------+----------------------------------+
81 |             |               | tempest_custom | Allow to run a customized list   |
82 |             |               |                | of Tempest cases                 |
83 +-------------+---------------+----------------+----------------------------------+
84 | Controllers | smoke         | odl            | Opendaylight Test suite          |
85 |             |               |                | Limited test suite to check the  |
86 |             |               |                | basic neutron (Layer 2)          |
87 |             |               |                | operations mainly based on       |
88 |             |               |                | upstream testcases. See below    |
89 |             |               |                | for details                      |
90 |             |               +----------------+----------------------------------+
91 |             |               | odl_netvirt    | Test Suite for the OpenDaylight  |
92 |             |               |                | SDN Controller when the NetVirt  |
93 |             |               |                | features are installed. It       |
94 |             |               |                | integrates some test suites from |
95 |             |               |                | upstream using Robot as the test |
96 |             |               |                | framework                        |
97 |             |               +----------------+----------------------------------+
98 |             |               | fds            | Test Suite for the OpenDaylight  |
99 |             |               |                | SDN Controller when the GBP      |
100 |             |               |                | features are installed. It       |
101 |             |               |                | integrates some test suites from |
102 |             |               |                | upstream using Robot as the test |
103 |             |               |                | framework                        |
104 +-------------+---------------+----------------+----------------------------------+
105 | Features    | features      | bgpvpn         | Implementation of the OpenStack  |
106 |             |               |                | bgpvpn API from the SDNVPN       |
107 |             |               |                | feature project. It allows for   |
108 |             |               |                | the creation of BGP VPNs.        |
109 |             |               |                | See `SDNVPN User Guide`_ for     |
110 |             |               |                | details                          |
111 |             |               +----------------+----------------------------------+
112 |             |               | doctor         | Doctor platform, as of Colorado  |
113 |             |               |                | release, provides the three      |
114 |             |               |                | features:                        |
115 |             |               |                | * Immediate Notification         |
116 |             |               |                | * Consistent resource state      |
117 |             |               |                | awareness for compute host down  |
118 |             |               |                | * Valid compute host status      |
119 |             |               |                | given to VM owner                |
120 |             |               |                | See `Doctor User Guide`_ for     |
121 |             |               |                | details                          |
122 |             |               +----------------+----------------------------------+
123 |             |               | domino         | Domino provides TOSCA template   |
124 |             |               |                | distribution service for network |
125 |             |               |                | service and VNF descriptors      |
126 |             |               |                | among MANO components e.g.,      |
127 |             |               |                | NFVO, VNFM, VIM, SDN-C, etc.,    |
128 |             |               |                | as well as OSS/BSS functions.    |
129 |             |               |                | See `Domino User Guide`_ for     |
130 |             |               |                | details                          |
131 |             |               +----------------+----------------------------------+
132 |             |               | odl-sfc        | SFC testing for odl scenarios    |
133 |             |               |                | See `SFC User Guide`_ for details|
134 |             |               +----------------+----------------------------------+
135 |             |               | parser         | Parser is an integration project |
136 |             |               |                | which aims to provide            |
137 |             |               |                | placement/deployment templates   |
138 |             |               |                | translation for OPNFV platform,  |
139 |             |               |                | including TOSCA -> HOT, POLICY ->|
140 |             |               |                | TOSCA and YANG -> TOSCA. it      |
141 |             |               |                | deals with a fake vRNC.          |
142 |             |               |                | See `Parser User Guide`_ for     |
143 |             |               |                | details                          |
144 |             |               +----------------+----------------------------------+
145 |             |               | promise        | Resource reservation and         |
146 |             |               |                | management project to identify   |
147 |             |               |                | NFV related requirements and     |
148 |             |               |                | realize resource reservation for |
149 |             |               |                | future usage by capacity         |
150 |             |               |                | management of resource pools     |
151 |             |               |                | regarding compute, network and   |
152 |             |               |                | storage.                         |
153 |             |               |                | See `Promise User Guide`_ for    |
154 |             |               |                | details                          |
155 +-------------+---------------+----------------+----------------------------------+
156 | VNF         | vnf           | cloudify_ims   | Example of a real VNF deployment |
157 |             |               |                | to show the NFV capabilities of  |
158 |             |               |                | the platform. The IP Multimedia  |
159 |             |               |                | Subsytem is a typical Telco test |
160 |             |               |                | case, referenced by ETSI.        |
161 |             |               |                | It provides a fully functional   |
162 |             |               |                | VoIP System                      |
163 |             |               +----------------+----------------------------------+
164 |             |               | orchestra      | OpenIMS deployment using         |
165 |             |               |   openims      | Openbaton orchestrator           |
166 |             |               +----------------+----------------------------------+
167 |             |               | orchestra      | Cleawater IMS deployment using   |
168 |             |               |   cleawaterims | Openbaton orchestrator           |
169 |             |               +----------------+----------------------------------+
170 |             |               | vyos_vrouter   | vRouter testing                  |
171 |             |               +----------------+----------------------------------+
172 |             |               | cloudify_ims   | Based on cloudify_ims test case  |
173 |             |               | perf           | cloudify_ims_perf substitutes    |
174 |             |               |                | the signaling test suite by an   |
175 |             |               |                | automatic deployment of an Ixia  |
176 |             |               |                | loader and generic SIP stress    |
177 |             |               |                | tests.                           |
178 |             |               |                | This work has been initiated     |
179 |             |               |                | during the plugfest and allows   |
180 |             |               |                | realistic load tests on top of   |
181 |             |               |                | cloudify_ims. Please note that   |
182 |             |               |                | this test is available but not   |
183 |             |               |                | declared in testcases.yaml as it |
184 |             |               |                | requires access to proprietary   |
185 |             |               |                | resources (Ixia loader)          |
186 +-------------+---------------+----------------+----------------------------------+
187
188
189 As shown in the above table, Functest is structured into different 'domains',
190 'tiers' and 'test cases'. Each 'test case' usually represents an actual
191 'Test Suite' comprised -in turn- of several test cases internally.
192
193 Test cases also have an implicit execution order. For example, if the early
194 'healthcheck' Tier testcase fails, or if there are any failures in the 'smoke'
195 Tier testcases, there is little point to launch a full testcase execution round.
196
197 In Danube, we merged smoke and sdn controller tiers in smoke tier.
198
199 An overview of the Functest Structural Concept is depicted graphically below:
200
201 .. figure:: ../../../images/concepts_mapping_final.png
202    :align: center
203    :alt: Functest Concepts Structure
204
205 Some of the test cases are developed by Functest team members, whereas others
206 are integrated from upstream communities or other OPNFV projects. For example,
207 `Tempest <http://docs.openstack.org/developer/tempest/overview.html>`_ is the
208 OpenStack integration test suite and Functest is in charge of the selection,
209 integration and automation of those tests that fit suitably to OPNFV.
210
211 The Tempest test suite is the default OpenStack smoke test suite but no new test
212 cases have been created in OPNFV Functest.
213
214 The results produced by the tests run from CI are pushed and collected into a
215 NoSQL database. The goal is to populate the database with results from different
216 sources and scenarios and to show them on a `Functest Dashboard`_. A screenshot
217 of a live Functest Dashboard is shown below:
218
219 .. figure:: ../../../images/FunctestDashboardEuphrates.png
220    :align: center
221    :alt: Functest Dashboard
222
223
224 Basic components (VIM, SDN controllers) are tested through their own suites.
225 Feature projects also provide their own test suites with different ways of
226 running their tests.
227
228 The notion of domain has been introduced in the description of the test cases
229 stored in the Database.
230 This parameters as well as possible tags can be used for the Test case catalog.
231
232 vIMS test case was integrated to demonstrate the capability to deploy a
233 relatively complex NFV scenario on top of the OPNFV infrastructure.
234
235 Functest considers OPNFV as a black box. OPNFV offers a lot of potential
236 combinations (which may change from one version to another):
237
238   * 3 controllers (OpenDaylight, ONOS, OpenContrail)
239   * 5 installers (Apex, Compass, Daisy, Fuel, Joid)
240
241 Most of the tests are runnable by any combination, but some tests might have
242 restrictions imposed by the utilized installers or due to the available
243 deployed features. The system uses the environment variables (INSTALLER_TYPE and
244 DEPLOY_SCENARIO) to automatically determine the valid test cases, for each given
245 environment.
246
247 A convenience Functest CLI utility is also available to simplify setting up the
248 Functest evironment, management of the OpenStack environment (e.g. resource
249 clean-up) and for executing tests.
250 The Functest CLI organised the testcase into logical Tiers, which contain in
251 turn one or more testcases. The CLI allows execution of a single specified
252 testcase, all test cases in a specified Tier, or the special case of execution
253 of **ALL** testcases. The Functest CLI is introduced in more details in next
254 section.
255
256 .. _`[2]`: http://docs.openstack.org/developer/tempest/overview.html
257 .. _`[3]`: https://rally.readthedocs.org/en/latest/index.html
258 .. _`Doctor User Guide`: http://artifacts.opnfv.org/doctor/colorado/userguide/index.html
259 .. _`Promise User Guide`: http://artifacts.opnfv.org/promise/colorado/docs/userguide/index.html
260 .. _`SDNVPN User Guide`: http://artifacts.opnfv.org/sdnvpn/colorado/docs/userguide/index.html
261 .. _`Domino User Guide`: http://artifacts.opnfv.org/domino/docs/userguide-single/index.html
262 .. _`Parser User Guide`: http://artifacts.opnfv.org/parser/colorado/docs/userguide/index.html
263 .. _`Functest Dashboard`: http://testresults.opnfv.org/kibana_dashboards/
264 .. _`SFC User Guide`: http://artifacts.opnfv.org/sfc/colorado/userguide/index.html