juergen 2003/11/15 05:51:40
Modified: testsuite/testsuite/junit/xmltestcases/functional/lock/code
putLockPut204Unlock.xml
Log:
compare the correct expected owner.
Revision Changes Path
1.6 +66 -67
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/lock/code/putLockPut204Unlock.xml
Index: putLockPut204Unlock.xml
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/lock/code/putLockPut204Unlock.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- putLockPut204Unlock.xml 3 Nov 2003 19:22:18 -0000 1.5
+++ putLockPut204Unlock.xml 15 Nov 2003 13:51:40 -0000 1.6
@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
- <specification>
- <abstract>Example for lock-put-unlock</abstract>
- <description />
- <expectedResult />
- </specification>
- <!--
===============================================================================================
-->
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
- </request>
- <response>
- <command>HTTP/1.0 *</command>
- </response>
- </step>
- <!--
===============================================================================================
-->
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
- <body><![CDATA[<?xml version="1.0" ?><a>xxx</a>]]></body>
- </request>
- <response>
- <command>HTTP/1.0 201 Created</command>
- </response>
- </step>
- <!--
===============================================================================================
-->
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">LOCK
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
- <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
+ <specification>
+ <abstract>Example for lock-put-unlock</abstract>
+ <description/>
+ <expectedResult/>
+ </specification>
+ <!--
===============================================================================================
-->
+ <step>
+ <request>
+ <command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 *</command>
+ </response>
+ </step>
+ <!--
===============================================================================================
-->
+ <step>
+ <request>
+ <command
varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
+ <body><![CDATA[<?xml version="1.0" ?><a>xxx</a>]]></body>
+ </request>
+ <response>
+ <command>HTTP/1.0 201 Created</command>
+ </response>
+ </step>
+ <!--
===============================================================================================
-->
+ <step>
+ <request>
+ <command
varUsage="globalVariableCollection,globalVariableServerName">LOCK
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
+ <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:lockinfo xmlns:D="DAV:">
<D:lockscope>
<D:exclusive />
@@ -40,10 +40,10 @@
</D:lockinfo>
]]></body>
- </request>
- <response>
- <command>HTTP/1.0 200 OK</command>
- <body
varUsage="globalVariableCollection,globalVariableServerName,globalVariableUserPath,user,host"
varDefinition="locktoken"
varPath="prop/lockdiscovery/activelock/locktoken/href"><![CDATA[<?xml version="1.0"
encoding="utf-8"?>
+ </request>
+ <response>
+ <command>HTTP/1.0 200 OK</command>
+ <body
varUsage="globalVariableCollection,globalVariableServerName,globalVariableUserPath,user,host"
varDefinition="locktoken"
varPath="prop/lockdiscovery/activelock/locktoken/href"><![CDATA[<?xml version="1.0"
encoding="utf-8"?>
<D:prop xmlns:D="DAV:">
<D:lockdiscovery>
<D:activelock>
@@ -61,43 +61,42 @@
<d:principal-URL xmlns:d="DAV:">
<d:href>%globalVariableUserPath%</d:href>
</d:principal-URL>
- <owner xmlns="DAV:">some owner</owner>
+ <owner xmlns="DAV:"></owner>
</D:activelock>
</D:lockdiscovery>
</D:prop>
]]></body>
- </response>
- </step>
- <!--
===============================================================================================
-->
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
- <header varUsage="locktoken"><![CDATA[If: (<%locktoken%>)]]></header>
- <body><![CDATA[<?xml version="1.0" ?><a>zzz</a>]]></body>
- </request>
- <response>
- <command>HTTP/1.0 204 No Content</command>
- </response>
- </step>
- <!--
===============================================================================================
-->
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">UNLOCK
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
- <header varUsage="locktoken"><![CDATA[Lock-Token: %locktoken%]]></header>
- </request>
- <response>
- <command>HTTP/1.0 204 No Content</command>
- </response>
- </step>
- <!--
===============================================================================================
-->
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
- </request>
- <response>
- <command>HTTP/1.0 204 No Content</command>
- </response>
- </step>
+ </response>
+ </step>
+ <!--
===============================================================================================
-->
+ <step>
+ <request>
+ <command
varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
+ <header varUsage="locktoken"><![CDATA[If:
(<%locktoken%>)]]></header>
+ <body><![CDATA[<?xml version="1.0" ?><a>zzz</a>]]></body>
+ </request>
+ <response>
+ <command>HTTP/1.0 204 No Content</command>
+ </response>
+ </step>
+ <!--
===============================================================================================
-->
+ <step>
+ <request>
+ <command
varUsage="globalVariableCollection,globalVariableServerName">UNLOCK
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
+ <header varUsage="locktoken"><![CDATA[Lock-Token:
%locktoken%]]></header>
+ </request>
+ <response>
+ <command>HTTP/1.0 204 No Content</command>
+ </response>
+ </step>
+ <!--
===============================================================================================
-->
+ <step>
+ <request>
+ <command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 204 No Content</command>
+ </response>
+ </step>
</test>
-
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]