unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH 1/2] remove SSL tests
@ 2014-02-19 21:07 Eric Wong
  2014-02-19 21:07 ` [PATCH 2/2] script/isolate_for_tests: bump to latest versions Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2014-02-19 21:07 UTC (permalink / raw)
  To: mongrel-unicorn

This feature is on hold for now, since it never really took
off and kgio-monkey is more-or-less abandoned.  I'm not looking
forward to supporting OpenSSL unless there's interest.

This was mainly intended as an experiment to deal with a bad
hardware/firmware situation on a LAN I have.  It allowed SSL
to abort on corrupt packets.
---
 script/isolate_for_tests      |  1 -
 t/.gitignore                  |  1 -
 t/GNUmakefile                 |  6 +---
 t/sslgen.sh                   | 71 -------------------------------------------
 t/t0600-https-server-basic.sh | 48 -----------------------------
 5 files changed, 1 insertion(+), 126 deletions(-)
 delete mode 100755 t/sslgen.sh
 delete mode 100755 t/t0600-https-server-basic.sh

diff --git a/script/isolate_for_tests b/script/isolate_for_tests
index 63df48e..6f0a9fc 100755
--- a/script/isolate_for_tests
+++ b/script/isolate_for_tests
@@ -17,7 +17,6 @@ opts = {
 pid = fork do
   Isolate.now!(opts) do
     gem 'raindrops', '0.12.0'
-    gem 'kgio-monkey', '0.4.0'
     gem 'kgio', '2.8.1'
     gem 'rack', '1.5.2'
   end
diff --git a/t/.gitignore b/t/.gitignore
index 1ba7e52..2312321 100644
--- a/t/.gitignore
+++ b/t/.gitignore
@@ -2,4 +2,3 @@
 /.dep+*
 /*.crt
 /*.key
-/ssl-stamp
diff --git a/t/GNUmakefile b/t/GNUmakefile
index bac50a6..8f2668c 100644
--- a/t/GNUmakefile
+++ b/t/GNUmakefile
@@ -45,11 +45,7 @@ random_blob:
 	dd if=/dev/urandom bs=1M count=30 of=$@.$(pid)
 	mv $@.$(pid) $@
 
-ssl-stamp:
-	./sslgen.sh
-	> $@
-
-$(T): random_blob ssl-stamp
+$(T): random_blob
 
 dependencies := socat curl
 deps := $(addprefix .dep+,$(dependencies))
diff --git a/t/sslgen.sh b/t/sslgen.sh
deleted file mode 100755
index e37d966..0000000
--- a/t/sslgen.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-set -e
-
-lock=$0.lock
-while ! mkdir $lock 2>/dev/null
-do
-	echo >&2 "PID=$$ waiting for $lock"
-	sleep 1
-done
-pid=$$
-trap 'if test $$ -eq $pid; then rmdir $lock; fi' EXIT
-
-certinfo() {
-	echo US
-	echo Hell
-	echo A Very Special Place
-	echo Monkeys
-	echo Poo-Flingers
-	echo 127.0.0.1
-	echo kgio@bogomips.org
-}
-
-certinfo2() {
-	certinfo
-	echo
-	echo
-}
-
-ca_certinfo () {
-	echo US
-	echo Hell
-	echo An Even More Special Place
-	echo Deranged Monkeys
-	echo Poo-Hurlers
-	echo 127.6.6.6
-	echo unicorn@bogomips.org
-}
-
-openssl genrsa -out ca.key 1024
-ca_certinfo | openssl req -new -x509 -days 666 -key ca.key -out ca.crt
-
-openssl genrsa -out bad-ca.key 1024
-ca_certinfo | openssl req -new -x509 -days 666 -key bad-ca.key -out bad-ca.crt
-
-openssl genrsa -out server.key 1024
-certinfo2 | openssl req -new -key server.key -out server.csr
-
-openssl x509 -req -days 666 \
-	-in server.csr -CA ca.crt -CAkey ca.key -set_serial 1 -out server.crt
-n=2
-mk_client_cert () {
-	CLIENT=$1
-	openssl genrsa -out $CLIENT.key 1024
-	certinfo2 | openssl req -new -key $CLIENT.key -out $CLIENT.csr
-
-	openssl x509 -req -days 666 \
-		-in $CLIENT.csr -CA $CA.crt -CAkey $CA.key -set_serial $n \
-		-out $CLIENT.crt
-	rm -f $CLIENT.csr
-	n=$(($n + 1))
-}
-
-CA=ca
-mk_client_cert client1
-mk_client_cert client2
-
-CA=bad-ca mk_client_cert bad-client
-
-rm -f server.csr
-
-echo OK
diff --git a/t/t0600-https-server-basic.sh b/t/t0600-https-server-basic.sh
deleted file mode 100755
index 5dd0d65..0000000
--- a/t/t0600-https-server-basic.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/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
-- 
1.9.0.rc3.13.gda73b5f

_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-19 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19 21:07 [PATCH 1/2] remove SSL tests Eric Wong
2014-02-19 21:07 ` [PATCH 2/2] script/isolate_for_tests: bump to latest versions Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).