metasploitable3/chef/cookbooks/docker/test/integration/installation_package/inspec/assert_functioning_spec.rb

11 lines
269 B
Ruby

if os[:name] == 'amazon'
describe command('/usr/bin/docker --version') do
its(:exit_status) { should eq 0 }
end
else
describe command('/usr/bin/docker --version') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match(/18.06.0/) }
end
end