test.rb 1.4 KB

12345678910111213141516171819202122232425
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. if !Rails.env.production?
  3. Zammad::Application.routes.draw do
  4. get '/tests_:name', to: 'tests#show'
  5. match '/tests/wait/:sec', to: 'tests#wait', via: :get
  6. match '/tests/raised_exception', to: 'tests#error_raised_exception', via: :get
  7. # user agent tests
  8. match 'test/get/:sec', to: 'user_agent_test#get', via: %i[get options]
  9. match 'test/get_accepted/:sec', to: 'user_agent_test#accepted', via: :get
  10. match 'test/redirect', to: 'user_agent_test#redirect', via: :get
  11. match 'test/post/:sec', to: 'user_agent_test#post', via: :post
  12. match 'test/put/:sec', to: 'user_agent_test#put', via: :put
  13. match 'test/delete/:sec', to: 'user_agent_test#delete', via: :delete
  14. # user agent tests with basic auth
  15. match 'test_basic_auth/get/:sec', to: 'user_agent_test_basic_auth#get', via: %i[get options]
  16. match 'test_basic_auth/post/:sec', to: 'user_agent_test_basic_auth#post', via: :post
  17. match 'test_basic_auth/put/:sec', to: 'user_agent_test_basic_auth#put', via: :put
  18. match 'test_basic_auth/delete/:sec', to: 'user_agent_test_basic_auth#delete', via: :delete
  19. match 'test_basic_auth/redirect', to: 'user_agent_test_basic_auth#redirect', via: :get
  20. end
  21. end