juergen     2002/08/14 01:48:26

  Modified:    
testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Workspace_Feature/MKWORKSPACE_Method
                        MkWs409samename.xml MkWs.xml
  Log:
  changed the test case to work with all three variations (/workspaces, 
/workspaces/{store}, {store}/workspaces) (kaz)
  
  Revision  Changes    Path
  1.4       +30 -3     
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Workspace_Feature/MKWORKSPACE_Method/MkWs409samename.xml
  
  Index: MkWs409samename.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Workspace_Feature/MKWORKSPACE_Method/MkWs409samename.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MkWs409samename.xml       5 Aug 2002 07:56:56 -0000       1.3
  +++ MkWs409samename.xml       14 Aug 2002 08:48:25 -0000      1.4
  @@ -4,6 +4,7 @@
        <specification>
                <abstract> Test to check if the attempting to create two workspaces 
with the same name doesnt work </abstract>
                <description>
  +             0) Compute the workspace path.
                1) MKWORKSPACE command carried out
                1) MKWORKSPACE command carried out again with the same name
                </description>
  @@ -11,9 +12,35 @@
                                Second MKWORKSPACE command should return a 409 
Conflict         
                </expectedResult>
        </specification>
  +     
        <step>
                <request>
  -                     <command 
varUsage="globalVariableServerName,globalVariableCollection">MKWORKSPACE 
/%globalVariableServerName%/workspace/%globalVariableCollection%/WS 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%/WS 
HTTP/1.1</command>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
  @@ -21,7 +48,7 @@
        </step>
        <step>
                <request>
  -                     <command 
varUsage="globalVariableServerName,globalVariableCollection">MKWORKSPACE 
/%globalVariableServerName%/workspace/%globalVariableCollection%/WS HTTP/1.1</command>
  +                     <command 
varUsage="globalVariableServerName,globalVariableCollection,WS">MKWORKSPACE %WS%/WS 
HTTP/1.1</command>
                </request>
                <response>
                        <command>HTTP/1.0 (403,409)</command>
  @@ -34,7 +61,7 @@
        <cleanup>
                <step>
                        <request>
  -                             <command 
varUsage="globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/workspace/%globalVariableCollection%/WS HTTP/1.1</command>
  +                             <command 
varUsage="globalVariableCollection,globalVariableServerName,WS">DELETE %WS%/WS 
HTTP/1.1</command>
                        </request>
                        <response>
                                <command>HTTP/1.0 204 No Content</command>
  
  
  
  1.3       +27 -2     
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Workspace_Feature/MKWORKSPACE_Method/MkWs.xml
  
  Index: MkWs.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Workspace_Feature/MKWORKSPACE_Method/MkWs.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MkWs.xml  13 Aug 2002 12:45:27 -0000      1.2
  +++ MkWs.xml  14 Aug 2002 08:48:25 -0000      1.3
  @@ -4,13 +4,38 @@
        <specification>
                <abstract> Test to check if the MKWORKSPACE command works correctly 
</abstract>
                <description>
  +             0) Compute the workspace path.
                1) MKWORKSPACE command carried out
                </description>
                <expectedResult> MKWORKSPACE command should return a 201 Created 
response </expectedResult>
        </specification>
        <step>
                <request>
  -                     <command 
varUsage="globalVariableServerName,globalVariableCollection">MKWORKSPACE 
/%globalVariableServerName%/workspace/%globalVariableCollection%/WS 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%/WS 
HTTP/1.1</command>
                        <header>Content-length: 0</header>
                </request>
                <response>
  @@ -20,7 +45,7 @@
        <cleanup>
                <step>
                        <request>
  -                             <command 
varUsage="globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/workspace/%globalVariableCollection%/WS HTTP/1.1</command>
  +                             <command 
varUsage="globalVariableCollection,globalVariableServerName,WS">DELETE %WS%/WS 
HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header>Destroy: NoUndelete</header>
                                <header>Translate: f</header>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to