luetzkendorf 2004/07/13 01:55:29
Added: testsuite/testsuite/junit/xmltestcases/functional/notification
pollUpdateCollDepthInfinit.xml
pollUpdateCollDepthOne.xml pollUpdateFile.xml
subscribe200.xml subscribe400.xml
subscribeRefresh.xml
Log:
some notification test cases added
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/notification/pollUpdateCollDepthInfinit.xml
Index: pollUpdateCollDepthInfinit.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Tests POLL method with Update subscription (infinit depth) on a
collection</abstract>
<description>
- create a collection
- subscribe for it (update, depth infinity)
- poll (NO events should be returned)
- put a new file
- poll (one event should be returned)
- poll (no events should be returned)
- proppatch on the file
- poll (one event should be returned)
- create a sub collection
- poll (one event should be returned)
- put new file to sub collection
- poll (one event should be returned)
- put to same file
- poll (one event should be returned)
- proppatch on the file
- create a sub sub collection
- poll (two event should be returned)
- unsubscribe
- delete
</description>
<expectedResult></expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,iteration">SUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
<header varUsage="globalVariableSubscriptionCallBack">Call-Back:
%globalVariableSubscriptionCallBack%</header>
<header>Notification-Type: update</header>
<header>Depth: infinity</header>
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<header varDefinition="varContentLocation">Content-Location: *</header>
<header varDefinition="varSubscriptionID">Subscription-ID: *</header>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/c1/test.html HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/c1/test.html HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<D:displayname>new display name</D:displayname>
</D:prop>
</D:set>
</D:propertyupdate>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV">
<d:response>
<d:href>/%globalVariableServerName%/%globalVariableCollection%/c1/test.html</d:href>
<d:propstat>
<d:prop>
<displayname />
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/c1/c2 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/c2</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html
HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html
HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<D:displayname>new display name</D:displayname>
</D:prop>
</D:set>
</D:propertyupdate>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV">
<d:response>
<d:href>/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html</d:href>
<d:propstat>
<d:prop>
<displayname />
</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">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/c1/c2/c3 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html</N:information>
</N:event>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/c2/c3</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">UNSUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<cleanup>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/notification/pollUpdateCollDepthOne.xml
Index: pollUpdateCollDepthOne.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Tests POLL method with Update subscription (depth=1) on a
collection</abstract>
<description>
- create a collection
- subscribe for it (update, depth 1)
- poll (NO events should be returned)
- put a new file
- poll (one event should be returned)
- poll (no events should be returned)
- proppatch on the file
- poll (one event should be returned)
- create a sub collection
- poll (one event should be returned)
- put new file to sub collection
- poll (NO event should be returned)
- proppatch on the file
- create a sub sub collection
- poll (NO event should be returned)
- unsubscribe
- delete
</description>
<expectedResult></expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,iteration">SUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
<header varUsage="globalVariableSubscriptionCallBack">Call-Back:
%globalVariableSubscriptionCallBack%</header>
<header>Notification-Type: update</header>
<header>Depth: 1</header>
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<header varDefinition="varContentLocation">Content-Location: *</header>
<header varDefinition="varSubscriptionID">Subscription-ID: *</header>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/c1/test.html HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/c1/test.html HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<D:displayname>new display name</D:displayname>
</D:prop>
</D:set>
</D:propertyupdate>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV">
<d:response>
<d:href>/%globalVariableServerName%/%globalVariableCollection%/c1/test.html</d:href>
<d:propstat>
<d:prop>
<displayname />
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/c1/c2 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/c1/c2</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html
HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html
HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<D:displayname>new display name</D:displayname>
</D:prop>
</D:set>
</D:propertyupdate>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV">
<d:response>
<d:href>/%globalVariableServerName%/%globalVariableCollection%/c1/c2/test.html</d:href>
<d:propstat>
<d:prop>
<displayname />
</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">MKCOL
/%globalVariableServerName%/%globalVariableCollection%/c1/c2/c3 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/c1</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">UNSUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<cleanup>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/c1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/notification/pollUpdateFile.xml
Index: pollUpdateFile.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Tests POLL method with Update subscription on a single file</abstract>
<description>
- put a file
- subscribe for it (update)
- poll (no events should be returned)
- put on same file
- poll (one event should be returned)
- poll (NO events should be returned)
- proppatch on the file
- poll (one event should be returned)
- unsubscribe
- delete
</description>
<expectedResult></expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,iteration">SUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
<header varUsage="globalVariableSubscriptionCallBack">Call-Back:
%globalVariableSubscriptionCallBack%</header>
<header>Notification-Type: update</header>
<header>Depth: 0</header>
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<header varDefinition="varContentLocation">Content-Location: *</header>
<header varDefinition="varSubscriptionID">Subscription-ID: *</header>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/test.html</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
<body fileReference="../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/test.html</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/test.html</href>
<status>HTTP/1.1 204 No Content</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
<header>Content-Type: text/xml</header>
<body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<D:displayname>new display name</D:displayname>
</D:prop>
</D:set>
</D:propertyupdate>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV">
<d:response>
<d:href>/%globalVariableServerName%/%globalVariableCollection%/test.html</d:href>
<d:propstat>
<d:prop>
<displayname />
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command varUsage="varContentLocation">POLL %varContentLocation%
HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body
varUsage="varSubscriptionID,globalVariableCollection,globalVariableServerName"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<multistatus xmlns="DAV:">
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%/test.html</href>
<status>HTTP/1.1 200 OK</status>
<N:subscriptionID xmlns:N="http://schemas.microsoft.com/Exchange/">
<li>%varSubscriptionID%</li>
<N:event>
<N:information
name="uri">/%globalVariableServerName%/%globalVariableCollection%/test.html</N:information>
</N:event>
</N:subscriptionID>
</response>
</multistatus>
]]></body>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">UNSUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<cleanup>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/notification/subscribe200.xml
Index: subscribe200.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Simple SUBSCRIBE/UNSUBSCRIBE request</abstract>
<description> </description>
<expectedResult> </expectedResult>
</specification>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">SUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header varUsage="globalVariableSubscriptionCallBack">Call-Back:
%globalVariableSubscriptionCallBack%</header>
<header>Notification-Type: update</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<header varDefinition="varSubscriptionID">Subscription-ID: *</header>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">UNSUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/notification/subscribe400.xml
Index: subscribe400.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Testing that invalid SUBSCRIBE requests are properly
rejected</abstract>
<description>
- put a file
- subscribe (without notification type)
</description>
<expectedResult>All SUBSCRIBE requests should return 400 Bad
Request</expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/test.html 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,iteration">SUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 400 Bad Request</command>
</response>
</step>
<cleanup>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/notification/subscribeRefresh.xml
Index: subscribeRefresh.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Simple SUBSCRIBE/SUBSCRIBE(refresh)/UNSUBSCRIBE request</abstract>
<description> </description>
<expectedResult> </expectedResult>
</specification>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">SUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header varUsage="globalVariableSubscriptionCallBack">Call-Back:
%globalVariableSubscriptionCallBack%</header>
<header>Notification-Type: update</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
<header varDefinition="varSubscriptionID">Subscription-ID: *</header>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">SUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName,">UNSUBSCRIBE
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header varUsage="varSubscriptionID">Subscription-ID:
%varSubscriptionID%</header>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]