Sha256: 5f003e65aef16c6e9a1950fee83e43b2708afec088af6477ec5852514dd530a1
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' include Serverspec::Helper::Gentoo describe 'Serverspec commands of Gentoo family' do it_behaves_like 'support command check_user', 'root' it_behaves_like 'support command check_user', 'wheel' it_behaves_like 'support command check_running_under_supervisor', 'httpd' it_behaves_like 'support command check_monitored_by_monit', 'unicorn' it_behaves_like 'support command check_process', 'httpd' it_behaves_like 'support command check_belonging_group', 'root', 'wheel' it_behaves_like 'support command check_uid', 'root', 0 it_behaves_like 'support command check_login_shell', 'root', '/bin/bash' it_behaves_like 'support command check_home_directory', 'root', '/root' it_behaves_like 'support command check_authorized_key' end describe 'check_enabled' do subject { commands.check_enabled('httpd') } it { should eq "rc-update show | grep -- \\^\\\\s\\*httpd\\\\s\\*\\|\\\\s\\*\\\\\\(boot\\\\\\|default\\\\\\)" } end describe 'check_running' do subject { commands.check_running('httpd') } it { should eq '/etc/init.d/httpd status' } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.6.23 | spec/gentoo/commands_spec.rb |