network_spec.rb 612 B

1234567891011121314151617181920212223242526272829303132333435
  1. require 'serverspec'
  2. describe interface('meshdummy0') do
  3. it { should exist }
  4. end
  5. describe interface('alfred0') do
  6. it { should exist }
  7. end
  8. describe interface('bat0') do
  9. it { should exist }
  10. end
  11. describe interface('eth0') do
  12. it { should exist }
  13. end
  14. describe package('bird') do
  15. it { should be_installed }
  16. end
  17. # At least on Ubuntu doesn't open a port. Is this a problem?
  18. describe port(179) do
  19. it { should be_listening.with('tcp') }
  20. it { should be_listening.with('tcp6') }
  21. end
  22. describe process('bird') do
  23. it { should be_running }
  24. end
  25. describe process('bird6') do
  26. it { should be_running }
  27. end