juergen 2002/08/13 04:50:07
Modified: testsuite/testsuite/junit/xmltestcases/DeltaV/compatability/NR
Mkworkspace.xml
Log:
Changed the testcase to work iwith all three variations (/workspaces,
/workspaces/{store}, {store}/workspaces)
Revision Changes Path
1.3 +27 -2
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/compatability/NR/Mkworkspace.xml
Index: Mkworkspace.xml
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/compatability/NR/Mkworkspace.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Mkworkspace.xml 2 Aug 2002 10:55:56 -0000 1.2
+++ Mkworkspace.xml 13 Aug 2002 11:50:07 -0000 1.3
@@ -4,13 +4,38 @@
<specification>
<abstract> Test to check if possible to perform a MkWorkspace command
on a resource that doesnt exist </abstract>
<description>
+ 0) Compute the workspace path.
1) MkWorkspace command carried out on a resource which doesnt exists
</description>
<expectedResult> Mkworksapce command should return 201 Created
</expectedResult>
</specification>
+
<step>
<request>
- <command
varUsage="globalVariableServerName,globalVariableCollection">MKWORKSPACE
/%globalVariableServerName%/workspace/%globalVariableCollection%/NR HTTP/1.1</command>
+ <command
varUsage="globalVariableCollection,globalVariableServerName">OPTIONS
/%globalVariableServerName%/%globalVariableCollection% HTTP/1.1</command>
+ <header>Content-Type: text/xml</header>
+ <body><![CDATA[<?xml version="1.0" ?>
+ <D:options xmlns:D="DAV:">
+ <D:workspace-collection-set/>
+ </D:options>
+ ]]>
+ </body>
+ </request>
+ <response>
+ <command>HTTP/1.0 200 OK</command>
+ <body
varUsage="globalVariableCollection,globalVariableServerName" varDefinition="WS"
varPath="options-response/workspace-collection-set/href"><![CDATA[<?xml version="1.0"
encoding="utf-8" ?>
+ <D:options-response xmlns:D="DAV:">
+ <D:workspace-collection-set>
+ <D:href>*</D:href>
+ </D:workspace-collection-set>
+ </D:options-response>
+ ]]>
+ </body>
+ </response>
+ </step>
+ <step>
+ <request>
+ <command
varUsage="globalVariableServerName,globalVariableCollection,WS">MKWORKSPACE %WS%/NR
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
@@ -19,7 +44,7 @@
<cleanup>
<step>
<request>
- <command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/workspace/%globalVariableCollection%/NR HTTP/1.1</command>
+ <command
varUsage="globalVariableCollection,globalVariableServerName,WS">DELETE %WS%/NR
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>