假设我对inspec.io
进行了以下测试,
control "Check for services" do
impact 1.0
title "Check mariadb service is running"
describe service("mariadb") do
it { should be_installed }
it { should be_running }
end
end
我能否使其失败并在第一个条件it { should be_installed }
失败后退出?