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 ju...@apache.org on 2003/05/20 14:47:06 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional binddir.xml
juergen 2003/05/20 05:47:06
Added: testsuite/testsuite/junit/xmltestcases/BIND/functional
binddir.xml
Log:
second bind test case (for a directory and a file).
Revision Changes Path
1.1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/binddir.xml
Index: binddir.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Checks if Bind Method works fine for a directoryl. </abstract>
<pre-Requisite> In header of second copy method, the overwrite option must be set to f (that is false)</pre-Requisite>
<description> The test case consist of following steps:
1) create a test collection to work in
2) create a new Directory with a file in here
3) bind the file to a new name
4) check content of both files
5) bind the created directory to a new name
6) check content of both files via both directory access path
7) change the file
8) check content of both files via both directory access path
9) delete first file
10) check content of the remaining file via both directory access path
11) delete second file
12) check for non existing files
13) create 2 new directories via both dir paths
14) check for existence for both dirs via both access paths
</description>
<expectedResult> Bind did work successfully </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/firstDir HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html"/>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test/firstDir HTTP/1.1</command>
<header>Overwrite: F</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<bind>
<segment>secondFile.xml</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml</href>
</bind>]]></body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/html.html"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/html.html"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
<header>Overwrite: F</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<bind>
<segment>secondDir</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/firstDir</href>
</bind>]]></body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/html.html"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/html.html"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/html.html"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/html.html"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/secondFile.xml HTTP/1.1</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 404 not found</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 404 not found</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 404 not found</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 404 not found</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/firstFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 404 not found</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/secondFile.xml HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 404 not found</command>
<body fileReference="../../contentDirectory/validXML.xm1"/>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/new1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/new2 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/new1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body>*</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/firstDir/new2 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body>*</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/new1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body>*</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/secondDir/new2 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<body>*</body>
</response>
</step>
<cleanup>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName"> DELETE /%globalVariableServerName%/%globalVariableCollection%/test 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