Merge pull request #76 from netmanagers/master

Fix testing
This commit is contained in:
N 2018-09-28 00:16:06 +01:00 committed by GitHub
commit 4a3a94fb39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 7 deletions

View File

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

View File

@ -8,4 +8,12 @@ services:
before_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"