test_spec.rb 429 B

123456789101112131415161718192021
  1. require 'serverspec'
  2. # Required by serverspec
  3. set :backend, :exec
  4. describe file('/usr/local/bin/alfred-json') do
  5. it { should exist }
  6. it { should be_executable }
  7. end
  8. describe cron do {
  9. it { should should have_entry '* * * * * /srv/ffmap-backend/backend.py -d /srv/ffmap-data -p 14' }
  10. }
  11. describe port(80) do
  12. it { should be_listening.with('tcp6') }
  13. end
  14. describe port(443) do
  15. it { should be_listeing.with('tcp6') }
  16. end