You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2004/06/21 10:53:16 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/lock/code lock400.xml

luetzkendorf    2004/06/21 01:53:16

  Added:       testsuite/testsuite/junit/xmltestcases/functional/lock/code
                        lock400.xml
  Log:
  added
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/lock/code/lock400.xml
  
  Index: lock400.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract>Checks if Lock Method rejects invalid requests.</abstract>
      <description>The test case sends some invalid requests</description>
      <expectedResult>Status code returned by Lock Method must be 400</expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/help-doc.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">LOCK /%globalVariableServerName%/%globalVariableCollection%/help-doc.html 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:invalidLockType/>
            </A:locktype>
            <A:lockscope>
              <A:exclusive />
            </A:lockscope>
            <owner xmlns="DAV:">some owner</owner>
          </A:lockinfo>
        ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 400 Bad Request</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/help-doc.html 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:invalidLockScope/>
            </A:lockscope>
            <owner xmlns="DAV:">some owner</owner>
          </A:lockinfo>
        ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 400 Bad Request</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/help-doc.html HTTP/1.1</command>
      </request>
      <response>
        <command>HTTP/1.0 204 No Content</command>
      </response>
    </step>
  </test>
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org