pnever 2004/12/14 06:08:53
Added:
testsuite/testsuite/junit/xmltestcases/BIND/functional/postcondition
lock-delete.xml lock-delete2.xml
Log:
REBIND Method: postcondition DAV:lock-deleted was not implemented.
The Binding spec states that (non-inherited) locks are to be removed after
rebinding a resource. If binding is enabled, Slide maps the MOVE method
onto REBIND, so that MOVE was affected in this case too.
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/postcondition/lock-delete.xml
Index: lock-delete.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> checks postcondition lock-delete </abstract>
<description> The test case consist of following steps:
1) create collection test
1) create collection test/test1
2) lock test1
3) rebind test (test2 ->
test/test1)
3) check that test2 is not
locked
</description>
<expectedResult></expectedResult>
</specification>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">MKCOL
%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">MKCOL
%globalVariableServerName%/%globalVariableCollection%/test/test1
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">LOCK
%globalVariableServerName%/%globalVariableCollection%/test/test1
HTTP/1.1</command>
<header>Timeout: Second-604800</header>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<A:lockinfo xmlns:A="DAV:">
<A:locktype>
<A:write />
</A:locktype>
<A:lockscope>
<A:exclusive />
</A:lockscope>
<owner xmlns="DAV:">some owner</owner>
</A:lockinfo>
]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body 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>
<D:locktype><D:write/></D:locktype>
<D:lockscope><D:exclusive/></D:lockscope>
<D:depth>infinity</D:depth>
<D:timeout>Second-3599</D:timeout>
<D:locktoken><D:href>opaquelocktoken:8866bed69d52f601c31c8b1a1fd805ef</D:href></D:locktoken>
<d:principal-URL xmlns:d="DAV:"><d:href>*</d:href></d:principal-URL>
<owner xmlns="DAV:">*</owner>
</D:activelock>
</D:lockdiscovery>
</D:prop>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">REBIND
%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Overwrite: F</header>
<header varUsage="locktoken"><![CDATA[If: (<%locktoken%>)]]></header>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<rebind>
<segment>test2</segment>
<href>%globalVariableServerName%/%globalVariableCollection%/test/test1</href>
</rebind>
]]></body>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
%globalVariableServerName%/%globalVariableCollection%/test/test2
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>Depth: 0</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:lockdiscovery/>
</D:prop>
</D:propfind>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<body
varUsage="globalVariableCollection,VHR,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
<href>%globalVariableServerName%/%globalVariableCollection%/test/test2</href>
<propstat>
<prop>
<lockdiscovery/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header varUsage="locktoken"><![CDATA[If: (<%locktoken%>)]]></header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/postcondition/lock-delete2.xml
Index: lock-delete2.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> checks postcondition lock-delete </abstract>
<description> The test case consist of following steps:
1) create collection test
1) create collection test/test1
2) lock test1
3) move test/test1 -> test/test2
3) check that test2 is not
locked
</description>
<expectedResult></expectedResult>
</specification>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">MKCOL
%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">MKCOL
%globalVariableServerName%/%globalVariableCollection%/test/test1
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">LOCK
%globalVariableServerName%/%globalVariableCollection%/test/test1
HTTP/1.1</command>
<header>Timeout: Second-604800</header>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<A:lockinfo xmlns:A="DAV:">
<A:locktype>
<A:write />
</A:locktype>
<A:lockscope>
<A:exclusive />
</A:lockscope>
<owner xmlns="DAV:">some owner</owner>
</A:lockinfo>
]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body 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>
<D:locktype><D:write/></D:locktype>
<D:lockscope><D:exclusive/></D:lockscope>
<D:depth>infinity</D:depth>
<D:timeout>Second-3599</D:timeout>
<D:locktoken><D:href>opaquelocktoken:8866bed69d52f601c31c8b1a1fd805ef</D:href></D:locktoken>
<d:principal-URL xmlns:d="DAV:"><d:href>*</d:href></d:principal-URL>
<owner xmlns="DAV:">*</owner>
</D:activelock>
</D:lockdiscovery>
</D:prop>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">MOVE
%globalVariableServerName%/%globalVariableCollection%/test/test1
HTTP/1.1</command>
<header>Overwrite: F</header>
<header
varUsage="globalVariableServerName,globalVariableCollection">Destination:
%globalVariableServerName%/%globalVariableCollection%/test/test2</header>
<header varUsage="locktoken"><![CDATA[If: (<%locktoken%>)]]></header>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
%globalVariableServerName%/%globalVariableCollection%/test/test2
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>Depth: 0</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:lockdiscovery/>
</D:prop>
</D:propfind>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<body
varUsage="globalVariableCollection,VHR,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
<href>%globalVariableServerName%/%globalVariableCollection%/test/test2</href>
<propstat>
<prop>
<lockdiscovery/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header varUsage="locktoken"><![CDATA[If: (<%locktoken%>)]]></header>
</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]