1
0
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:
Douglas Bagnall 2018-10-17 09:50:41 +13:00 committed by Douglas Bagnall
parent e404b6aaf5
commit 204bd0e447
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -1 +1 @@
samba.tests.kcc.python3.samba.tests.kcc.KCCTests.test_verify
samba.tests.kcc.python3.samba.tests.kcc.KCCTests