Downgrade to setuptools_scm===5.0.1
[functest.git] / README.md
1 # Functest
2
3 Network virtualization has dramatically modified our architectures which asks
4 for more automation and powerful testing tools like Functest, a collection of
5 state-of-the-art virtual infrastructure test suites, including automatic VNF
6 testing (cf.
7 [[1]](https://www.linuxfoundation.org/press-release/2019/05/opnfv-hunter-delivers-test-tools-ci-cd-framework-to-enable-common-nfvi-for-verifying-vnfs/)).
8
9 In context of OPNFV, Functest verifies any kind of OpenStack and Kubernetes
10 deployments including production environments. It conforms to upstream rules
11 and integrates smoothly lots of the test cases available in the opensource
12 market. It includes about 3000+ functional tests and 3 hours upstream API and
13 dataplane benchmarks. It’s completed by Virtual Network Function deployments
14 and testing (vIMS, vRouter and vEPC) to ensure that the platforms meet Network
15 Functions Virtualization requirements. Raspberry PI is also supported to verify
16 datacenters as the lowest cost (50 euros hardware and software included).
17
18 | Functest releases | OpenStack releases |
19 |-------------------|--------------------|
20 | Hunter                  | Rocky              |
21 | **Iruya**         | **Stein**          |
22 | Jerma             | Train              |
23 | Kali              | Ussuri             |
24 | Leguer            | Victoria           |
25 | Master              | next Wallaby       |
26
27 ## Prepare your environment
28
29 cat env
30 ```
31 DEPLOY_SCENARIO=XXX  # if not os-nosdn-nofeature-noha scenario
32 NAMESERVER=XXX  # if not 8.8.8.8
33 EXTERNAL_NETWORK=XXX  # if not first network with router:external=True
34 DASHBOARD_URL=XXX  # else tempest_horizon will be skipped
35 NEW_USER_ROLE=XXX  # if not member
36 SDN_CONTROLLER_IP=XXX  # if odl scenario
37 VOLUME_DEVICE_NAME=XXX  # if not vdb
38 FLAVOR_EXTRA_SPECS=hw:mem_page_size:large  # if fdio scenarios
39 ```
40
41 cat openstack.creds
42 ```
43 export OS_AUTH_URL=XXX
44 export OS_USER_DOMAIN_NAME=XXX
45 export OS_PROJECT_DOMAIN_NAME=XXX
46 export OS_USERNAME=XXX
47 export OS_PROJECT_NAME=XXX
48 export OS_PASSWORD=XXX
49 export OS_IDENTITY_API_VERSION=3
50 export OS_REGION_NAME=XXX
51 ```
52
53 mkdir -p images && wget -q -O- https://git.opnfv.org/functest/plain/functest/ci/download_images.sh?h=stable/iruya | bash -s – images && ls -1 images/*
54 ```
55 images/cirros-0.4.0-aarch64-disk.img
56 images/cirros-0.4.0-x86_64-disk.img
57 images/cloudify-docker-manager-community-19.01.24.tar
58 images/Fedora-Cloud-Base-30-1.2.x86_64.qcow2
59 images/shaker-image-1.3.0+stretch.qcow2
60 images/ubuntu-14.04-server-cloudimg-amd64-disk1.img
61 images/ubuntu-14.04-server-cloudimg-arm64-uefi1.img
62 images/ubuntu-16.04-server-cloudimg-amd64-disk1.img
63 images/vyos-1.1.8-amd64.qcow2
64 ```
65
66 ## Run healthcheck suite
67
68 ```bash
69 sudo docker run --env-file env \
70     -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
71     -v $(pwd)/images:/home/opnfv/functest/images \
72     opnfv/functest-healthcheck:iruya
73 ```
74
75 ```
76 +--------------------------+------------------+---------------------+------------------+----------------+
77 |        TEST CASE         |     PROJECT      |         TIER        |     DURATION     |     RESULT     |
78 +--------------------------+------------------+---------------------+------------------+----------------+
79 |     connection_check     |     functest     |     healthcheck     |      00:03       |      PASS      |
80 |      tenantnetwork1      |     functest     |     healthcheck     |      00:05       |      PASS      |
81 |      tenantnetwork2      |     functest     |     healthcheck     |      00:06       |      PASS      |
82 |         vmready1         |     functest     |     healthcheck     |      00:06       |      PASS      |
83 |         vmready2         |     functest     |     healthcheck     |      00:07       |      PASS      |
84 |        singlevm1         |     functest     |     healthcheck     |      00:36       |      PASS      |
85 |        singlevm2         |     functest     |     healthcheck     |      00:35       |      PASS      |
86 |        vping_ssh         |     functest     |     healthcheck     |      00:45       |      PASS      |
87 |      vping_userdata      |     functest     |     healthcheck     |      00:34       |      PASS      |
88 |       cinder_test        |     functest     |     healthcheck     |      01:01       |      PASS      |
89 |      tempest_smoke       |     functest     |     healthcheck     |      04:16       |      PASS      |
90 |     tempest_horizon      |     functest     |     healthcheck     |      00:57       |      PASS      |
91 |           odl            |     functest     |     healthcheck     |      00:00       |      SKIP      |
92 +--------------------------+------------------+---------------------+------------------+----------------+
93 ```
94
95 ## Run smoke suite
96
97 ```bash
98 sudo docker run --env-file env \
99     -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
100     -v $(pwd)/images:/home/opnfv/functest/images \
101     opnfv/functest-smoke:iruya
102 ```
103
104 ```
105 +---------------------------+------------------+---------------+------------------+----------------+
106 |         TEST CASE         |     PROJECT      |      TIER     |     DURATION     |     RESULT     |
107 +---------------------------+------------------+---------------+------------------+----------------+
108 |      tempest_neutron      |     functest     |     smoke     |      13:41       |      PASS      |
109 |       tempest_cinder      |     functest     |     smoke     |      01:59       |      PASS      |
110 |      tempest_keystone     |     functest     |     smoke     |      01:19       |      PASS      |
111 |        tempest_heat       |     functest     |     smoke     |      25:02       |      PASS      |
112 |        rally_sanity       |     functest     |     smoke     |      20:09       |      PASS      |
113 |      refstack_compute     |     functest     |     smoke     |      08:36       |      PASS      |
114 |      refstack_object      |     functest     |     smoke     |      02:15       |      PASS      |
115 |     refstack_platform     |     functest     |     smoke     |      08:22       |      PASS      |
116 |        tempest_full       |     functest     |     smoke     |      45:39       |      PASS      |
117 |      tempest_scenario     |     functest     |     smoke     |      08:36       |      PASS      |
118 |        tempest_slow       |     functest     |     smoke     |      50:49       |      PASS      |
119 |          patrole          |     functest     |     smoke     |      02:39       |      PASS      |
120 |     networking-bgpvpn     |     functest     |     smoke     |      00:00       |      SKIP      |
121 |       networking-sfc      |     functest     |     smoke     |      00:00       |      SKIP      |
122 |      tempest_barbican     |     functest     |     smoke     |      02:56       |      PASS      |
123 |      tempest_octavia      |     functest     |     smoke     |      00:00       |      SKIP      |
124 +---------------------------+------------------+---------------+------------------+----------------+
125 ```
126
127 ## Run smoke CNTT suite
128
129 ```bash
130 sudo docker run --env-file env \
131     -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
132     -v $(pwd)/images:/home/opnfv/functest/images \
133     opnfv/functest-smoke-cntt:iruya
134 ```
135
136 ```
137 +-------------------------------+------------------+---------------+------------------+----------------+
138 |           TEST CASE           |     PROJECT      |      TIER     |     DURATION     |     RESULT     |
139 +-------------------------------+------------------+---------------+------------------+----------------+
140 |      tempest_neutron_cntt     |     functest     |     smoke     |      10:43       |      PASS      |
141 |      tempest_cinder_cntt      |     functest     |     smoke     |      01:46       |      PASS      |
142 |     tempest_keystone_cntt     |     functest     |     smoke     |      01:13       |      PASS      |
143 |       tempest_heat_cntt       |     functest     |     smoke     |      22:36       |      PASS      |
144 |       rally_sanity_cntt       |     functest     |     smoke     |      17:37       |      PASS      |
145 |       tempest_full_cntt       |     functest     |     smoke     |      42:42       |      PASS      |
146 |     tempest_scenario_cntt     |     functest     |     smoke     |      09:02       |      PASS      |
147 |       tempest_slow_cntt       |     functest     |     smoke     |      31:13       |      PASS      |
148 +-------------------------------+------------------+---------------+------------------+----------------+
149 ```
150
151 ## Run benchmarking suite
152
153 ```bash
154 sudo docker run --env-file env \
155     -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
156     -v $(pwd)/images:/home/opnfv/functest/images \
157     opnfv/functest-benchmarking:iruya
158 ```
159
160 ```
161 +--------------------+------------------+----------------------+------------------+----------------+
162 |     TEST CASE      |     PROJECT      |         TIER         |     DURATION     |     RESULT     |
163 +--------------------+------------------+----------------------+------------------+----------------+
164 |     rally_full     |     functest     |     benchmarking     |      92:16       |      PASS      |
165 |     rally_jobs     |     functest     |     benchmarking     |      17:31       |      PASS      |
166 |        vmtp        |     functest     |     benchmarking     |      15:20       |      PASS      |
167 |       shaker       |     functest     |     benchmarking     |      22:44       |      PASS      |
168 +--------------------+------------------+----------------------+------------------+----------------+
169 ```
170
171 ## Run benchmarking CNTT suite
172
173 ```bash
174 sudo docker run --env-file env \
175     -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
176     -v $(pwd)/images:/home/opnfv/functest/images \
177     opnfv/functest-benchmarking-cntt:iruya
178 ```
179
180 ```
181 +-------------------------+------------------+----------------------+------------------+----------------+
182 |        TEST CASE        |     PROJECT      |         TIER         |     DURATION     |     RESULT     |
183 +-------------------------+------------------+----------------------+------------------+----------------+
184 |     rally_full_cntt     |     functest     |     benchmarking     |      99:42       |      PASS      |
185 |     rally_jobs_cntt     |     functest     |     benchmarking     |      18:49       |      PASS      |
186 |           vmtp          |     functest     |     benchmarking     |      16:01       |      PASS      |
187 |          shaker         |     functest     |     benchmarking     |      23:31       |      PASS      |
188 +-------------------------+------------------+----------------------+------------------+----------------+
189 ```
190
191 ## Run vnf suite
192
193 ```bash
194 sudo docker run --env-file env \
195     -v $(pwd)/openstack.creds:/home/opnfv/functest/conf/env_file \
196     -v $(pwd)/images:/home/opnfv/functest/images \
197     opnfv/functest-vnf:iruya
198 ```
199
200 ```
201 +----------------------+------------------+--------------+------------------+----------------+
202 |      TEST CASE       |     PROJECT      |     TIER     |     DURATION     |     RESULT     |
203 +----------------------+------------------+--------------+------------------+----------------+
204 |       cloudify       |     functest     |     vnf      |      03:35       |      PASS      |
205 |     cloudify_ims     |     functest     |     vnf      |      23:26       |      PASS      |
206 |       heat_ims       |     functest     |     vnf      |      34:22       |      PASS      |
207 |     vyos_vrouter     |     functest     |     vnf      |      13:49       |      PASS      |
208 |       juju_epc       |     functest     |     vnf      |      41:49       |      PASS      |
209 +----------------------+------------------+--------------+------------------+----------------+
210 ```