Sha256: cda79cc747e66cfe6308891f7fbda36856704695a42cbdc7ef4e698985b5fd56

Contents?: true

Size: 1.07 KB

Versions: 12

Compression:

Stored size: 1.07 KB

Contents

require 'spec_helper'

set :os, :family => 'base'

describe user('root') do
  it { should exist }
end

describe user('root') do
  it { should belong_to_group 'root' }
end

describe user('root') do
  it { should belong_to_primary_group 'root' }
end

describe user('root') do
  it { should have_uid 0 }
end

describe user('root') do
  it { should have_login_shell '/bin/bash' }
end

describe user('root') do
  it { should have_home_directory '/root' }
end

describe user('root') do
  it { should have_authorized_key 'ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH foo@bar.local' }
end

describe user('root') do
  its(:minimum_days_between_password_change) { should  == 0 }
end

describe user('root') do
  its(:maximum_days_between_password_change) { should == 0 }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
serverspec-2.23.1 spec/type/base/user_spec.rb
serverspec-2.23.0 spec/type/base/user_spec.rb
serverspec-2.22.0 spec/type/base/user_spec.rb
serverspec-2.21.1 spec/type/base/user_spec.rb
serverspec-2.21.0 spec/type/base/user_spec.rb
serverspec-2.20.0 spec/type/base/user_spec.rb
serverspec-2.19.0 spec/type/base/user_spec.rb
serverspec-2.18.0 spec/type/base/user_spec.rb
serverspec-2.17.1 spec/type/base/user_spec.rb
serverspec-2.17.0 spec/type/base/user_spec.rb
serverspec-2.16.0 spec/type/base/user_spec.rb
serverspec-2.15.0 spec/type/base/user_spec.rb