Sha256: 2f2008bb304b8eb5f5d441c5e0a49f2967bb8fcb9d21d773b0edddec4bd277c7
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
require 'spec_helper' describe 'Serverspec matchers of Red Hat family', :os => :redhat do it_behaves_like 'support be_enabled matcher', 'sshd' it_behaves_like 'support be_installed matcher', 'openssh' it_behaves_like 'support be_running matcher', 'sshd' it_behaves_like 'support be_listening matcher', 22 it_behaves_like 'support be_file matcher', '/etc/ssh/sshd_config' it_behaves_like 'support be_directory matcher', '/etc/ssh' it_behaves_like 'support contain matcher', '/etc/ssh/sshd_config', 'This is the sshd server system-wide configuration file' it_behaves_like 'support be_user matcher', 'root' it_behaves_like 'support be_group matcher', 'wheel' # Test for case of not registered in the service, but running as process. it_behaves_like 'support be_running matcher', 'udevd' it_behaves_like 'support be_mode matcher', '/etc/passwd', 644 it_behaves_like 'support be_owned_by matcher', '/etc/passwd', 'root' it_behaves_like 'support be_grouped_into matcher', '/etc/passwd', 'root' it_behaves_like 'support have_cron_entry matcher', 'cron', '* * * * * /usr/bin/foo' it_behaves_like 'support have_cron_entry.with_user matcher', 'cron', '* * * * * /usr/bin/foo', 'root' it_behaves_like 'support be_linked_to matcher', '/etc/pam.d/system-auth', '/etc/pam.d/system-auth-ac' it_behaves_like 'support belong_to_group matcher', 'root', 'root' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.0.19 | spec/redhat/matchers_spec.rb |
serverspec-0.0.18 | spec/redhat/matchers_spec.rb |