juergen 02/01/28 01:47:02
Added: testsuite/testsuite/junit/xmltestcases/functional/proppatch/code
CreateDefaultUserDefinedReadDefaultUserDefined.xml
CreateDefaultUserDefinedReadDefaultDefault.xml
CreateDefaultUserDefinedReadDefaultDav.xml
CreateDefaultDefaultReadDefaultUserDefined.xml
CreateDefaultDefaultReadDefaultDav.xml
CreateDefaultDavReadDefaultUserDefined.xml
CreateDefaultDavReadDefaultDefault.xml
CreateDefaultDavReadDefaultDav.xml
Log:
more proppatch tests
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultUserDefinedReadDefaultUserDefined.xml
Index: CreateDefaultUserDefinedReadDefaultUserDefined.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default Dav
namespace.
3)Propfind on the Default Dav namespace to check property does not
show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<D:propertyupdate xmlns="www.www.com.com" xmlns:D="DAV:">
<D:set>
<D:prop>
<ud1>
test
</ud1>
</D:prop>
</D:set>
</D:propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<d:multistatus xmlns="www.www.com.com" xmlns:d="DAV:">
<d:response>
<d:href>/%globalVariableCollection%/resource1.html</d:href>
<d:propstat>
<d:prop>
<ud1/>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><D:propfind
xmlns="www.www.com.com" xmlns:D="DAV:"><D:prop><ud1/></D:prop></D:propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns="www.www.com.com"
xmlns:S="http://jakarta.apache.org/slide/" xmlns:D="DAV:">
<D:response>
<D:href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</D:href>
<D:propstat>
<D:prop>
<ud1>test</ud1>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultUserDefinedReadDefaultDefault.xml
Index: CreateDefaultUserDefinedReadDefaultDefault.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default User
Defined namespace.
3)Propfind on the Default Default Default namespace to check property
does not show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<D:propertyupdate xmlns="www.www.com.com" xmlns:D="DAV:">
<D:set>
<D:prop>
<ud1>
test
</ud1>
</D:prop>
</D:set>
</D:propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<D:multistatus xmlns="www.www.com.com" xmlns:D="DAV:">
<D:response>
<D:href>/%globalVariableCollection%/resource1.html</D:href>
<D:propstat>
<D:prop>
<ud1/>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><D:propfind
xmlns:D="DAV:"><D:prop><ud1/></D:prop></D:propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:S="http://jakarta.apache.org/slide/"
xmlns:D="DAV:">
<D:response>
<D:href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<ud1/>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
</D:multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultUserDefinedReadDefaultDav.xml
Index: CreateDefaultUserDefinedReadDefaultDav.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default Default
namespace.
3)Propfind on the Default Dav namespace to check property does not
show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<D:propertyupdate xmlns="www.www.com.com" xmlns:D="DAV:">
<D:set>
<D:prop>
<ud1>
test
</ud1>
</D:prop>
</D:set>
</D:propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<d:multistatus xmlns="www.www.com.com" xmlns:d="DAV" >
<d:response>
<d:href>/%globalVariableCollection%/resource1.html</d:href>
<d:propstat>
<d:prop>
<ud1/>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><propfind
xmlns="DAV:"><prop><ud1/></prop></propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:"
xmlns:S="http://jakarta.apache.org/slide/" >
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</href>
<propstat>
<prop>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<ud1/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultDefaultReadDefaultUserDefined.xml
Index: CreateDefaultDefaultReadDefaultUserDefined.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default Default
namespace.
3)Propfind on the Default UserDefined namespace to check property does
not show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<ud1>
test
</ud1>
</D:prop>
</D:set>
</D:propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<d:multistatus xmlns:d="DAV" >
<d:response>
<d:href>/%globalVariableCollection%/resource1.html</d:href>
<d:propstat>
<d:prop>
<ud1/>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><D:propfind
xmlns="www.www.com.com" xmlns:D="DAV:"><D:prop><ud1/></D:prop></D:propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns="www.www.com.com"
xmlns:S="http://jakarta.apache.org/slide/" xmlns:D="DAV:">
<D:response>
<D:href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<ud1/>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
</D:multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultDefaultReadDefaultDav.xml
Index: CreateDefaultDefaultReadDefaultDav.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default Default
namespace.
3)Propfind on the Default Dav namespace to check property does not
show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<ud1>
test
</ud1>
</D:prop>
</D:set>
</D:propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<d:multistatus xmlns:d="DAV" >
<d:response>
<d:href>/%globalVariableCollection%/resource1.html</d:href>
<d:propstat>
<d:prop>
<ud1/>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><propfind
xmlns="DAV:"><prop><ud1/></prop></propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:"
xmlns:S="http://jakarta.apache.org/slide/" >
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</href>
<propstat>
<prop>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<ud1/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultDavReadDefaultUserDefined.xml
Index: CreateDefaultDavReadDefaultUserDefined.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default Dav
namespace.
3)Propfind on the Default Dav namespace to check property does not
show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<propertyupdate xmlns="DAV:">
<set>
<prop>
<ud1>
test
</ud1>
</prop>
</set>
</propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableCollection%/resource1.html</href>
<propstat>
<prop>
<ud1/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><D:propfind
xmlns="www.www.com.com" xmlns:D="DAV:"><D:prop><ud1/></D:prop></D:propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns="www.www.com.com"
xmlns:S="http://jakarta.apache.org/slide/" xmlns:D="DAV:">
<D:response>
<D:href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<ud1/>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
</D:multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultDavReadDefaultDefault.xml
Index: CreateDefaultDavReadDefaultDefault.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default Dav
namespace.
3)Propfind on the Default Default namespace to check property does not
show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<propertyupdate xmlns="DAV:">
<set>
<prop>
<ud1>
test
</ud1>
</prop>
</set>
</propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<multistatus xmlns="DAV:" >
<response>
<href>/%globalVariableCollection%/resource1.html</href>
<propstat>
<prop>
<ud1/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><D:propfind
xmlns:D="DAV:"><D:prop><ud1/></D:prop></D:propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:S="http://jakarta.apache.org/slide/"
xmlns:D="DAV:">
<D:response>
<D:href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<ud1/>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
</D:multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/proppatch/code/CreateDefaultDavReadDefaultDav.xml
Index: CreateDefaultDavReadDefaultDav.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check creation of properties within default
namespace then changing
the namespace and checking the property does not appear.</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>1) Put a document.
2)Proppatch command which creates a property in the Default Dav
namespace.
3)Propfind on the Default Dav namespace to check property does not
show up.
4)Delete created file.</description>
<expectedResult>Property not found by propFind as it is looking in the
wrong namespace.
</expectedResult>
</specification>
<step>
<request>
<command
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
<body fileReference="../../../contentDirectory/html.html">
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet
2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Accept-Language: en-us</header>
<header>Translate: f</header>
<header>Pragma: no-cache</header>
<header>Connection: close</header>
<body><?xml version="1.0" ?>
<propertyupdate xmlns="DAV:">
<set>
<prop>
<ud1>
test
</ud1>
</prop>
</set>
</propertyupdate>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection"><?xml version="1.0" encoding="utf-8"
?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableCollection%/resource1.html</href>
<propstat>
<prop>
<ud1/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus></body>
</response>
</step>
<step>
<user varUsage="userNumber">user%userNumber%</user>
<password varUsage="userNumber">user%userNumber%</password>
<request>
<command
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
<header>Connection: Keep-Alive</header>
<body><![CDATA[<?xml version="1.0" ?><propfind
xmlns="DAV:"><prop><ud1/></prop></propfind>]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body
varUsage="globalVariableCollection,userNumber,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:"
xmlns:S="http://jakarta.apache.org/slide/" >
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/resource1.html</href>
<propstat>
<prop>
<ud1>test</ud1>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/resource1.html
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider
DAV</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
<header>Date: Tue, 20 Feb 2001 16:49:49 GMT+01:00</header>
<header>Content-Language: en</header>
<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
</response>
</step>
</test>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>