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