Sha256: 97582e57ac744863d10a74929e33582bc2d9f465c586daed2700ef103cf6ca7a

Contents?: true

Size: 849 Bytes

Versions: 36

Compression:

Stored size: 849 Bytes

Contents

#!/bin/sh
. ./test-lib.sh
t_plan 7 "simple HTTPS connection tests"

t_begin "setup and start" && {
	rtmpfiles curl_err
	unicorn_setup
cat > $unicorn_config <<EOF
ssl do
  listen "$listen"
  ssl_certificate "server.crt"
  ssl_certificate_key "server.key"
end
pid "$pid"
stderr_path "$r_err"
stdout_path "$r_out"
EOF
	unicorn -D -c $unicorn_config env.ru
	unicorn_wait_start
}

t_begin "single request" && {
	curl -sSfv --cacert ca.crt https://$listen/
}

t_begin "check stderr has no errors" && {
	check_stderr
}

t_begin "multiple requests" && {
	curl -sSfv --no-keepalive --cacert ca.crt \
		https://$listen/ https://$listen/ 2>> $curl_err >> $tmp
		dbgcat curl_err
}

t_begin "check stderr has no errors" && {
	check_stderr
}

t_begin "killing succeeds" && {
	kill $unicorn_pid
}

t_begin "check stderr has no errors" && {
	check_stderr
}

t_done

Version data entries

36 entries across 36 versions & 7 rubygems

Version Path
unicorn-4.8.2 t/t0600-https-server-basic.sh
unicorn-4.8.1.1.g9b565 t/t0600-https-server-basic.sh
unicorn-4.8.1 t/t0600-https-server-basic.sh
unicorn-4.8.0.1.g10a2 t/t0600-https-server-basic.sh
unicorn-heroku-wait-4.8.0.2 t/t0600-https-server-basic.sh
unicorn-heroku-wait-4.8.0.1.g0ed2.dirty t/t0600-https-server-basic.sh
unicorn-4.8.0 t/t0600-https-server-basic.sh
unicorn-4.8.0.pre1 t/t0600-https-server-basic.sh
unicorn-academia-4.7.0.1 t/t0600-https-server-basic.sh
unicorn-4.7.0 t/t0600-https-server-basic.sh
unicorn-4.6.3 t/t0600-https-server-basic.sh
unicorn-4.6.2 t/t0600-https-server-basic.sh
boourns-unicorn-4.4.9 t/t0600-https-server-basic.sh
unicorn-4.6.1 t/t0600-https-server-basic.sh
unicorn-4.6.0 t/t0600-https-server-basic.sh
unicorn-4.6.0pre1 t/t0600-https-server-basic.sh
unicorn-4.5.0 t/t0600-https-server-basic.sh
unicorn-4.5.0pre1 t/t0600-https-server-basic.sh
boourns-unicorn-4.4.8 t/t0600-https-server-basic.sh
boourns-unicorn-4.4.6 t/t0600-https-server-basic.sh