Skip to content

Instantly share code, notes, and snippets.

@nandotorres
Created December 10, 2016 19:37
Show Gist options
  • Save nandotorres/dc2ff9508bbc794008ce018cc3f4f7a3 to your computer and use it in GitHub Desktop.
Save nandotorres/dc2ff9508bbc794008ce018cc3f4f7a3 to your computer and use it in GitHub Desktop.
Inspec acceptance tests to be tested in a Kitchen cicle
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