You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2019/01/19 16:50:05 UTC
svn commit: r1851676 -
/subversion/trunk/subversion/tests/cmdline/svnauthz_tests.py
Author: brane
Date: Sat Jan 19 16:50:05 2019
New Revision: 1851676
URL: http://svn.apache.org/viewvc?rev=1851676&view=rev
Log:
Add a new XFail test for the authz parser for the validity of empty groups.
* subversion/tests/cmdline/svnauthz_tests.py
(svnauthz_empty_group_test): New test case.
(test_list): Run it.
Found by: Doug Robinson
Modified:
subversion/trunk/subversion/tests/cmdline/svnauthz_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/svnauthz_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svnauthz_tests.py?rev=1851676&r1=1851675&r2=1851676&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svnauthz_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svnauthz_tests.py Sat Jan 19 16:50:05 2019
@@ -965,6 +965,25 @@ def svnauthz_inverted_selector_test(sbox
os.remove(authz_path)
+@XFail()
+#TODO: @Issue(XXX)
+def svnauthz_empty_group_test(sbox):
+ "test empty group definition"
+
+
+ # build an authz file
+ authz_content = ("[groups]\n"
+ "grouped =\n"
+
+ "[A:/]\n"
+ "@grouped = rw\n")
+
+ (authz_fd, authz_path) = tempfile.mkstemp()
+ svntest.main.file_write(authz_path, authz_content)
+ svntest.actions.run_and_verify_svnauthz(
+ [], [], 0, False, 'validate', authz_path)
+
+
########################################################################
# Run the tests
@@ -984,6 +1003,7 @@ test_list = [ None,
svnauthz_compat_mode_file_test,
svnauthz_compat_mode_repo_test,
svnauthz_inverted_selector_test,
+ svnauthz_empty_group_test,
]
if __name__ == '__main__':