http: remove deprecated reset method
[unicorn.git] / t / t0015-configurator-internals.sh
blob4e3acbe9a1d08cd1c9a9c7fe75484be697cf8849
1 #!/bin/sh
2 . ./test-lib.sh
3 t_plan 4 "configurator internals tests (from FAQ)"
5 t_begin "setup and start" && {
6 unicorn_setup
7 cat >> $unicorn_config <<EOF
8 HttpRequest::DEFAULTS["rack.url_scheme"] = "https"
9 Configurator::DEFAULTS[:logger].formatter = Logger::Formatter.new
10 EOF
11 unicorn -D -c $unicorn_config env.ru
12 unicorn_wait_start
15 t_begin "single request" && {
16 curl -sSfv http://$listen/ | grep '"rack.url_scheme"=>"https"'
19 t_begin "killing succeeds" && {
20 kill $unicorn_pid
23 t_begin "no errors" && check_stderr
25 t_done