r2778 - in trunk/varnish-cache/bin/varnishtest: . tests

tfheen at projects.linpro.no tfheen at projects.linpro.no
Mon Jun 23 15:23:47 CEST 2008


Author: tfheen
Date: 2008-06-23 15:23:45 +0200 (Mon, 23 Jun 2008)
New Revision: 2778

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc
   trunk/varnish-cache/bin/varnishtest/vtc_server.c
Log:
Be explicit about listening to localhost


Modified: trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "basic default HTTP transactions"
 
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
 	rxreq
 	txresp 
 }

Modified: trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "basic default HTTP transactions with expect"
 
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
 	rxreq
 	expect req.request == GET
 	expect req.proto == HTTP/1.1

Modified: trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "basic default HTTP transactions with expect and options"
 
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
 	rxreq
 	expect req.request == PUT
 	expect req.proto == HTTP/1.0

Modified: trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "dual independent HTTP transactions"
 
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
 	rxreq
 	expect req.request == PUT
 	expect req.proto == HTTP/1.0
@@ -10,7 +10,7 @@
 	txresp -proto HTTP/1.2 -status 201 -msg Foo
 }
 
-server s2 -listen :9081 {
+server s2 -listen localhost:9081 {
 	rxreq
 	expect req.request == GET
 	expect req.proto == HTTP/1.1

Modified: trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "dual shared server HTTP transactions"
 
-server s1 -listen :9080 -repeat 2 {
+server s1 -listen localhost:9080 -repeat 2 {
 	rxreq
 	expect req.request == PUT
 	expect req.proto == HTTP/1.0

Modified: trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "dual shared client HTTP transactions"
 
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
 	rxreq
 	expect req.request == PUT
 	expect req.proto == HTTP/1.0
@@ -10,7 +10,7 @@
 	txresp -proto HTTP/1.2 -status 201 -msg Foo
 }
 
-server s2 -listen :9081 {
+server s2 -listen localhost:9081 {
 	rxreq
 	expect req.request == GET
 	expect req.proto == HTTP/1.1

Modified: trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "bidirectional message bodies"
 
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
 	rxreq
 	expect req.request == PUT
 	expect req.proto == HTTP/1.0

Modified: trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc	2008-06-23 13:23:45 UTC (rev 2778)
@@ -2,7 +2,7 @@
 
 test "TCP reuse"
 
-server s1 -listen :9080 {
+server s1 -listen localhost:9080 {
 	rxreq
 	expect req.url == "/1"
 	txresp -hdr "Content-Length: 10" -body "123456789\n"

Modified: trunk/varnish-cache/bin/varnishtest/vtc_server.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_server.c	2008-06-22 22:00:02 UTC (rev 2777)
+++ trunk/varnish-cache/bin/varnishtest/vtc_server.c	2008-06-23 13:23:45 UTC (rev 2778)
@@ -120,7 +120,7 @@
 		vtc_log(s->vl, 0, "Server name must start with 's'");
 		exit (1);
 	}
-	s->listen = ":9080";
+	s->listen = "localhost:9080";
 	AZ(VSS_parse(s->listen, &s->addr, &s->port));
 	s->repeat = 1;
 	s->depth = 1;




More information about the varnish-commit mailing list