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