2016-05-10 17:23:11 +00:00
|
|
|
---
|
|
|
|
driver:
|
|
|
|
name: vagrant
|
|
|
|
|
|
|
|
provisioner:
|
|
|
|
name: chef_solo
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
name: inspec
|
|
|
|
sudo: true
|
|
|
|
|
2019-05-15 22:46:09 +00:00
|
|
|
lifecycle:
|
|
|
|
pre_converge:
|
2019-09-12 00:00:14 +00:00
|
|
|
- local: gem build inspec-core.gemspec --output test/kitchen/cookbooks/os_prepare/files/inspec-core-local.gem
|
2019-05-15 22:46:09 +00:00
|
|
|
|
2016-05-10 17:23:11 +00:00
|
|
|
platforms:
|
2020-01-17 00:33:50 +00:00
|
|
|
- name: amazonlinux
|
|
|
|
- name: amazonlinux-2
|
2019-02-14 00:07:16 +00:00
|
|
|
- name: centos-6
|
|
|
|
- name: centos-7
|
2019-12-17 21:10:42 +00:00
|
|
|
- name: centos-8
|
2019-02-14 00:07:16 +00:00
|
|
|
- name: debian-8
|
|
|
|
- name: debian-9
|
2019-12-17 21:10:42 +00:00
|
|
|
- name: debian-10
|
|
|
|
- name: fedora-latest
|
|
|
|
- name: freebsd-12
|
2019-05-15 21:38:20 +00:00
|
|
|
- name: opensuseleap-15
|
2019-02-14 00:07:16 +00:00
|
|
|
- name: ubuntu-16.04
|
|
|
|
- name: ubuntu-18.04
|
2016-05-10 17:23:11 +00:00
|
|
|
|
|
|
|
suites:
|
2020-01-17 00:33:50 +00:00
|
|
|
- name: resources-core
|
|
|
|
run_list:
|
|
|
|
- recipe[build-essential]
|
|
|
|
- recipe[os_prepare]
|
|
|
|
- recipe[audit]
|
|
|
|
verifier:
|
|
|
|
name: inspec
|
|
|
|
inspec_tests:
|
|
|
|
- test/kitchen/policies/find_files
|
|
|
|
attributes:
|
|
|
|
audit:
|
|
|
|
attributes:
|
|
|
|
audit_attribute: 'Attribute Override!'
|
|
|
|
insecure: true
|
|
|
|
reporter: ['json-file','chef-automate']
|
|
|
|
fetcher: 'chef-automate'
|
|
|
|
json_file:
|
|
|
|
location: /tmp/json_export.json
|
|
|
|
profiles:
|
|
|
|
- name: integration
|
|
|
|
url: https://github.com/inspec/inspec-integration-profile/archive/master.zip
|
|
|
|
osprepare:
|
|
|
|
docker: true
|
|
|
|
application: false
|
|
|
|
|
|
|
|
- name: resources-database
|
|
|
|
- name: resources-unix
|
|
|
|
- name: resources-windows
|