I'm using the following ruby script
describe command('curl -s -k - i %{http_code} https://localhost/xx/xxx') do
its(:stdout) { should match /200/ }
end
But I'm unsure if this script works or not. How can I make sure this script works?
I'm using the following ruby script
describe command('curl -s -k - i %{http_code} https://localhost/xx/xxx') do
its(:stdout) { should match /200/ }
end
But I'm unsure if this script works or not. How can I make sure this script works?
Generally Serverspec is used with Chef via the Test Kitchen integration testing framework (though these days InSpec is more popular). You run your tests using the
kitchen verifycommand.