# wait for squid to be started
sleep 15

describe port(3128) do
  it { should be_listening }
end

squid_syntax_check = 'sudo squid -k parse'
squid_syntax_check = 'sudo squid3 -k parse' if os[:family] == 'debian'

describe command(squid_syntax_check) do
  its('exit_status') { should eq 0 }
  its('stderr') { should_not match /WARNING/ }
end

# wait for squid to be started
sleep 15

describe port(3128) do
  it { should be_listening }
end

# This would be great, but it needs a lot more logic to work properly
# squid_syntax_check = 'sudo squid -k parse'
# squid_syntax_check = 'sudo squid3 -k parse' if os[:family] == 'debian'
#
# describe command(squid_syntax_check) do
#   its('exit_status') { should eq 0 }
#   its('stderr') { should_not match /WARNING/ }
# end

Comment out the syntax test for now
Comment out the syntax test for now

This isn't going to work since there's a million binary names to work
out

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