Sha256: 08447b0e988e0bb063a6be3c034d57cff13f5f2be4319469b68f09ccdb193b64
Contents?: true
Size: 1.3 KB
Versions: 6
Compression:
Stored size: 1.3 KB
Contents
require 'spec_helper' include Specinfra::Helper::RedHat describe user('root') do it { should exist } end describe user('invalid-user') do it { should_not exist } end describe user('root') do it { should belong_to_group 'root' } end describe user('root') do it { should_not belong_to_group 'invalid-group' } end describe user('root') do it { should have_uid 0 } end describe user('root') do it { should_not have_uid 'invalid-uid' } end describe user('root') do it { should have_login_shell '/bin/bash' } end describe user('root') do it { should_not have_login_shell 'invalid-login-shell' } end describe user('root') do it { should have_home_directory '/root' } end describe user('root') do it { should_not have_home_directory 'invalid-home-directory' } end describe user('root') do it { should have_authorized_key 'ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH foo@bar.local' } end describe user('root') do it { should_not have_authorized_key 'invalid-key' } end
Version data entries
6 entries across 6 versions & 1 rubygems