docs(single_host): fix hostnames and tests
[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 # Make sure the platforms listed below match up with
12 # the `env.matrix` instances defined in `.travis.yml`
13 platforms:
14   ## SALT `tiamat`
15   - name: debian-10-tiamat-py3
16     driver:
17       image: saltimages/salt-tiamat-py3:debian-10
18   - name: debian-9-tiamat-py3
19     driver:
20       image: saltimages/salt-tiamat-py3:debian-9
21   - name: ubuntu-2004-tiamat-py3
22     driver:
23       image: saltimages/salt-tiamat-py3:ubuntu-20.04
24   - name: ubuntu-1804-tiamat-py3
25     driver:
26       image: saltimages/salt-tiamat-py3:ubuntu-18.04
27   - name: centos-7-tiamat-py3
28     driver:
29       image: saltimages/salt-tiamat-py3:centos-7
30
31   ## SALT `master`
32   - name: debian-10-master-py3
33     driver:
34       image: saltimages/salt-master-py3:debian-10
35   - name: ubuntu-2004-master-py3
36     driver:
37       image: saltimages/salt-master-py3:ubuntu-20.04
38   - name: ubuntu-1804-master-py3
39     driver:
40       image: saltimages/salt-master-py3:ubuntu-18.04
41
42   - name: amazonlinux-2-3001-py3
43     driver:
44       image: saltimages/salt-3001-py3:amazonlinux-2
45
46   ## SALT `3001`
47   - name: debian-10-3001-py3
48     driver:
49       image: saltimages/salt-3001-py3:debian-10
50   - name: debian-9-3001-py3
51     driver:
52       image: saltimages/salt-3001-py3:debian-9
53   - name: ubuntu-2004-3001-py3
54     driver:
55       image: saltimages/salt-3001-py3:ubuntu-20.04
56   - name: ubuntu-1804-3001-py3
57     driver:
58       image: saltimages/salt-3001-py3:ubuntu-18.04
59   - name: centos-7-3001-py3
60     driver:
61       image: saltimages/salt-3001-py3:centos-7
62
63   ## SALT `3000.3`
64   - name: debian-10-3000-3-py3
65     driver:
66       image: saltimages/salt-3000.3-py3:debian-10
67   - name: debian-9-3000-3-py3
68     driver:
69       image: saltimages/salt-3000.3-py3:debian-9
70   - name: ubuntu-1804-3000-3-py3
71     driver:
72       image: saltimages/salt-3000.3-py3:ubuntu-18.04
73   - name: centos-7-3000-3-py3
74     driver:
75       image: saltimages/salt-3000.3-py3:centos-7
76   - name: ubuntu-1804-3000-3-py2
77     driver:
78       image: saltimages/salt-3000.3-py2:ubuntu-18.04
79
80 provisioner:
81   name: salt_solo
82   log_level: debug
83   salt_install: none
84   require_chef: false
85   formula: arvados
86   salt_copy_filter:
87     - .kitchen
88     - .git
89
90 verifier:
91   # https://www.inspec.io/
92   name: inspec
93   sudo: true
94   # cli, documentation, html, progress, json, json-min, json-rspec, junit
95   reporter:
96     - cli
97
98 suites:
99   #### api,websocket,keepproxy,keepweb,controller
100   - name: api
101     driver:
102       hostname: fixme.example.net
103     provisioner:
104       state_top:
105         base:
106           '*':
107             - example_single_host_host_entries
108             - example_add_snakeoil_certs
109             - locale
110             - nginx.passenger
111             - postgres
112             - arvados.repo
113             - arvados.api
114             - arvados.websocket
115             # keepproxy complains when using snakeoil certs, so we can't
116             # properly test it here until next version removes this limitation
117             - arvados.keepproxy
118             - arvados.keepweb
119             - arvados.controller
120             - arvados.dispatcher
121       pillars:
122         top.sls:
123           base:
124             '*':
125               - arvados
126               - example_locale
127               - example_postgres
128               - example_nginx
129               - example_nginx_api
130               - example_nginx_websocket
131               - example_nginx_keepweb
132               - example_nginx_controller
133               # keepproxy expects to retrieve a list of services from API, so
134               # installing/testing it without an api server running will fail
135               - example_nginx_keepproxy
136       pillars_from_files:
137         # yamllint disable rule:line-length
138         arvados.sls: test/salt/pillar/arvados.sls
139         example_locale.sls: test/salt/pillar/examples/locale.sls
140         example_postgres.sls: test/salt/pillar/examples/postgresql.sls
141         example_nginx.sls: test/salt/pillar/examples/nginx_passenger.sls
142         example_nginx_api.sls: test/salt/pillar/examples/nginx_api_configuration.sls
143         example_nginx_websocket.sls: test/salt/pillar/examples/nginx_websocket_configuration.sls
144         example_nginx_keepweb.sls: test/salt/pillar/examples/nginx_keepweb_configuration.sls
145         example_nginx_keepproxy.sls: test/salt/pillar/examples/nginx_keepproxy_configuration.sls
146         example_nginx_controller.sls: test/salt/pillar/examples/nginx_controller_configuration.sls
147         # yamllint enable rule:line-length
148       dependencies:
149         - name: example_single_host_host_entries
150           path: test/salt/states
151         - name: example_add_snakeoil_certs
152           path: test/salt/states
153         - name: locale
154           repo: git
155           source: https://github.com/saltstack-formulas/locale-formula.git
156         - name: postgres
157           repo: git
158           source: https://github.com/saltstack-formulas/postgres-formula.git
159         - name: nginx
160           repo: git
161           source: https://github.com/netmanagers/nginx-formula.git
162     verifier:
163       inspec_tests:
164         - path: test/integration/api
165         - path: test/integration/websocket
166         - path: test/integration/keepproxy
167         - path: test/integration/keepweb
168         - path: test/integration/controller
169
170   #### workbench,workbench2
171   - name: workbench
172     driver:
173       hostname: workbench.fixme.example.net
174     provisioner:
175       state_top:
176         base:
177           '*':
178             - example_single_host_host_entries
179             - example_add_snakeoil_certs
180             - nginx.passenger
181             - arvados.repo
182             - arvados.workbench
183             - arvados.workbench2
184       pillars:
185         top.sls:
186           base:
187             '*':
188               - arvados
189               - example_nginx
190               - example_nginx_workbench
191               - example_nginx_workbench2
192       pillars_from_files:
193         # yamllint disable rule:line-length
194         arvados.sls: test/salt/pillar/arvados.sls
195         example_nginx.sls: test/salt/pillar/examples/nginx_passenger.sls
196         example_nginx_workbench.sls: test/salt/pillar/examples/nginx_workbench_configuration.sls
197         example_nginx_workbench2.sls: test/salt/pillar/examples/nginx_workbench2_configuration.sls
198         # yamllint enable rule:line-length
199       dependencies:
200         - name: example_single_host_host_entries
201           path: test/salt/states
202         - name: example_add_snakeoil_certs
203           path: test/salt/states
204         - name: nginx
205           repo: git
206           source: https://github.com/netmanagers/nginx-formula.git
207     verifier:
208       inspec_tests:
209         - path: test/integration/workbench
210         - path: test/integration/workbench2
211
212   #### shell
213   - name: shell
214     driver:
215       hostname: shell.fixme.example.net
216     provisioner:
217       state_top:
218         base:
219           '*':
220             # We also test repo here. No sense for a whole separate suite
221             - arvados.repo
222             - arvados.shell
223       pillars:
224         top.sls:
225           base:
226             '*':
227               - arvados
228       pillars_from_files:
229         arvados.sls: test/salt/pillar/arvados_dev.sls
230     verifier:
231       inspec_tests:
232         - path: test/integration/shell
233
234   #### keepstore
235   - name: keepstore
236     driver:
237       hostname: keep0.fixme.example.net
238     provisioner:
239       state_top:
240         base:
241           '*':
242             - arvados.repo
243             - arvados.keepstore
244             # - arvados.clean
245       pillars:
246         top.sls:
247           base:
248             '*':
249               - arvados
250       pillars_from_files:
251         arvados.sls: test/salt/pillar/arvados.sls
252     verifier:
253       inspec_tests:
254         - path: test/integration/repo
255         - path: test/integration/keepstore