
describe command('/usr/bin/docker --version') do
  its(:exit_status) { should eq 0 }
  its(:stdout) { should match(/18.03.0/) }
end

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.03.0/) }
  end
end

Update package specs to pass on Amazon Linux
Update package specs to pass on Amazon Linux

The version is updated all the time here so we can't rely on anything in the tests

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
