SuperTux88's Diaspora Saltstack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
577B

  1. # frozen_string_literal: true
  2. control 'diaspora webserver' do
  3. impact 0.5
  4. title 'should be working'
  5. https_header = { 'X-Forwarded-Proto': 'https' }
  6. 30.times do
  7. break if port(3000).listening?
  8. puts "Port 3000 isn't ready, retrying.."
  9. sleep 1
  10. end
  11. describe http('http://localhost:3000', headers: https_header) do
  12. its('status') { should cmp 302 }
  13. its('headers.Location') { should cmp 'https://localhost:3000/podmin' }
  14. end
  15. describe http('http://localhost:3000/podmin', headers: https_header) do
  16. its('status') { should cmp 200 }
  17. end
  18. end