mysql-router/9.3/inspec/control.rb (20 lines of code) (raw):
control 'container' do
impact 0.5
describe podman.containers do
its('status') { should cmp /Up/ }
its('commands') { should cmp /sleep/ }
its('images') { should cmp /mysql-router:9.3/ }
its('names') { should include "mysql-router-9.3" }
end
end
control 'packages' do
impact 0.5
describe package('mysql-community-client') do
it { should be_installed }
its ('version') { should match '9.3.0.*' }
end
describe package('mysql-router-community') do
it { should be_installed }
its ('version') { should match '9.3.0.*' }
end
end