1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- require 'serverspec'
- # Required by serverspec
- set :backend, :exec
- describe package('fastd') do
- it { should be_installed }
- end
- # Ansible seems to have problems to enable a service. Needs investigation
- describe service('fastd') do
- it { should be_running }
- # it { should be_enabled }
- end
- # Detection of running service fails in Debian 7.8. Needs investigation.
- #describe service('rng-tools') do
- # it { should be_running }
- # it { should be_enabled }
- #end
- describe port(10000) do
- it { should be_listening.with('udp6') }
- end
- describe package('rng-tools') do
- it { should be_installed }
- end
- describe file('/etc/default/rng-tools') do
- it { should exist }
- its(:content) { should match /HRNGDEVICE=\/dev\/urandom/ }
- end
- describe user('fastd') do
- it { should exist }
- it { should have_login_shell '/bin/false' }
- end
- describe file('/etc/fastd/test') do
- it { should exist }
- it { should be_directory }
- end
- describe file('/etc/fastd/test/dummy') do
- it { should exist }
- it { should be_directory }
- end
- describe file('/etc/fastd/test/fastd.conf') do
- it { should exist }
- it { should be_file }
- end
- describe file('/etc/fastd/test/secret.conf') do
- it { should exist }
- it { should be_file }
- its(:content) { should contain 'secret "280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e";' }
- end
- describe package('batctl') do
- it {should be_installed }
- end
- describe kernel_module('batman_adv') do
- it { should be_loaded }
- end
- describe package('bird') do
- it { should be_installed }
- end
- describe file('/etc/bird/bird.conf') do
- it { should exist }
- its(:content) { should contain 'router id 10.233.8.1;' }
- end
- describe file('/etc/bird/bird6.conf') do
- it { should exist }
- its(:content) { should contain 'router id 10.233.8.1;' }
- end
- #describe service('bird') do
- # it { should be_running }
- # it { should be_enabled }
- #end
- #describe service('bird6') do
- # it { should be_running }
- # it { should be_enabled }
- #end
- describe interface('meshdummy0') do
- it { should exist }
- end
|