mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
py3/tests/kcc: turn error into failure for flapping.d/kcc
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
e404b6aaf5
commit
204bd0e447
@ -62,7 +62,10 @@ class KCCTests(samba.tests.TestCase):
|
||||
my_kcc = kcc.KCC(unix_now, False, False, False, False)
|
||||
my_kcc.load_samdb("ldap://%s" % os.environ["SERVER"],
|
||||
self.lp, self.creds)
|
||||
dsas = my_kcc.list_dsas()
|
||||
try:
|
||||
dsas = my_kcc.list_dsas()
|
||||
except kcc.KCCError as e:
|
||||
self.fail("kcc.list_dsas failed with %s" % e)
|
||||
env = os.environ['TEST_ENV']
|
||||
for expected_dsa in ENV_DSAS[env]:
|
||||
self.assertIn(expected_dsa, dsas)
|
||||
|
@ -1 +1 @@
|
||||
samba.tests.kcc.python3.samba.tests.kcc.KCCTests.test_verify
|
||||
samba.tests.kcc.python3.samba.tests.kcc.KCCTests
|
||||
|
Loading…
x
Reference in New Issue
Block a user