Sha256: 82615d3353908a4478cae3e76db3c5d4c3bbb1db67ac389de1dc5d2c2e462d24

Contents?: true

Size: 867 Bytes

Versions: 1

Compression:

Stored size: 867 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'

  # Test for case of not registered in the service, but running as process.
  it_behaves_like 'support be_running matcher', 'udevd'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-0.0.6 spec/redhat/matchers_spec.rb