Generating test lists for tempest
[functest.git] / testcases / config_functest.yaml
1 general:
2     directories:
3         # Relative to the path where the repo is cloned:
4         dir_vping:         testcases/vPing/CI/libraries/
5         dir_odl:           testcases/Controllers/ODL/CI/
6         dir_rally:         testcases/VIM/OpenStack/CI/libraries/
7         dir_rally_scn:     testcases/VIM/OpenStack/CI/rally_cert/
8         dir_tempest_cases: testcases/VIM/OpenStack/CI/custom_tests/
9         dir_vIMS:          testcases/vIMS/CI/
10         dir_onos:          testcases/Controllers/ONOS/Teston/CI/
11
12         # Absolute path
13         dir_repos:          /home/opnfv/repos
14         dir_repo_functest:  /home/opnfv/repos/functest
15         dir_repo_rally:     /home/opnfv/repos/rally
16         dir_repo_tempest:   /home/opnfv/repos/tempest
17         dir_repo_releng:    /home/opnfv/repos/releng
18         dir_repo_vims_test: /home/opnfv/repos/vims-test
19         dir_repo_bgpvpn:    /home/opnfv/repos/bgpvpn
20         dir_repo_onos:      /home/opnfv/repos/onos
21         dir_repo_promise:   /home/opnfv/repos/promise
22         dir_repo_doctor:    /home/opnfv/repos/doctor
23         dir_repo_ovno:      /home/opnfv/repos/ovno
24         dir_functest:       /home/opnfv/functest
25         dir_results:        /home/opnfv/functest/results
26         dir_functest_conf:  /home/opnfv/functest/conf
27         dir_rally_res:      /home/opnfv/functest/results/rally/
28         dir_functest_data:  /home/opnfv/functest/data
29         dir_vIMS_data:      /home/opnfv/functest/data/vIMS
30         dir_rally_inst:     /home/opnfv/.rally
31
32     repositories:
33         # branch and commit ID to which the repos will be reset (HEAD)
34         releng_branch:  master
35         releng_commit:  latest
36         rally_branch:   master
37         rally_commit:   1b6e9e9219b143c685a2af134ab025dddd72ed27
38         vims_test_branch:   stable
39         vims_test_commit:   latest
40         bgpvpn_branch:   master
41         bgpvpn_commit:   latest
42         onos_branch:   master
43         onos_commit:   latest
44         promise_branch:   master
45         promise_commit:   latest
46         ovno_branch:   master
47         ovno_commit:   latest
48         doctor_branch: stable/brahmaputra
49         doctor_commit: latest
50
51     openstack:
52         image_name: functest-img
53         image_file_name:  cirros-0.3.4-x86_64-disk.img
54         image_disk_format:  qcow2
55
56         #Private network for functest. Will be created by config_functest.py
57         neutron_private_net_name: functest-net
58         neutron_private_subnet_name: functest-subnet
59         neutron_private_subnet_cidr: 192.168.120.0/24
60         neutron_private_subnet_start: 192.168.120.2
61         neutron_private_subnet_end: 192.168.120.254
62         neutron_private_subnet_gateway: 192.168.120.254
63         neutron_router_name: functest-router
64
65 vping:
66     ping_timeout:   200
67     vm_flavor: m1.small #adapt to your environment
68     vm_name_1: opnfv-vping-1
69     vm_name_2: opnfv-vping-2
70     image_name: functest-vping
71     vping_private_net_name: vping-net
72     vping_private_subnet_name: vping-subnet
73     vping_private_subnet_cidr: 192.168.130.0/24
74     vping_router_name: vping-router
75     vping_sg_name: vPing-sg
76     vping_sg_descr: Security group for vPing test case
77
78 tempest:
79     identity:
80         tenant_name: tempest
81         tenant_description: Tenant for Tempest test suite
82         user_name: tempest
83         user_password: tempest
84     input-scenario:
85         ssh_user_regex: '[["^.*[Cc]irros.*$", "cirros"], ["^.*[Tt]est[VvMm].*$", "cirros"], ["^.*rally_verify.*$", "cirros"]]'
86
87 rally:
88     deployment_name: opnfv-rally
89
90 vIMS:
91     general:
92         tenant_name: vIMS
93         tenant_description: vIMS Functionality Testing
94         images:
95             ubuntu:
96                 image_url: 'http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img'
97                 image_name: ubuntu_14.04
98             centos:
99                 image_url: 'http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1510.qcow2'
100                 image_name: centos_7
101     cloudify:
102         blueprint:
103             url: https://github.com/boucherv-orange/cloudify-manager-blueprints.git
104             branch: "3.3-build"
105         requierments:
106             ram_min: 3000
107             os_image: centos_7
108         inputs:
109             keystone_username: ""
110             keystone_password: ""
111             keystone_tenant_name: ""
112             keystone_url: ""
113             manager_public_key_name: 'manager-kp'
114             agent_public_key_name: 'agent-kp'
115             image_id: ""
116             flavor_id: "3"
117             external_network_name: ""
118             ssh_user: centos
119             agents_user: ubuntu
120     clearwater:
121         blueprint:
122             file_name: 'openstack-blueprint.yaml'
123             name: "clearwater-opnfv"
124             destination_folder: "opnfv-cloudify-clearwater"
125             url: 'https://github.com/Orange-OpenSource/opnfv-cloudify-clearwater.git'
126             branch: "stable"
127         deployment-name: 'clearwater-opnfv'
128         requierments:
129             ram_min: 1700
130             os_image: ubuntu_14.04
131         inputs:
132             image_id: ''
133             flavor_id: ''
134             agent_user: 'ubuntu'
135             external_network_name: ''
136             public_domain: clearwater.opnfv
137 ONOS:
138     general:
139         onosbench_username: 'root'
140         onosbench_password: 'root'
141         onoscli_username: 'root'
142         onoscli_password: 'root'
143         runtimeout: 300
144     environment:
145         OCT: '10.20.0.1'
146         OC1: '10.20.0.7'
147         OC2: '10.20.0.7'
148         OC3: '10.20.0.7'
149         OCN: '10.20.0.4'
150         OCN2: '10.20.0.5'
151         installer_master: '10.20.0.2'
152         installer_master_username: 'root'
153         installer_master_password: 'r00tme'
154
155 promise:
156     general:
157         tenant_name: promise
158         tenant_description: promise Functionality Testing
159         user_name: promiser
160         user_pwd: test
161         image_name: promise-img
162         flavor_name: promise-flavor
163         flavor_vcpus: 1
164         flavor_ram: 512
165         flavor_disk: 0
166
167 results:
168     test_db_url: http://testresults.opnfv.org/testapi
169
170 # to be maintained...
171 # the execution order is important as some tests may be more destructive than others
172 # and if vPing is failing is usually not needed to continue...
173 test_exec_priority:
174     1: vping_ssh
175     2: vping_userdata
176     3: tempest
177     4: odl
178     5: onos
179     6: ovno
180     7: doctor
181     8: promise
182     9: odl-vpnservice
183     10: bgpvpn
184     #11: openstack-neutron-bgpvpn-api-extension-tests
185     12: vims
186     13: rally
187
188
189 ########################################################################
190 # This part lists the dependencies of the tests
191 #
192 # it is used to manage the complexity of the possible combinations
193 #
194 # 17 projects have been declared for Brahmaputra (D Milestone)
195 # 89 testcases are associated with these 17 projects
196 #
197 # in B-Release, Functest deals with 6 companion projects:
198 # - congress
199 # - doctor
200 # - ovno
201 # - policyTest
202 # - promise
203 # - sdnvpn
204 #
205 # constraints may be declared at the testcase or the test project level
206 #
207 # By default we consider that all the tests can be run on any configuration
208 #
209 # we defined 2 constraints
210 # - installer (e.g. my test can be run only with installer Compass)
211 # possible values: apex, compass, fuel, joid
212 #
213 # - the scenario: it described a specif installation
214 #    os-<controller>-<nfvfeature>-<mode>[-<extrastuff>]
215 # With parameters:
216 #    controller=(nosdn|odl_l3|odl_l2|onos|ocl)
217 #       No odl_l3 today
218 #    nfvfeature=(kvm|ovs|dpdk|nofeature)
219 #       '_' list separated.
220 #    mode=(ha|noha)
221 #    extrastuff=(none)
222 #       Optional field - Not used today#
223 #
224 # ref:https://gerrit.opnfv.org/gerrit/#/c/6323/7/jjb/joid/joid-deploy.sh (L72-82)
225 #  e.g my test is only possible with OVS 2.3.2 on odl
226 #
227 # in functest, we indicate the regex pattern to be checked towards the scenario
228 # e.g. odl-vpn_service-tests can be run if and only if
229 #                                - installer is fuel
230 #                                - scenario contains the name ovs and odl
231 #
232 #######################################################################
233 test-dependencies:
234     doctor:
235         installer: 'apex'
236     functest:
237         vims:
238             scenario: '(ocl)|(odl)|(nosdn)'
239         vping_ssh:
240         vping_userdata:
241         tempest:
242         rally:
243         odl:
244             scenario: 'odl'
245         onos:
246             scenario: 'onos'
247     promise:
248         installer: '(fuel)|(joid)'
249     ovno:
250         scenario: 'ocl'
251     policy-test:
252         scenario: 'odl'
253     sdnvpn:
254         bgpvpn:
255             installer: 'fuel'
256             scenario: 'bgpvpn'
257             # this execute the tempest tests of networking-bgpvpn