commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/jelly latka.jelly
Date Sat, 13 Jul 2002 07:18:23 GMT
dion        2002/07/13 00:18:23

  Modified:    latka/src/jelly latka.jelly
  Log:
  Added response header and status code tests
  
  Revision  Changes    Path
  1.16      +18 -0     jakarta-commons/latka/src/jelly/latka.jelly
  
  Index: latka.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/jelly/latka.jelly,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- latka.jelly	12 Jul 2002 04:25:51 -0000	1.15
  +++ latka.jelly	13 Jul 2002 07:18:22 -0000	1.16
  @@ -23,6 +23,22 @@
           
           <!-- bytelength validation on the request/response -->
           <bytelength requestId="mtc" max="2400">MTC URL too big</bytelength>
  +        <!-- response header validation -->
  +        <!-- this is expected to fail, as Host is a request header -->
  +        <responseheader requestId="mtc" name="Host">
  +            Bad host for mtc 1
  +        </responseheader>
  +        <responseheader requestId="mtc" name="Host" value="www.multitask.com.au">
  +            Bad host for mtc 2
  +        </responseheader>
  +        <!-- expected to work -->
  +        <responseheader requestId="mtc" name="Server">
  +            Bad server for mtc 1
  +        </responseheader>
  +        <responseheader requestId="mtc" name="Server" 
  +            value="Lotus-Domino/5.0.8">
  +            Bad server for mtc 2
  +        </responseheader>
           
           <j:forEach items="${mtc.responseHeaders}" var="header" indexVar="i">
               header[${i}] = ${header}
  @@ -42,6 +58,8 @@
           <!-- test a 404 -->
           <get id="badurl" uri="http://www.multitask.com.au/snafu.html"/>
           http return code = ${badurl.statusCode}
  +        <statuscode requestId="badurl">not ok badurl</statuscode>
  +        <statuscode requestId="badurl" value="404">whoops, expecting a 404</statuscode>
           bad response time = ${badurl.responseTime} in msec
   Tests for Post tag
   ------------------
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message