From eba004c1992ca7e21abb8af55ecd913f5ae0bdc6 Mon Sep 17 00:00:00 2001 From: Simon Pichugin Date: Wed, 4 Jan 2023 15:30:15 -0800 Subject: [PATCH] Disable openldap-servers tests --- Tests/t_bind.py | 1 + Tests/t_cext.py | 1 + Tests/t_edit.py | 1 + Tests/t_ldap_options.py | 1 + Tests/t_ldap_sasl.py | 1 + Tests/t_ldap_schema_subentry.py | 1 + Tests/t_ldap_syncrepl.py | 2 ++ Tests/t_ldapobject.py | 1 + Tests/t_slapdobject.py | 1 + 9 files changed, 10 insertions(+) diff --git a/Tests/t_bind.py b/Tests/t_bind.py index ba90c4c..653b871 100644 --- a/Tests/t_bind.py +++ b/Tests/t_bind.py @@ -9,6 +9,7 @@ from ldap.ldapobject import LDAPObject from slapdtest import SlapdTestCase +@unittest.skip("openldap-server package is absent") class TestBinds(SlapdTestCase): unicode_val = "abc\U0001f498def" unicode_val_bytes = unicode_val.encode('utf-8') diff --git a/Tests/t_cext.py b/Tests/t_cext.py index 33fbf29..8035354 100644 --- a/Tests/t_cext.py +++ b/Tests/t_cext.py @@ -17,6 +17,7 @@ import _ldap from slapdtest import SlapdTestCase, requires_tls, requires_init_fd +@unittest.skip("openldap-server package is absent") class TestLdapCExtension(SlapdTestCase): """ These tests apply only to the _ldap module and therefore bypass the diff --git a/Tests/t_edit.py b/Tests/t_edit.py index 5d8b3f0..757de9d 100644 --- a/Tests/t_edit.py +++ b/Tests/t_edit.py @@ -9,6 +9,7 @@ from ldap.ldapobject import LDAPObject from slapdtest import SlapdTestCase +@unittest.skip("openldap-server package is absent") class EditionTests(SlapdTestCase): @classmethod diff --git a/Tests/t_ldap_options.py b/Tests/t_ldap_options.py index e9bef59..2fea7a3 100644 --- a/Tests/t_ldap_options.py +++ b/Tests/t_ldap_options.py @@ -135,6 +135,7 @@ class TestGlobalOptions(BaseTestOptions, unittest.TestCase): return ldap.set_option(option, value) +@unittest.skip("openldap-server package is absent") class TestLDAPObjectOptions(BaseTestOptions, SlapdTestCase): """Test setting/getting connection-specific options """ diff --git a/Tests/t_ldap_sasl.py b/Tests/t_ldap_sasl.py index 40ab27e..ef6aec0 100644 --- a/Tests/t_ldap_sasl.py +++ b/Tests/t_ldap_sasl.py @@ -37,6 +37,7 @@ cn: {certuser} """ +@unittest.skip("openldap-server package is absent") @requires_sasl() class TestSasl(SlapdTestCase): ldap_object_class = SimpleLDAPObject diff --git a/Tests/t_ldap_schema_subentry.py b/Tests/t_ldap_schema_subentry.py index 60a584d..691fc5b 100644 --- a/Tests/t_ldap_schema_subentry.py +++ b/Tests/t_ldap_schema_subentry.py @@ -236,6 +236,7 @@ class TestAttributes(unittest.TestCase): self.assertEqual(cls.x_origin, ('RFC 4519',)) +@unittest.skip("openldap-server package is absent") class TestSubschemaUrlfetchSlapd(SlapdTestCase): ldap_object_class = SimpleLDAPObject diff --git a/Tests/t_ldap_syncrepl.py b/Tests/t_ldap_syncrepl.py index 6acc82c..7e54830 100644 --- a/Tests/t_ldap_syncrepl.py +++ b/Tests/t_ldap_syncrepl.py @@ -265,6 +265,7 @@ class SyncreplClient(SimpleLDAPObject, SyncreplConsumer): pass +@unittest.skip("openldap-server package is absent") class BaseSyncreplTests: """ This is a test of all the basic Syncrepl operations. It covers starting a @@ -430,6 +431,7 @@ class BaseSyncreplTests: # should pick it up during the persist phase. +@unittest.skip("openldap-server package is absent") class TestSyncrepl(BaseSyncreplTests, SlapdTestCase): def setUp(self): super().setUp() diff --git a/Tests/t_ldapobject.py b/Tests/t_ldapobject.py index ccc7d21..dc7a4b8 100644 --- a/Tests/t_ldapobject.py +++ b/Tests/t_ldapobject.py @@ -88,6 +88,7 @@ olcObjectClasses: ( 1.3.6.1.4.1.56207.1.2.2 NAME 'myClass' X-ORIGIN 'foobar' )""" +@unittest.skip("openldap-server package is absent") class Test00_SimpleLDAPObject(SlapdTestCase): """ test LDAP search operations diff --git a/Tests/t_slapdobject.py b/Tests/t_slapdobject.py index e1cc971..c9b693d 100644 --- a/Tests/t_slapdobject.py +++ b/Tests/t_slapdobject.py @@ -3,6 +3,7 @@ import unittest import slapdtest +@unittest.skip("openldap-server package is absent") class TestSlapdObject(unittest.TestCase): def test_context_manager(self): with slapdtest.SlapdObject() as server: -- 2.38.1