ci(kitchen+ci): use latest pre-salted images (after CVE) [skip ci]
[arvados-formula.git] / kitchen.yml
1 # -*- coding: utf-8 -*-
2 # vim: ft=yaml
3 ---
4 # For help on this file's format, see https://kitchen.ci/
5 driver:
6   name: docker
7   use_sudo: false
8   privileged: true
9   run_command: /lib/systemd/systemd
10
11 platforms:
12   ## SALT `tiamat`
13   - name: debian-10-tiamat-py3
14     driver:
15       image: saltimages/salt-tiamat-py3:debian-10
16   - name: debian-9-tiamat-py3
17     driver:
18       image: saltimages/salt-tiamat-py3:debian-9
19   - name: ubuntu-2004-tiamat-py3
20     driver:
21       image: saltimages/salt-tiamat-py3:ubuntu-20.04
22   - name: ubuntu-1804-tiamat-py3
23     driver:
24       image: saltimages/salt-tiamat-py3:ubuntu-18.04
25   - name: ubuntu-1604-tiamat-py3
26     driver:
27       image: saltimages/salt-tiamat-py3:ubuntu-16.04
28   - name: centos-8-tiamat-py3
29     driver:
30       image: saltimages/salt-tiamat-py3:centos-8
31   - name: centos-7-tiamat-py3
32     driver:
33       image: saltimages/salt-tiamat-py3:centos-7
34   - name: amazonlinux-2-tiamat-py3
35     driver:
36       image: saltimages/salt-tiamat-py3:amazonlinux-2
37   - name: oraclelinux-8-tiamat-py3
38     driver:
39       image: saltimages/salt-tiamat-py3:oraclelinux-8
40   - name: oraclelinux-7-tiamat-py3
41     driver:
42       image: saltimages/salt-tiamat-py3:oraclelinux-7
43
44   ## SALT `master`
45   - name: debian-10-master-py3
46     driver:
47       image: saltimages/salt-master-py3:debian-10
48   - name: debian-9-master-py3
49     driver:
50       image: saltimages/salt-master-py3:debian-9
51   - name: ubuntu-2004-master-py3
52     driver:
53       image: saltimages/salt-master-py3:ubuntu-20.04
54   - name: ubuntu-1804-master-py3
55     driver:
56       image: saltimages/salt-master-py3:ubuntu-18.04
57   - name: ubuntu-1604-master-py3
58     driver:
59       image: saltimages/salt-master-py3:ubuntu-16.04
60   - name: centos-8-master-py3
61     driver:
62       image: saltimages/salt-master-py3:centos-8
63   - name: centos-7-master-py3
64     driver:
65       image: saltimages/salt-master-py3:centos-7
66   - name: amazonlinux-2-master-py3
67     driver:
68       image: saltimages/salt-master-py3:amazonlinux-2
69   - name: oraclelinux-8-master-py3
70     driver:
71       image: saltimages/salt-master-py3:oraclelinux-8
72   - name: oraclelinux-7-master-py3
73     driver:
74       image: saltimages/salt-master-py3:oraclelinux-7
75
76   ## SALT `3002.5`
77   - name: debian-10-3002-5-py3
78     driver:
79       image: saltimages/salt-3002.5-py3:debian-10
80   - name: debian-9-3002-5-py3
81     driver:
82       image: saltimages/salt-3002.5-py3:debian-9
83   - name: ubuntu-2004-3002-5-py3
84     driver:
85       image: saltimages/salt-3002.5-py3:ubuntu-20.04
86   - name: ubuntu-1804-3002-5-py3
87     driver:
88       image: saltimages/salt-3002.5-py3:ubuntu-18.04
89   - name: ubuntu-1604-3002-5-py3
90     driver:
91       image: saltimages/salt-3002.5-py3:ubuntu-16.04
92   - name: centos-8-3002-5-py3
93     driver:
94       image: saltimages/salt-3002.5-py3:centos-8
95   - name: centos-7-3002-5-py3
96     driver:
97       image: saltimages/salt-3002.5-py3:centos-7
98   - name: amazonlinux-2-3002-5-py3
99     driver:
100       image: saltimages/salt-3002.5-py3:amazonlinux-2
101   - name: oraclelinux-8-3002-5-py3
102     driver:
103       image: saltimages/salt-3002.5-py3:oraclelinux-8
104   - name: oraclelinux-7-3002-5-py3
105     driver:
106       image: saltimages/salt-3002.5-py3:oraclelinux-7
107
108   ## SALT `3001.6`
109   - name: debian-10-3001-6-py3
110     driver:
111       image: saltimages/salt-3001.6-py3:debian-10
112   - name: debian-9-3001-6-py3
113     driver:
114       image: saltimages/salt-3001.6-py3:debian-9
115   - name: ubuntu-2004-3001-6-py3
116     driver:
117       image: saltimages/salt-3001.6-py3:ubuntu-20.04
118   - name: ubuntu-1804-3001-6-py3
119     driver:
120       image: saltimages/salt-3001.6-py3:ubuntu-18.04
121   - name: ubuntu-1604-3001-6-py3
122     driver:
123       image: saltimages/salt-3001.6-py3:ubuntu-16.04
124   - name: centos-8-3001-6-py3
125     driver:
126       image: saltimages/salt-3001.6-py3:centos-8
127   - name: centos-7-3001-6-py3
128     driver:
129       image: saltimages/salt-3001.6-py3:centos-7
130   - name: amazonlinux-2-3001-6-py3
131     driver:
132       image: saltimages/salt-3001.6-py3:amazonlinux-2
133   - name: oraclelinux-8-3001-6-py3
134     driver:
135       image: saltimages/salt-3001.6-py3:oraclelinux-8
136   - name: oraclelinux-7-3001-6-py3
137     driver:
138       image: saltimages/salt-3001.6-py3:oraclelinux-7
139
140   ## SALT `3000.8`
141   - name: debian-10-3000-8-py3
142     driver:
143       image: saltimages/salt-3000.8-py3:debian-10
144   - name: debian-9-3000-8-py3
145     driver:
146       image: saltimages/salt-3000.8-py3:debian-9
147   - name: ubuntu-1804-3000-8-py3
148     driver:
149       image: saltimages/salt-3000.8-py3:ubuntu-18.04
150   - name: ubuntu-1604-3000-8-py3
151     driver:
152       image: saltimages/salt-3000.8-py3:ubuntu-16.04
153   - name: centos-8-3000-8-py3
154     driver:
155       image: saltimages/salt-3000.8-py3:centos-8
156   - name: centos-7-3000-8-py3
157     driver:
158       image: saltimages/salt-3000.8-py3:centos-7
159   - name: amazonlinux-2-3000-8-py3
160     driver:
161       image: saltimages/salt-3000.8-py3:amazonlinux-2
162   - name: oraclelinux-8-3000-8-py3
163     driver:
164       image: saltimages/salt-3000.8-py3:oraclelinux-8
165   - name: oraclelinux-7-3000-8-py3
166     driver:
167       image: saltimages/salt-3000.8-py3:oraclelinux-7
168   - name: ubuntu-1804-3000-8-py2
169     driver:
170       image: saltimages/salt-3000.8-py2:ubuntu-18.04
171   - name: ubuntu-1604-3000-8-py2
172     driver:
173       image: saltimages/salt-3000.8-py2:ubuntu-16.04
174
175 provisioner:
176   name: salt_solo
177   log_level: debug
178   salt_install: none
179   require_chef: false
180   formula: arvados
181   salt_copy_filter:
182     - .kitchen
183     - .git
184
185 verifier:
186   # https://www.inspec.io/
187   name: inspec
188   sudo: true
189   # cli, documentation, html, progress, json, json-min, json-rspec, junit
190   reporter:
191     - cli
192
193 suites:
194   #### api,websocket,keepproxy,keepweb,controller
195   - name: api
196     driver:
197       hostname: fixme.example.net
198     provisioner:
199       dependencies:
200         - name: single_host
201           path: test/salt/states/examples
202         - name: locale
203           repo: git
204           source: https://github.com/saltstack-formulas/locale-formula.git
205         - name: postgres
206           repo: git
207           source: https://github.com/saltstack-formulas/postgres-formula.git
208         - name: nginx
209           repo: git
210           source: https://github.com/netmanagers/nginx-formula.git
211       state_top:
212         base:
213           '*':
214             - single_host.host_entries
215             - single_host.snakeoil_certs
216             - locale
217             - nginx.passenger
218             - postgres
219             - arvados.repo
220             - arvados.api
221             - arvados.websocket
222             - arvados.keepproxy
223             - arvados.keepweb
224             - arvados.controller
225             - arvados.dispatcher
226       pillars:
227         top.sls:
228           base:
229             '*':
230               - arvados
231               - example_locale
232               - example_postgres
233               - example_nginx
234               - example_nginx_api
235               - example_nginx_websocket
236               - example_nginx_keepweb
237               - example_nginx_controller
238               # keepproxy expects to retrieve a list of services from API, so
239               # installing/testing it without an api server running will fail
240               - example_nginx_keepproxy
241       pillars_from_files:
242         # yamllint disable rule:line-length
243         arvados.sls: test/salt/pillar/arvados.sls
244         example_locale.sls: test/salt/pillar/examples/locale.sls
245         example_postgres.sls: test/salt/pillar/examples/postgresql.sls
246         example_nginx.sls: test/salt/pillar/examples/nginx_passenger.sls
247         example_nginx_api.sls: test/salt/pillar/examples/nginx_api_configuration.sls
248         example_nginx_websocket.sls: test/salt/pillar/examples/nginx_websocket_configuration.sls
249         example_nginx_keepweb.sls: test/salt/pillar/examples/nginx_keepweb_configuration.sls
250         example_nginx_keepproxy.sls: test/salt/pillar/examples/nginx_keepproxy_configuration.sls
251         example_nginx_controller.sls: test/salt/pillar/examples/nginx_controller_configuration.sls
252         # yamllint enable rule:line-length
253     verifier:
254       inspec_tests:
255         - path: test/integration/api
256         - path: test/integration/websocket
257         - path: test/integration/keepproxy
258         - path: test/integration/keepweb
259         - path: test/integration/controller
260   #### workbench,workbench2
261   - name: workbench
262     driver:
263       hostname: workbench.fixme.example.net
264     provisioner:
265       dependencies:
266         - name: single_host
267           path: test/salt/states/examples
268         - name: nginx
269           repo: git
270           source: https://github.com/netmanagers/nginx-formula.git
271       state_top:
272         base:
273           '*':
274             - single_host.host_entries
275             - single_host.snakeoil_certs
276             - nginx.passenger
277             - arvados.repo
278             - arvados.workbench
279             - arvados.workbench2
280       pillars:
281         top.sls:
282           base:
283             '*':
284               - arvados
285               - example_nginx
286               - example_nginx_workbench
287               - example_nginx_workbench2
288       pillars_from_files:
289         # yamllint disable rule:line-length
290         arvados.sls: test/salt/pillar/arvados.sls
291         example_nginx.sls: test/salt/pillar/examples/nginx_passenger.sls
292         example_nginx_workbench.sls: test/salt/pillar/examples/nginx_workbench_configuration.sls
293         example_nginx_workbench2.sls: test/salt/pillar/examples/nginx_workbench2_configuration.sls
294         # yamllint enable rule:line-length
295     verifier:
296       inspec_tests:
297         - path: test/integration/workbench
298         - path: test/integration/workbench2
299   #### shell
300   - name: shell
301     driver:
302       hostname: shell.fixme.example.net
303     provisioner:
304       state_top:
305         base:
306           '*':
307             # We also test repo here. No sense for a whole separate suite
308             - arvados.repo
309             - arvados.shell
310       pillars:
311         top.sls:
312           base:
313             '*':
314               - arvados
315       pillars_from_files:
316         arvados.sls: test/salt/pillar/arvados_dev.sls
317     verifier:
318       inspec_tests:
319         - path: test/integration/shell
320   #### keepstore
321   - name: keepstore
322     driver:
323       hostname: keep0.fixme.example.net
324     provisioner:
325       state_top:
326         base:
327           '*':
328             - arvados.repo
329             - arvados.keepstore
330             # - arvados.clean
331       pillars:
332         top.sls:
333           base:
334             '*':
335               - arvados
336       pillars_from_files:
337         arvados.sls: test/salt/pillar/arvados.sls
338     verifier:
339       inspec_tests:
340         - path: test/integration/repo
341         - path: test/integration/keepstore