Fix testing

This commit is contained in:
Javier Bértoli 2018-09-27 07:45:41 -03:00
parent 3ded29687e
commit 768cc62f66
3 changed files with 29 additions and 7 deletions

View File

@ -6,14 +6,21 @@ driver_config:
use_sudo: false use_sudo: false
privileged: true privileged: true
provision_command: mkdir -p /run/sshd provision_command: mkdir -p /run/sshd
run_command: /sbin/init run_command: /lib/systemd/systemd
platforms: platforms:
- name: debian-9 - name: debian-9
- name: ubuntu-17.10 driver_config:
provision_command:
- apt-get install udev net-tools -y
- name: ubuntu-18.04
driver_config:
provision_command:
- apt-get install udev net-tools -y
- name: centos-7 - name: centos-7
driver_config: driver_config:
image: saltstack/centos-7-minimal provision_command:
- yum install udev net-tools -y
provisioner: provisioner:
name: salt_solo name: salt_solo
@ -35,9 +42,9 @@ provisioner:
verifier: verifier:
name: inspec name: inspec
sudo: false sudo: true
# cli, documentation, html, progress, json, json-min, json-rspec, junit reporter:
reporter: cli - cli
inspec_tests: inspec_tests:
- path: test/integration/default - path: test/integration/default

View File

@ -8,4 +8,12 @@ services:
before_install: before_install:
- bundle install - bundle install
script: bundle exec kitchen verify env:
matrix:
- INSTANCE: postfix-debian-9
- INSTANCE: postfix-ubuntu-1804
- INSTANCE: postfix-centos-7
script:
- bundle exec kitchen verify ${INSTANCE}

7
Gemfile Normal file
View File

@ -0,0 +1,7 @@
source "https://rubygems.org"
gem "test-kitchen", '>=1.23.2'
gem "kitchen-docker"
gem "kitchen-salt", ">=0.2.5"
gem "kitchen-inspec"