~ubuntu-branches/ubuntu/lucid/varnish/lucid

« back to all changes in this revision

Viewing changes to bin/varnishtest/tests/a00005.vtc

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2010-03-24 13:26:08 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100324132608-4uzkavctn26bdwyi
Tags: 2.1.0-1
* New upstream version
* Fix small error in man/vcl.7so

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: a00005.vtc 2906 2008-07-08 10:29:07Z phk $
 
1
# $Id: a00005.vtc 4365 2009-11-24 19:41:09Z phk $
2
2
 
3
3
test "dual shared client HTTP transactions"
4
4
 
5
 
server s1 -listen 127.0.0.1:9080 {
 
5
server s1 {
6
6
        rxreq
7
7
        expect req.request == PUT
8
8
        expect req.proto == HTTP/1.0
10
10
        txresp -proto HTTP/1.2 -status 201 -msg Foo
11
11
}
12
12
 
13
 
server s2 -listen 127.0.0.1:9081 {
 
13
server s2 {
14
14
        rxreq
15
15
        expect req.request == GET
16
16
        expect req.proto == HTTP/1.1
21
21
server s1 -start 
22
22
server s2 -start 
23
23
 
24
 
client c1 -connect 127.0.0.1:9080 {
 
24
client c1 -connect ${s1_sock} {
25
25
        txreq -req PUT -proto HTTP/1.0 -url /foo
26
26
        rxresp
27
27
        expect resp.proto == HTTP/1.2
31
31
 
32
32
client c1 -run
33
33
 
34
 
client c1 -connect 127.0.0.1:9081 {
 
34
client c1 -connect ${s2_sock} {
35
35
        txreq 
36
36
        rxresp
37
37
        expect resp.proto == HTTP/1.1