diff options
author | Noel Power <noel.power@suse.com> | 2018-09-24 14:37:50 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-11-05 12:44:32 +0100 |
commit | 1f7757ef4eae87fbc8c35fd2bd5ba9e3e55124ce (patch) | |
tree | 9a72970197d76c421cc8fc3741a8ee88fede6959 /selftest | |
parent | 339a86a6a0c6285e34848621a338b794581ec35e (diff) | |
download | samba-1f7757ef4eae87fbc8c35fd2bd5ba9e3e55124ce.tar.gz |
lib/ldb/tests: add test for ldb.Dn passed utf8 unicode
object dn format should be a utf8 encoded string
Note: Currently this fails in python2 as the c python binding for
the dn string param uses PyArg_ParseTupleAndKeywords() with 's'
format, this will accept str *or* unicode in the default encoding.
The default encoding in python2 is... ascii.
Also adding here a knownfail to squash the error produced by the test.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit d1492ab919b19d1ca72f1d7c97ac0ca3bee13a2a)
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/knownfail | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/selftest/knownfail b/selftest/knownfail index baf3d57a31a..a122b27ad21 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -349,3 +349,5 @@ # Disabling NTLM means you can't use samr to change the password ^samba.tests.ntlmdisabled.python\(ktest\).ntlmdisabled.NtlmDisabledTests.test_samr_change_password\(ktest\) ^samba.tests.ntlmdisabled.python\(ad_dc_no_ntlm\).ntlmdisabled.NtlmDisabledTests.test_ntlm_connection\(ad_dc_no_ntlm\) +# Ldb test api.SimpleLdb.test_utf8_ldb_Dn is expected to fail +^ldb.python.api.SimpleLdb.test_utf8_ldb_Dn(none) |