This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.kitchen.yml
66 lines (61 loc) · 2.05 KB
/
.kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
_script: &PACKAGE_APP_SCRIPT
driver:
# Package the app for the test. Extra checks are necessary because we _must_ use GNU Tar for extracting in Windows.
pre_create_command: |
echo '## Packing test app...'
case "$(uname -s)" in
Darwin)
echo '## Mac detected, using gtar'
command -v gtar >/dev/null 2>&1 || { echo "You need to install gnu-tar to test app_upgrade. 'brew install gnu-tar'" >&2; exit 1; }
gtar -czvf test/files/pkg-app.spl -C test/files test_app
;;
*)
echo '## Using tar'
tar -czvf test/files/pkg-app.spl -C test/files test_app
;;
esac
driver:
name: vagrant
provisioner:
name: chef_zero
require_chef_omnibus: 12.16
data_path: test/files
platforms:
- name: centos-6.8
- name: centos-7.2
- name: debian-8.4
- name: windows
driver:
box: mwrock/Windows2012R2
gui: false # The default is true because consumers of this box generally use the GUI.
suites:
- name: install
run_list:
- recipe[cerner_splunk_ingredient_test::splunk]
- name: uninstall
run_list:
- recipe[cerner_splunk_ingredient_test::splunk]
- recipe[cerner_splunk_ingredient_test::uninstall_splunk]
- name: install_forwarder
<<: *PACKAGE_APP_SCRIPT
run_list:
- recipe[cerner_splunk_ingredient_test::universal_forwarder]
- name: uninstall_forwarder
run_list:
- recipe[cerner_splunk_ingredient_test::universal_forwarder]
- recipe[cerner_splunk_ingredient_test::uninstall_universal_forwarder]
- name: archive_install
run_list:
- recipe[cerner_splunk_ingredient_test::splunk_archive]
- name: archive_uninstall
run_list:
- recipe[cerner_splunk_ingredient_test::splunk_archive]
- recipe[cerner_splunk_ingredient_test::uninstall_splunk_archive]
- name: app_upgrade
<<: *PACKAGE_APP_SCRIPT
run_list:
- recipe[cerner_splunk_ingredient_test::splunk]
- recipe[cerner_splunk_ingredient_test::upgrade_splunk_app]
verifier:
name: inspec