You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by wa...@apache.org on 2002/08/06 14:32:58 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV scopeInvalidXML.xml
wam 2002/08/06 05:32:57
Modified: testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV
scopeInvalidXML.xml
Log:
bugfix: adjusted expected results (response from parser includes line number)
Revision Changes Path
1.2 +21 -40 jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeInvalidXML.xml
Index: scopeInvalidXML.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeInvalidXML.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- scopeInvalidXML.xml 19 Jun 2002 06:42:40 -0000 1.1
+++ scopeInvalidXML.xml 6 Aug 2002 12:32:57 -0000 1.2
@@ -1,32 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
-
-<test>
-
-
- <specification>
-
- <abstract> The Search contains invalid XML within the HREF of the Scope. </abstract>
-
- <pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
-
- <description>
+<test>
+ <specification>
+ <abstract> The Search contains invalid XML within the HREF of the Scope. </abstract>
+ <pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
+ <description>
1) Search for the properties displayname and test(nonexistent).
The HREF within the scope has invalid XML.
</description>
-
- <expectedResult>An 400 Bad Request error should occur because of the invalid XML.</expectedResult>
-
- </specification>
-
-
-
-
-
- <step>
- <request>
- <command varUsage ="globalVariableServerName,globalVariableCollection">SEARCH /%globalVariableServerName% HTTP/1.1</command>
- <body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+ <expectedResult>An 400 Bad Request error should occur because of the invalid XML.</expectedResult>
+ </specification>
+ <step>
+ <request>
+ <command varUsage="globalVariableServerName,globalVariableCollection">SEARCH /%globalVariableServerName% HTTP/1.1</command>
+ <body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<searchrequest xmlns:D="DAV:">
<D:basicsearch>
<D:select>
@@ -42,25 +29,19 @@
</D:from>
</D:basicsearch>
</searchrequest>
- ]]>
- </body>
- </request>
-
- <response>
- <command>HTTP/1.0 400 Bad Request</command>
- <body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+ ]]></body>
+ </request>
+ <response>
+ <command>HTTP/1.0 400 Bad Request</command>
+ <body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/%globalVariableServerName%</D:href>
<D:status>HTTP/1.1 400 Bad Request</D:status>
- <D:responsedescription>The element type "D:href" must be terminated by the matching end-tag "&lt;/D:href&gt;".</D:responsedescription>
+ <D:responsedescription>Error on line 13: The element type "D:href" must be terminated by the matching end-tag "&lt;/D:href&gt;".</D:responsedescription>
</D:response>
</D:multistatus>
- ]]>
- </body>
- </response>
- </step>
-
-
-
-</test>
\ No newline at end of file
+ ]]></body>
+ </response>
+ </step>
+</test>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>