coolio+xepoll_thread*: use shutdown() for keepalive timeout
[rainbows.git] / t / t9002-server-token.sh
blob914a7178d8ba600779bd9dbbf1f91a85cc150dce
1 #!/bin/sh
2 . ./test-lib.sh
3 case $model in
4 Base) ;;
5 *) exit 0 ;; # don't waste cycles on trivial stuff :P
6 esac
8 t_plan 6 "ServerToken Rack middleware test for $model"
10 t_begin "configure and start" && {
11 rtmpfiles curl_out curl_err
12 rainbows_setup
13 rainbows -D t9002.ru -c $unicorn_config
14 rainbows_wait_start
17 t_begin "hit with curl" && {
18 curl -sSfiI http://$listen/ > $curl_out 2> $curl_err
21 t_begin "kill server" && {
22 kill $rainbows_pid
25 t_begin "no errors in curl stderr" && {
26 test ! -s $curl_err
29 t_begin "no errors in Rainbows! stderr" && {
30 check_stderr
33 t_begin "Server: token added" && {
34 grep Server: $curl_out
37 t_done