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 ju...@apache.org on 2002/09/30 19:06:36 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL ACL2UserDenyAllGrantRead_en.xml ACL2UserDenyAllGrantRead_en2.xml

juergen     2002/09/30 10:06:36

  Added:       testsuite/testsuite/junit/xmltestcases/I18N/ACL
                        ACL2UserDenyAllGrantRead_en.xml
                        ACL2UserDenyAllGrantRead_en2.xml
  Log:
  i18n
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL/ACL2UserDenyAllGrantRead_en.xml
  
  Index: ACL2UserDenyAllGrantRead_en.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test to check ACL command </abstract>
  		<description>
  		1) MKCOL command which creates a child collection (/àçèéäöüÄÖÜ)
  		2) ACL command which denies all access to the user %user% on the collection /àçèéäöüÄÖÜ
  		3) ACL command which grants read access to the all users
  		4) Head command carried out
  		</description>
  		<expectedResult> Two ACL and Head commands should all return 200 OK  </expectedResult>
  	</specification>
  	<step>
  		<user varUsage="user">2àçèéäöüÄÖÜ</user>
  		<password varUsage="user">2àçèéäöüÄÖÜ</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">2àçèéäöüÄÖÜ</user>
  		<password varUsage="user">2àçèéäöüÄÖÜ</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  			<header>Content-Type: text/xml; charset=utf-8</header>
  			<body varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[
        <D:acl xmlns:D="DAV:">
          <D:ace>
              <D:principal>
                 <D:href>%globalVariableUserPath%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:all /></D:privilege>
              </D:deny>         
           </D:ace>
        </D:acl>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">2àçèéäöüÄÖÜ</user>
  		<password varUsage="user">2àçèéäöüÄÖÜ</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  			<header>Content-Type: text/xml; charset=utf-8</header>
  			
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:read /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">HEAD  /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  			<header>Connection: Keep-Alive</header>
  			<header>Translate: f</header>
  			<body/>
  		</request>
  		<response>
  			<command>HTTP/1.1 200 OK</command>
  			<body/>
  		</response>
  	</step>
  	<!-- input test of read privilege -->
  	<cleanup>
  		<step>
  			<user varUsage="user">2àçèéäöüÄÖÜ</user>
  			<password varUsage="user">2àçèéäöüÄÖÜ</password>
  			<request>
  				<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  				<header>Content-Type: text/xml; charset=utf-8</header>
  				<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
        <D:acl xmlns:D="DAV:">
        </D:acl>]]></body>
  			</request>
  			<response>
  				<command>HTTP/1.0 200 OK</command>
  			</response>
  		</step>
  		<step>
  			<user varUsage="user">2àçèéäöüÄÖÜ</user>
  			<password varUsage="user">2àçèéäöüÄÖÜ</password>
  			<request>
  				<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  				<header>Accept-Language: en-us</header>
  				<header>Destroy: NoUndelete</header>
  				<header>Translate: f</header>
  				<header>Connection: Keep-Alive</header>
  			</request>
  			<response>
  				<command>HTTP/1.0 204 No Content</command>
  			</response>
  		</step>
  	</cleanup>
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL/ACL2UserDenyAllGrantRead_en2.xml
  
  Index: ACL2UserDenyAllGrantRead_en2.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test to check ACL command </abstract>
  		<description>
  		1) MKCOL command which creates a child collection (/àçèéäöüÄÖÜ)
  		2) ACL command which denies all access to the user %user% on the collection /àçèéäöüÄÖÜ
  		3) ACL command which grants read access to the all users
  		4) Head command carried out
  		</description>
  		<expectedResult> Two ACL and Head commands should all return 200 OK  </expectedResult>
  	</specification>
  	<step>
  		<user varUsage="user">2xdavxdavxdav</user>
  		<password varUsage="user">2xdavxdavxdav</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">2xdavxdavxdav</user>
  		<password varUsage="user">2xdavxdavxdav</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  			<header>Content-Type: text/xml; charset=utf-8</header>
  			<body varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[
        <D:acl xmlns:D="DAV:">
          <D:ace>
              <D:principal>
                 <D:href>%globalVariableUserPath%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:all /></D:privilege>
              </D:deny>         
           </D:ace>
        </D:acl>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">2xdavxdavxdav</user>
  		<password varUsage="user">2xdavxdavxdav</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  			<header>Content-Type: text/xml; charset=utf-8</header>
  			
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:all></D:all>
              </D:principal>
              <D:grant>
                 <D:privilege><D:read /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">HEAD  /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  			<header>Connection: Keep-Alive</header>
  			<header>Translate: f</header>
  			<body/>
  		</request>
  		<response>
  			<command>HTTP/1.1 200 OK</command>
  			<body/>
  		</response>
  	</step>
  	<!-- input test of read privilege -->
  	<cleanup>
  		<step>
  			<user varUsage="user">2xdavxdavxdav</user>
  			<password varUsage="user">2xdavxdavxdav</password>
  			<request>
  				<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  				<header>Content-Type: text/xml; charset=utf-8</header>
  				<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
        <D:acl xmlns:D="DAV:">
        </D:acl>]]></body>
  			</request>
  			<response>
  				<command>HTTP/1.0 200 OK</command>
  			</response>
  		</step>
  		<step>
  			<user varUsage="user">2xdavxdavxdav</user>
  			<password varUsage="user">2xdavxdavxdav</password>
  			<request>
  				<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/àçèéäöüÄÖÜ HTTP/1.1</command>
  				<header>Accept-Language: en-us</header>
  				<header>Destroy: NoUndelete</header>
  				<header>Translate: f</header>
  				<header>Connection: Keep-Alive</header>
  			</request>
  			<response>
  				<command>HTTP/1.0 204 No Content</command>
  			</response>
  		</step>
  	</cleanup>
  </test>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>