Sha256: c2a9c773a88f9fe41cbfacb1a7fd2308a725481a9327abeb21d341acf1456a66

Contents?: true

Size: 734 Bytes

Versions: 3

Compression:

Stored size: 734 Bytes

Contents

require 'spec_helper'

describe 'Serverspec matchers of Red Hat family', :os => :redhat do
  let(:test_server_host) { 'serverspec-redhat-host' }

  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'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
serverspec-0.0.5 spec/redhat/matchers_spec.rb
serverspec-0.0.4 spec/redhat/matchers_spec.rb
serverspec-0.0.3 spec/redhat/matchers_spec.rb