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 lu...@apache.org on 2004/11/16 15:22:27 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Version_history_feature/Version-tree_report version-tree_report.xml
luetzkendorf 2004/11/16 06:22:27
Added: testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Version_history_feature/Version-tree_report
version-tree_report.xml
Log:
D:version-tree report for history resources
Revision Changes Path
1.1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Version_history_feature/Version-tree_report/version-tree_report.xml
Index: version-tree_report.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check D:version-tree report for history resources (Used by Xythos Client 4.2)</abstract>
<description>
1) PUT command creates a file
2) VERSION-CONTROL command which puts the file under version control
3) Report
</description>
<expectedResult> Report should find the version-history property </expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
<body fileReference="../../../../contentDirectory/validXML.xm1" />
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">VERSION-CONTROL %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
<header>Content-Type: text/xml; charset="utf-8"</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,userNumber,globalVariableServerName">REPORT %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:version-tree xmlns:D="DAV:">
<D:prop>
<D:version-history />
</D:prop>
</D:version-tree>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="VH1" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
<href>*</href>
<propstat>
<prop>
<version-history>
<href>*</href>
</version-history>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH1">REPORT %VH1% HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>Depth: 0</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<version-tree xmlns="DAV:">
<prop>
<version-name/>
<creator-displayname/>
</prop>
</version-tree>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="VH1" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
<href>*</href>
<propstat>
<prop>
<version-name>1.0</version-name>
<creator-displayname>john</creator-displayname>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
]]></body>
</response>
</step>
<cleanup>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName,WS">PROPFIND %globalVariableServerName%/%globalVariableCollection%/test.xml 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:version-history />
</D:prop>
</D:propfind>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<body varUsage="globalVariableCollection,globalVariableServerName,VHH" varDefinition="VHH" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
<href>%globalVariableServerName%/%globalVariableCollection%/test.xml</href>
<propstat>
<prop>
<version-history>
<href>%VHH%</href>
</version-history>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName,VHH">DELETE %VHH% HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
</cleanup>
</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org