bird_spec.rb 692 B

12345678910111213141516171819202122232425262728293031
  1. require 'serverspec'
  2. describe package('bird') do
  3. it { should be_installed }
  4. end
  5. describe file('/etc/bird/bird.conf') do
  6. it { should exist }
  7. its(:content) { should contain 'router id 10.42.0.1;' }
  8. end
  9. describe file('/etc/bird/bird6.conf') do
  10. it { should exist }
  11. its(:content) { should contain 'router id 10.42.0.1;' }
  12. end
  13. # At least on Ubuntu doesn't open a port. Is this a problem?
  14. #describe port(179) do
  15. # it { should be_listening.with('tcp') }
  16. # it { should be_listening.with('tcp6') }
  17. #end
  18. #describe service('bird') do
  19. # it { should be_running }
  20. # it { should be_enabled }
  21. #end
  22. #describe service('bird6') do
  23. # it { should be_running }
  24. # it { should be_enabled }
  25. #end