juergen 2003/12/04 01:54:29
Added: testsuite/testsuite/junit/xmltestcases/functional/copy/code
copy204resId.xml
Removed: testsuite/testsuite/junit/xmltestcases/BIND/functional/webdavMethods
copy204resId_2.xml
Log:
fix bind test cases and move it (because it doesn't check binding stuff)
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/copy/code/copy204resId.xml
Index: copy204resId.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> checks resource-id for resource </abstract>
<description> The test case consist of following steps:
1) create two test collections, test1 and test2
2) create a file test1.txt in test1
3) profind resource-id of test1.txt before and after copy
4) copy test2 in test1.txt - which changes the resourceType
because a
file is overwritten with a collection
5) do a search to see how many resource have original
resourceid: none
6) delete the collection test2
7) delete test1
</description>
<expectedResult> Resource-id should be unqiue (comment: at present the rearch
with computed property has problem, for this reason value of resourceid is save in
dead-property) </expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test1/test1.txt
HTTP/1.1</command>
<body fileReference="../../../contentDirectory/txt.txt" />
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/test1/test1.txt
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>Depth: 1</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:resource-id />
</D:prop>
</D:propfind>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<body varUsage="globalVariableCollection,VHR,globalVariableServerName"
varDefinition="VHR"
varPath="multistatus/response/propstat/prop/resource-id/href"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/test1/test1.txt</href>
<propstat>
<prop>
<resource-id>
<href>%VHR%</href>
</resource-id>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">COPY
/%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
<header
varUsage="globalVariableCollection,globalVariableServerName">Destination:
/%globalVariableServerName%/%globalVariableCollection%/test1/test1.txt</header>
<header>Overwrite: T</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableServerName">SEARCH
/%globalVariableServerName% HTTP/1.1</command>
<body
varUsage="globalVariableCollection,globalVariableServerName,VHR"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<searchrequest xmlns:D="DAV:">
<D:basicsearch>
<D:select>
<D:prop>
<D:resource-id />
</D:prop>
</D:select>
<D:from>
<D:scope>
<D:href>/%globalVariableServerName%/%globalVariableCollection%/</D:href>
</D:scope>
</D:from>
<D:where>
<D:eq>
<D:prop>
<D:resource-id />
</D:prop>
<D:literal>%VHR%</D:literal>
</D:eq>
</D:where>
</D:basicsearch>
</searchrequest>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<body
varUsage="globalVariableServerName,globalVariableCollection,VHR"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:"/>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test1 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]