SuperTux88's Diaspora Saltstack Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324
  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