test_spec.rb 789 B

12345678910111213141516171819
  1. require 'serverspec'
  2. # Required by serverspec
  3. set :backend, :exec
  4. describe user('bbreezer') do
  5. it { should_not exist }
  6. end
  7. describe user('sartois') do
  8. it { should exist }
  9. it { should belong_to_group 'group2' }
  10. it { should belong_to_group 'group1' }
  11. it { should belong_to_group 'group3' }
  12. it { have_login_shell 'bin/bash' }
  13. it { should have_authorized_key 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCun7TGUhQ1JoWkdtroI4ufEnf/cPWn5mIitu8+eTtMK/yS71CuEhf8f6IkKMuSd5L9PHiIAYd0o87pJ952sUsDdLpk7NPhxVod7ADa7uC+FnFrJ0tgyUlPpe0XC77H1T9abpQ2fAOsC5F+fuWQSBxJyczS6tOIz7b25SUBSTA5ObM4bP0LEE2CJ4uegNpmPn73LAhYgRU43VCH4+w7QmNUHdhkcuVIVNiK2Kt7o3KXP8OjbrdQLCdG2aCMEITrTljHPazhbAgkMnEKLY28fWJpJTIzRCSdEXhdsJMS/nzszPCXvJiol6xOvbcYooYg9c9auMQJUn7EpR062VmlPXuP bbreezer1' }
  14. #system : true
  15. end