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