test_spec.rb 932 B

1234567891011121314151617181920212223242526272829303132
  1. require 'serverspec'
  2. describe cron do
  3. it { should have_entry '*/5 * * * * wget -q -O /etc/fastd/fastd-blacklist.json https://raw.githubusercontent.com/ffruhr/fastdbl/master/fastd-blacklist.json' }
  4. end
  5. describe user('fritz') do
  6. it { should exist }
  7. it { should have_authorized_key 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCfO2TgNUMcY9K8N9SsAU/LfVtlloO50n6NRxDER8dCi+t1ydalTbNdEj52cIjqvIEn458cCxdCwsNYeWqSVggX7vT7a+DgYZlJcRteHcb0lPYZplPuiZe3AUE9rHH48W4xEopv7J8Wz6hLng6Gb0TQx9HeVybQ5dn6CGyt8sOCKQ== Fritz Brinkhoffs' }
  8. end
  9. describe port(67) do
  10. it { should be_listening.with('udp') }
  11. end
  12. describe process('unbound') do
  13. it { should be_running }
  14. end
  15. describe port(53) do
  16. it { should be_listening.with('udp') }
  17. it { should be_listening.with('udp6') }
  18. end
  19. describe process('ntpd') do
  20. it { should be_running }
  21. end
  22. describe port(123) do
  23. it { should be_listening.with('udp') }
  24. it { should be_listening.with('udp') }
  25. end