rlubke 01/12/17 19:27:58 Modified: src/conf servlet-gtest.xml Log: Updated gtest tasks for HEAD method tests. A Goldenfile was incorrectly used for a test for the HTTP HEAD method which only returns headers and no response body. The task now check the status line for 200 and a message passed back from a setError call and asserts that no body is returned. Revision Changes Path 1.21 +4 -4 jakarta-watchdog-4.0/src/conf/servlet-gtest.xml Index: servlet-gtest.xml =================================================================== RCS file: /home/cvs/jakarta-watchdog-4.0/src/conf/servlet-gtest.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- servlet-gtest.xml 2001/12/14 21:36:51 1.20 +++ servlet-gtest.xml 2001/12/18 03:27:58 1.21 @@ -781,8 +781,8 @@ <gtest request="HEAD /servlet-tests/GetMethod_HEADTest HTTP/1.0" - debug="0" host="${host}" port="${port}" - goldenFile="${wgdir}/javax_servlet_http/HttpServletRequest/GetMethod_HEADTest.html" /> + debug="0" host="${host}" port="${port}" expectResponseBody="false" + returnCode="200" returnCodeMsg="GetMethod_HEADTest PASSED" /> <gtest request="POST /servlet-tests/GetMethod_POSTTest HTTP/1.0" debug="0" host="${host}" port="${port}" @@ -1184,8 +1184,8 @@ <target name="GetMethod_HEADTest" > <gtest request="HEAD /servlet-tests/GetMethod_HEADTest HTTP/1.0" - debug="0" host="${host}" port="${port}" - goldenFile="${wgdir}/javax_servlet_http/HttpServletRequest/GetMethod_HEADTest.html" /> + debug="0" host="${host}" port="${port}" expectResponseBody="false" + returnCode="200" returnCodeMsg="GetMethod_HEADTest PASSED" /> </target> <target name="GetMethod_POSTTest" >
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>