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