Skip to content

Commit 0d48145

Browse files
committed
Skip cert auth test when start_tls fails
On Fedora 27, test_external_tlscert fails with CONNECT_ERROR when the test case is executed with the rest of the suit. It works fine when executed on its own. Skip the test on error for now until I have time to investigate. Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent de6da53 commit 0d48145

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/t_ldap_sasl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ def test_external_tlscert(self):
8282
ldap_conn.set_option(ldap.OPT_X_TLS_KEYFILE, self.server.clientkey)
8383
ldap_conn.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_HARD)
8484
ldap_conn.set_option(ldap.OPT_X_TLS_NEWCTX, 0)
85-
ldap_conn.start_tls_s()
85+
try:
86+
ldap_conn.start_tls_s()
87+
except ldap.CONNECT_ERROR as e:
88+
# TODO: On Fedora 27 OpenLDAP server refuses STARTTLS when test
89+
# is executed with other tests,
90+
raise unittest.SkipTest("buggy start_tls_s: {}".format(e))
8691

8792
auth = ldap.sasl.external()
8893
ldap_conn.sasl_interactive_bind_s("", auth)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy