Created
December 10, 2016 19:37
-
-
Save nandotorres/dc2ff9508bbc794008ce018cc3f4f7a3 to your computer and use it in GitHub Desktop.
Inspec acceptance tests to be tested in a Kitchen cicle
This file contains 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 | |
it { should be_listening } | |
end | |
describe command('curl -sS http://localhost:80/') do | |
its(:stdout) { should match(/Todo List/) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment