Sha256: 32592d114d7560cd4c82419ed415486566ec40f06a711dbf73c728bad345cff4

Contents?: true

Size: 1.24 KB

Versions: 40

Compression:

Stored size: 1.24 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
  let(:stdout) { "$1$T0aTw9NJ$NdMldLUQ8WqhlEEGToNzl/\n" } 
  its(:encrypted_password) { should eq '$1$T0aTw9NJ$NdMldLUQ8WqhlEEGToNzl/' } 
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

40 entries across 40 versions & 2 rubygems

Version Path
serverspec-2.41.8 spec/type/base/user_spec.rb
serverspec-2.41.7 spec/type/base/user_spec.rb
serverspec-2.41.6 spec/type/base/user_spec.rb
serverspec-2.41.5 spec/type/base/user_spec.rb
serverspec-2.41.4 spec/type/base/user_spec.rb
serverspec-ruby19-2.24.3 spec/type/base/user_spec.rb
serverspec-2.41.3 spec/type/base/user_spec.rb
serverspec-2.41.2 spec/type/base/user_spec.rb
serverspec-2.41.1 spec/type/base/user_spec.rb
serverspec-2.41.0 spec/type/base/user_spec.rb
serverspec-2.40.0 spec/type/base/user_spec.rb
serverspec-2.39.2 spec/type/base/user_spec.rb
serverspec-2.39.1 spec/type/base/user_spec.rb
serverspec-2.39.0 spec/type/base/user_spec.rb
serverspec-2.38.1 spec/type/base/user_spec.rb
serverspec-2.38.0 spec/type/base/user_spec.rb
serverspec-2.37.2 spec/type/base/user_spec.rb
serverspec-2.37.1 spec/type/base/user_spec.rb
serverspec-2.37.0 spec/type/base/user_spec.rb
serverspec-2.36.1 spec/type/base/user_spec.rb