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 'spec_helper' | |
describe 'techtalk::default' do | |
context 'When applying cookbooks on an Ubuntu instance' do | |
let(:chef_run) do | |
runner = ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '16.04') | |
runner.converge(described_recipe) | |
end | |
it 'install docker' do |
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
describe service('docker') do | |
it { should be_running } | |
end | |
describe command('docker version') do | |
its(:stdout) { should match(/Client/) } | |
its(:stdout) { should match(/Server/) } | |
end | |
describe port(80) do |
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 | |
use_sudo: false | |
privileged: true | |
provisioner: | |
name: chef_solo | |
always_update_cookbooks: true | |
verifier: |
NewerOlder