From f57307b366d861cea06c6f14275654fd88bdafc3 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 15 Jun 2008 20:41:04 +0000 Subject: [PATCH] Two first testcases git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2692 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/a00000.vtc | 19 ++++++++++++++ .../bin/varnishtest/tests/a00001.vtc | 25 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/a00000.vtc create mode 100644 varnish-cache/bin/varnishtest/tests/a00001.vtc diff --git a/varnish-cache/bin/varnishtest/tests/a00000.vtc b/varnish-cache/bin/varnishtest/tests/a00000.vtc new file mode 100644 index 00000000..178e1ca3 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/a00000.vtc @@ -0,0 +1,19 @@ +# Quis custodiet ipsos custodes? +# +# $Id$ + +server s1 -listen :9080 { + rxreq + txresp +} + +server s1 -start + +client c1 -connect localhost:9080 { + txreq + rxresp +} + +client c1 -run + +server s1 -wait diff --git a/varnish-cache/bin/varnishtest/tests/a00001.vtc b/varnish-cache/bin/varnishtest/tests/a00001.vtc new file mode 100644 index 00000000..764bc54b --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/a00001.vtc @@ -0,0 +1,25 @@ +# Quis custodiet ipsos custodes? +# +# $Id$ + +server s1 -listen :9080 { + rxreq + expect req.request == GET + expect req.proto == HTTP/1.1 + expect req.url == "/" + txresp -body "0123456789" +} + +server s1 -start + +client c1 -connect localhost:9080 { + txreq + rxresp + expect resp.proto == HTTP/1.1 + expect resp.status == 200 + expect resp.msg == Ok +} + +client c1 -run + +server s1 -wait -- 2.39.5