From: Stefan Metzmacher Date: Fri, 5 Feb 2016 07:37:53 +0000 (+0100) Subject: s4:dsdb/tests: let password_lockout.py reduce the values for lockoutDuration and... X-Git-Tag: tdb-1.3.10~615 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e6c22dbbe5a2da93bf2aa1beea3e5a0e23a2ae3;p=thirdparty%2Fsamba.git 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 --- 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),