You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ka...@apache.org on 2011/02/09 10:20:34 UTC

svn commit: r1068802 - /subversion/trunk/subversion/tests/cmdline/authz_tests.py

Author: kameshj
Date: Wed Feb  9 09:20:34 2011
New Revision: 1068802

URL: http://svn.apache.org/viewvc?rev=1068802&view=rev
Log:
XFail testcase for the issue 3781

* subversion/tests/cmdline/authz_tests.py
  (case_sensitive_authz): Now handles the svnserve errors too.
   Prior to this commit the expected error was more specific to the http
   protocol and testing minute error codes which are *not* a real 
   concern for this test.

Patch by: Prabhu Gnana Sundar <prabhugs{_AT_}collab.net>

Modified:
    subversion/trunk/subversion/tests/cmdline/authz_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/authz_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/authz_tests.py?rev=1068802&r1=1068801&r2=1068802&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/authz_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/authz_tests.py Wed Feb  9 09:20:34 2011
@@ -1107,11 +1107,11 @@ def case_sensitive_authz(sbox):
 
   # error messages
   expected_error_for_commit = "Commit failed"
-  expected_error_for_cat = "svn: E175013: Unable to connect to a repository"+ \
-                            " at URL '" + mu_url + "'\n" + \
-                            "svn: E175013: Access to '/" + mu_repo_path + \
-                            "' forbidden\n" + \
-                            "svn: E175009: XML parsing failed: (403 Forbidden)"
+
+  if sbox.repo_url.startswith("http"):
+    expected_error_for_cat = ".*[Ff]orbidden.*"
+  else:
+    expected_error_for_cat = ".*svn: E170001: Authorization failed.*"
 
   # test the case-sensitivity of the path inside the repo
   write_authz_file(sbox, {"/": "jrandom = r",