Changeset 0d758a


Ignore:
Timestamp:
2009-11-24 19:48:14 (4 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
2.1, tags/varnish-2.1.0, tags/varnish-2.1.1, tags/varnish-2.1.2, tags/varnish-2.1.3, tags/varnish-2.1.4
Children:
13664e2
Parents:
297e09
git-author:
Poul-Henning Kamp <phk@…> (2009-11-24 19:48:14)
git-committer:
Poul-Henning Kamp <phk@…> (2009-11-24 19:48:14)
Message:

Update testcases to use macros where possible (that is: client -connect)
and make the listen address explicit where we depend on it, rather
than rely on the default port to be 9080.

git-svn-id:  http://www.varnish-cache.org/svn/trunk@4363 d4fa192b-c00b-0410-8231-f00ffab90ce4

Location:
bin/varnishtest/tests
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishtest/tests/a00000.vtc

    ref5a07 r0d758a  
    33test "basic default HTTP transactions" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        txresp  
     
    1010server s1 -start  
    1111 
    12 client c1 -connect 127.0.0.1:9080 { 
     12client c1 -connect $s1_sock { 
    1313        txreq  
    1414        rxresp 
  • bin/varnishtest/tests/a00001.vtc

    ref5a07 r0d758a  
    33test "basic default HTTP transactions with expect" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        expect req.request == GET 
     
    1313server s1 -start  
    1414 
    15 client c1 -connect 127.0.0.1:9080 { 
     15client c1 -connect $s1_sock { 
    1616        txreq  
    1717        rxresp 
  • bin/varnishtest/tests/a00002.vtc

    ref5a07 r0d758a  
    33test "basic default HTTP transactions with expect and options" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        expect req.request == PUT 
     
    1313server s1 -start  
    1414 
    15 client c1 -connect 127.0.0.1:9080 { 
     15client c1 -connect $s1_sock { 
    1616        txreq -req PUT -proto HTTP/1.0 -url /foo 
    1717        rxresp 
  • bin/varnishtest/tests/a00004.vtc

    ref5a07 r0d758a  
    33test "dual shared server HTTP transactions" 
    44 
    5 server s1 -listen 127.0.0.1:9080 -repeat 2 { 
     5server s1 -repeat 2 { 
    66        rxreq 
    77        expect req.request == PUT 
     
    1313server s1 -start  
    1414 
    15 client c1 -connect 127.0.0.1:9080 { 
     15client c1 -connect $s1_sock { 
    1616        txreq -req PUT -proto HTTP/1.0 -url /foo 
    1717        rxresp 
     
    2121} 
    2222 
    23 client c2 -connect 127.0.0.1:9080 { 
     23client c2 -connect $s1_sock { 
    2424        txreq -req PUT -proto HTTP/1.0 -url /foo 
    2525        rxresp 
  • bin/varnishtest/tests/a00006.vtc

    r2da4ee r0d758a  
    33test "bidirectional message bodies" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        expect req.request == PUT 
     
    1414server s1 -start  
    1515 
    16 client c1 -connect 127.0.0.1:9080 { 
     16client c1 -connect $s1_sock { 
    1717        txreq -req PUT -proto HTTP/1.0 -url /foo \ 
    1818                -body "123456789\n" 
  • bin/varnishtest/tests/a00007.vtc

    r2da4ee r0d758a  
    33test "TCP reuse" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        expect req.url == "/1" 
     
    1414server s1 -start  
    1515 
    16 client c1 -connect 127.0.0.1:9080 { 
     16client c1 -connect $s1_sock { 
    1717        txreq -url "/1" -req "POST" -body "abcdefghi\n" 
    1818        rxresp 
  • bin/varnishtest/tests/a00010.vtc

    rbb1369 r0d758a  
    33test "simply test that the framework support \0" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        rxreq 
    77        expect req.url == "/" 
     
    1111server s1 -start  
    1212 
    13 client c1 -connect 127.0.0.1:9080 { 
     13client c1 -connect $s1_sock { 
    1414 
    1515        txreq 
  • bin/varnishtest/tests/b00022.vtc

    r2533b2 r0d758a  
    33test "Check the between_bytes_timeout behaves from backend definition" 
    44 
    5 server s1 { 
     5server s1 -listen 127.0.0.1:9080 { 
    66        rxreq 
    77        send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n" 
  • bin/varnishtest/tests/b00025.vtc

    r2533b2 r0d758a  
    33test "Check that the first_byte_timeout works from backend definition" 
    44 
    5 server s1 { 
     5server s1 -listen 127.0.0.1:9080 { 
    66        rxreq 
    77        delay 1.5 
  • bin/varnishtest/tests/c00004.vtc

    r94672e r0d758a  
    22 
    33test "Test Vary functionality" 
    4  
    5 varnish v1 -arg "-b 127.0.0.1:9080" -start 
    64 
    75server s1 { 
     
    1816        txresp -hdr "Vary: Foobar" -hdr "Snafu: 4" -body "4444\n" 
    1917} -start 
     18 
     19varnish v1 -vcl+backend {} -start 
    2020 
    2121client c1 { 
  • bin/varnishtest/tests/c00017.vtc

    r1736bd r0d758a  
    22 
    33test "Test Backend Polling" 
     4 
     5server s1 -listen 127.0.0.1:9080 { 
     6        rxreq 
     7        expect req.url == "/" 
     8        txresp -hdr "Bar: foo" -body "foobar"  
     9} -start 
    410 
    511varnish v1 -vcl {  
     
    1622} -start 
    1723 
    18 server s1 { 
    19         rxreq 
    20         expect req.url == "/" 
    21         txresp -hdr "Bar: foo" -body "foobar"  
    22 }  
    2324 
    2425# Handle  probes 
  • bin/varnishtest/tests/c00024.vtc

    r26ed04 r0d758a  
    33test "Test restart in vcl_error" 
    44 
    5 server s1 { 
     5server s1 -listen 127.0.0.1:9080 { 
    66        rxreq  
    77        txresp  
  • bin/varnishtest/tests/c00030.vtc

    r91522a r0d758a  
    33test "Test that saintmode_threshold in VCL" 
    44 
    5 server s1 { 
     5server s1 -listen 127.0.0.1:9080 { 
    66        rxreq 
    77        txresp 
  • bin/varnishtest/tests/p00001.vtc

    rd3c853 r0d758a  
    2323 
    2424varnish v1 -stop 
    25 server s1 -wait 
    2625 
    2726varnish v1 -vcl+backend { 
     
    3029        } 
    3130} 
     31 
     32server s1 -wait 
    3233 
    3334varnish v1 -start 
     
    4344varnish v1 -stop 
    4445 
     46server s1 { 
     47        rxreq  
     48        txresp -hdr "Foo: bar" 
     49} -start 
     50 
    4551varnish v1 -vcl+backend { } 
    4652 
     
    4854 
    4955varnish v1 -start 
    50  
    51 server s1 { 
    52         rxreq  
    53         txresp -hdr "Foo: bar" 
    54 } -start 
    5556 
    5657client c1 { 
  • bin/varnishtest/tests/p00003.vtc

    r8e632dc r0d758a  
    3535} -start 
    3636 
    37 varnish v1 -start 
     37varnish v1 -vcl+backend {} -start 
    3838 
    3939varnish v1 -cliok purge.list 
  • bin/varnishtest/tests/p00005.vtc

    rba9580 r0d758a  
    3636} -start 
    3737 
    38 varnish v1 -start 
     38varnish v1 -vcl+backend { 
     39                sub vcl_fetch { 
     40                        set beresp.ttl = 3s; 
     41                } 
     42        } -start 
    3943 
    4044delay 5 
  • bin/varnishtest/tests/r00306.vtc

    ra67a54 r0d758a  
    33test "Regression test for ticket #306, random director ignoring good backend" 
    44 
    5 server s1 { 
     5server s1 -listen 127.0.0.1:9080 { 
    66 
    77        rxreq 
  • bin/varnishtest/tests/s00003.vtc

    r391ac93 r0d758a  
    33test "Check saint mode with sick pages" 
    44 
    5 server s1 -listen 127.0.0.1:9080 { 
     5server s1 { 
    66        timeout 10 
    77 
     
    1717} -start 
    1818 
    19 varnish v1 -vcl { 
    20         backend b { .host = "127.0.0.1"; .port = "9080"; } 
     19varnish v1 -vcl+backend { 
    2120        sub vcl_fetch { 
    2221                set beresp.ttl = 1s; 
  • bin/varnishtest/tests/v00006.vtc

    r5b689f r0d758a  
    55# First do one request to get a work-thread that holds a VCL reference 
    66 
    7 server s1 -listen 127.0.0.1:9080 { 
     7server s1 { 
    88        rxreq 
    99        txresp 
     
    1111 
    1212# Only one pool, to avoid getting more than one work thread 
    13 varnish v1 -arg "-p thread_pools=1 -w1,1,300" -vcl { 
    14         backend b1 { 
    15                 .host = "127.0.0.1"; 
    16                 .port = "9080"; 
    17         } 
     13varnish v1 -arg "-p thread_pools=1 -w1,1,300" -vcl+backend { 
    1814} -start 
    1915 
  • bin/varnishtest/tests/v00012.vtc

    r6e8754 r0d758a  
    33test "Check backend connection limit" 
    44 
    5 server s1 { 
     5server s1 -listen 127.0.0.1:9080 { 
    66        rxreq 
    77        sema r1 sync 2 
Note: See TracChangeset for help on using the changeset viewer.