luetzkendorf    2004/09/03 07:39:47

  Added:       testsuite/testsuite/junit/xmltestcases/functional/lock/mix
                        killLock.xml
  Log:
  added
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/lock/mix/killLock.xml
  
  Index: killLock.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract>Test whether the Killing a Lock works.</abstract>
      <pre-Requisite>the user given in globalVariableRootUser must have the kill-lock 
        permission</pre-Requisite>
      <description>
        %user% creates a collection
        %user% locks the collection
        "a root user" unlocks the collection successfully 
      </description>
      <expectedResult></expectedResult>
  
      <condition name="authenticationEnabled">true</condition>
    </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">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
        <header>Timeout: Second-604800</header>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <A:lockinfo xmlns:A="DAV:">
    <A:locktype>
      <A:write />
    </A:locktype>
    <A:lockscope>
      <A:exclusive />
    </A:lockscope>
    <owner xmlns="DAV:">some owner</owner>
  </A:lockinfo>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 200 OK</command>
        <body 
varUsage="globalVariableUserPath,globalVariableServerName,user,host"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:prop xmlns:d="DAV:">
    <d:lockdiscovery>
      <d:activelock>
        <d:locktype>
          <d:write />
        </d:locktype>
        <d:lockscope>
          <d:exclusive />
        </d:lockscope>
        <d:depth>infinity</d:depth>
        <d:timeout>Second-604800</d:timeout>
        <d:locktoken>
          <d:href />
        </d:locktoken>
        <d:principal-URL>
          <d:href>%globalVariableUserPath%</d:href>
        </d:principal-URL>
        <d:owner>some owner</d:owner>
      </d:activelock>
    </d:lockdiscovery>
  </d:prop>
  
  ]]></body>
      </response>
    </step>
    <step>
      <user varUsage="globalVariableRootUser">%globalVariableRootUser%</user>
      <password varUsage="globalVariableRootUser">%globalVariableRootUser%</password>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">UNLOCK 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
        <header varUsage="automaticVariable1">Lock-Token: %varUsage%</header>
      </request>
      <response>
        <command>HTTP/1.0 204 No Content</command>
      </response>
    </step>
  
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
        <header varUsage="automaticVariable1"><![CDATA[If: (<%varUsage%>)]]></header>
      </request>
      <response>
        <command>HTTP/1.0 204 No Content</command>
      </response>
    </step>
  </test>
  
  
  
  

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

Reply via email to