test503 (1503B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP CONNECT 7 HTTP proxy 8 HTTP proxy Basic auth 9 proxytunnel 10 multi 11 </keywords> 12 </info> 13 14 # Server-side 15 <reply> 16 <servercmd> 17 connection-monitor 18 </servercmd> 19 <connect> 20 HTTP/1.1 200 Mighty fine indeed 21 22 </connect> 23 <data> 24 HTTP/1.1 200 OK swsclose 25 Date: Tue, 09 Nov 2010 14:49:00 GMT 26 Server: test-server/fake 27 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 28 ETag: "21025-dc7-39462498" 29 30 </data> 31 <datacheck> 32 HTTP/1.1 200 Mighty fine indeed 33 34 HTTP/1.1 200 OK swsclose 35 Date: Tue, 09 Nov 2010 14:49:00 GMT 36 Server: test-server/fake 37 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 38 ETag: "21025-dc7-39462498" 39 40 </datacheck> 41 </reply> 42 43 # Client-side 44 <client> 45 <server> 46 http 47 http-proxy 48 </server> 49 # tool is what to use instead of 'curl' 50 <tool> 51 lib%TESTNUMBER 52 </tool> 53 <features> 54 proxy 55 </features> 56 <name> 57 simple multi http:// through proxytunnel with authentication info 58 </name> 59 <command> 60 http://machine.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT 61 </command> 62 <file name="%LOGDIR/test%TESTNUMBER.txt"> 63 foo 64 bar 65 bar 66 foo 67 moo 68 </file> 69 </client> 70 71 # Verify data after the test has been "shot" 72 <verify> 73 <proxy> 74 CONNECT machine.%TESTNUMBER:%HTTPPORT HTTP/1.1 75 Host: machine.%TESTNUMBER:%HTTPPORT 76 Proxy-Authorization: Basic %b64[test%2520:ing%2541]b64% 77 Proxy-Connection: Keep-Alive 78 79 [DISCONNECT] 80 </proxy> 81 <protocol> 82 GET /%TESTNUMBER HTTP/1.1 83 Host: machine.%TESTNUMBER:%HTTPPORT 84 Authorization: Basic %b64[test:ing]b64% 85 Accept: */* 86 87 [DISCONNECT] 88 </protocol> 89 </verify> 90 </testcase>