equal
deleted
inserted
replaced
114 test_db_id = 'ldap-feed' |
114 test_db_id = 'ldap-feed' |
115 loglevel = 'ERROR' |
115 loglevel = 'ERROR' |
116 |
116 |
117 @classmethod |
117 @classmethod |
118 def setUpClass(cls): |
118 def setUpClass(cls): |
119 if not os.path.exists('/usr/sbin/slapd'): |
119 for path in ('/usr/sbin/slapd', |
120 raise unittest.SkipTest('slapd not found') |
120 '/usr/sbin/slapadd', |
|
121 '/usr/bin/ldapmodify'): |
|
122 if not os.path.exists(path): |
|
123 raise unittest.SkipTest('%s not found' % path) |
121 from cubicweb.cwctl import init_cmdline_log_threshold |
124 from cubicweb.cwctl import init_cmdline_log_threshold |
122 init_cmdline_log_threshold(cls.config, cls.loglevel) |
125 init_cmdline_log_threshold(cls.config, cls.loglevel) |
123 cls._tmpdir = create_slapd_configuration(cls) |
126 cls._tmpdir = create_slapd_configuration(cls) |
124 |
127 |
125 @classmethod |
128 @classmethod |