From: Douglas Bagnall Date: Fri, 27 Oct 2023 03:14:04 +0000 (+1300) Subject: pytest: samba_tool domain auth policy fix for SDDL err msg X-Git-Tag: talloc-2.4.2~890 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d915443ab0076389036890c0046de9d33c5d7be6;p=thirdparty%2Fsamba.git pytest: samba_tool domain auth policy fix for SDDL err msg Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/samba_tool/domain_auth_policy.py b/python/samba/tests/samba_tool/domain_auth_policy.py index 9720f788e65..445be2ccec6 100644 --- a/python/samba/tests/samba_tool/domain_auth_policy.py +++ b/python/samba/tests/samba_tool/domain_auth_policy.py @@ -294,8 +294,8 @@ class AuthPolicyCmdTestCase(BaseAuthCmdTest): "*INVALID SDDL*") self.assertEqual(result, -1) - self.assertIn( - "msDS-UserAllowedToAuthenticateFrom: Unable to parse SDDL", err) + self.assertIn("Unable to parse SDDL", err) + self.assertIn(" *INVALID SDDL*\n ^\n unknown error", err) def test_create__already_exists(self): """Test creating a new authentication policy that already exists.""" diff --git a/selftest/knownfail.d/samba-tool-sddl-errors b/selftest/knownfail.d/samba-tool-sddl-errors deleted file mode 100644 index a1b9e1a9e29..00000000000 --- a/selftest/knownfail.d/samba-tool-sddl-errors +++ /dev/null @@ -1 +0,0 @@ -samba.tests.samba_tool.domain_auth_policy.samba.tests.samba_tool.domain_auth_policy.AuthPolicyCmdTestCase.test_authentication_policy_create_invalid_sddl