This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'serverspec' | |
| set :backend, :exec | |
| describe file('/FILE_THAT_IS_CREATED_BY_THE_ROLE_UNDER_TEST.txt') do | |
| it { should exist } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: all | |
| roles: | |
| - sample-role |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install gem | |
| sudo gem install test-kitchen kitchen-docker kitchen-ansible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| driver: | |
| name: docker | |
| platforms: | |
| - name: ubuntu-14.04 | |
| - name: ubuntu-16.04 | |
| - name: centos-7.1 | |
| - name: centos-7.2 |