Sha256: 370eb68728445613a8c05206dbaa3906bc2ef8e555c36673feb776cae0254968

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Darwin

describe 'Serverspec commands of Darwin 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-0.6.23 spec/darwin/commands_spec.rb