cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:iac:serverspec:connection_spec.html



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



middleware/iac/serverspec/connection_spec.html.txt ยท Last modified: 2017/08/05 by admin

Page Tools