Serverspec

Serverspec : Connection Check

sample1_spec.rb

describe command("which nc") do
  its(:exit_status) { should eq 0 }
end

describe command("curl http://xx.xx.xx.xx/helthcheck") do
  its(:stdout) { should contain('OK') }
end