From 3fda77dbe8038d1523bb26dccaa8f52160808ea7 Mon Sep 17 00:00:00 2001 From: Benjamin Pollack Date: Thu, 3 Mar 2016 12:45:03 -0500 Subject: [PATCH] Add an SNI-based http.client test --- basis/http/client/client-tests.factor | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/basis/http/client/client-tests.factor b/basis/http/client/client-tests.factor index 8e59ae4fd4..9f3587507c 100644 --- a/basis/http/client/client-tests.factor +++ b/basis/http/client/client-tests.factor @@ -1,4 +1,4 @@ -USING: accessors http.client http.client.private http +USING: accessors io.sockets.secure http.client http.client.private http io.streams.string kernel namespaces sequences tools.test urls ; IN: http.client.tests @@ -42,6 +42,11 @@ IN: http.client.tests { "DELETE" } [ "http://arc.com" method>> ] unit-test { "TRACE" } [ "http://concatenative.org" method>> ] unit-test { "OPTIONS" } [ "http://factorcode.org" method>> ] unit-test +{ t } [ + "https://alice.sni.velox.ch" http-get nip + [ "Great!" swap subseq? ] + [ "TLS SNI Test Site: alice.sni.velox.ch" swap subseq? ] bi and +] unit-test { t } [ {