Skip to content

Instantly share code, notes, and snippets.

---
driver:
name: docker
platforms:
- name: ubuntu-14.04
- name: ubuntu-16.04
- name: centos-7.1
- name: centos-7.2
sudo apt-get install gem
sudo gem install test-kitchen kitchen-docker kitchen-ansible
---
- hosts: all
roles:
- sample-role
require 'serverspec'
set :backend, :exec
describe file('/FILE_THAT_IS_CREATED_BY_THE_ROLE_UNDER_TEST.txt') do
it { should exist }
end