From 9e6c22dbbe5a2da93bf2aa1beea3e5a0e23a2ae3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 5 Feb 2016 08:37:53 +0100 Subject: [PATCH] s4:dsdb/tests: let password_lockout.py reduce the values for lockoutDuration and lockOutObservationWindow This reduces the runtime of the test while still producing reliable results. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/dsdb/tests/python/password_lockout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/dsdb/tests/python/password_lockout.py b/source4/dsdb/tests/python/password_lockout.py index 7cd7d503333..962741d78ca 100755 --- a/source4/dsdb/tests/python/password_lockout.py +++ b/source4/dsdb/tests/python/password_lockout.py @@ -332,7 +332,7 @@ lockoutThreshold: """ + str(lockoutThreshold) + """ m = Message() m.dn = Dn(self.ldb, base_dn) - self.account_lockout_duration = 10 + self.account_lockout_duration = 2 account_lockout_duration_ticks = -int(self.account_lockout_duration * (1e7)) m["lockoutDuration"] = MessageElement(str(account_lockout_duration_ticks), @@ -342,7 +342,7 @@ lockoutThreshold: """ + str(lockoutThreshold) + """ m["lockoutThreshold"] = MessageElement(str(account_lockout_threshold), FLAG_MOD_REPLACE, "lockoutThreshold") - self.lockout_observation_window = 5 + self.lockout_observation_window = 2 lockout_observation_window_ticks = -int(self.lockout_observation_window * (1e7)) m["lockOutObservationWindow"] = MessageElement(str(lockout_observation_window_ticks), -- 2.47.3