This is an automated email from the git hooks/post-receive script.
vashirov pushed a commit to branch master
in repository 389-ds-base.
commit 5c2fa96367627152172939af18026b2c466467d1
Author: Viktor Ashirov <vashirov(a)redhat.com>
Date: Fri Sep 8 14:34:28 2017 +0200
Issue 49295 - Fix CI tests
Bug Description:
Test pwdPolicy_warning_test.py::test_default_behavior
had incorrect assumptions about password policy defaults.
Fix Description:
Change the expected assertion.
https://pagure.io/389-ds-base/issue/49295
Reviewed by: wibrown, mreynolds (Thanks!)
---
.../tests/suites/password/pwdPolicy_warning_test.py | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
b/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
index 714efe3..56e0017 100644
--- a/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
+++ b/dirsrvtests/tests/suites/password/pwdPolicy_warning_test.py
@@ -434,15 +434,15 @@ def test_default_behavior(topology_st, global_policy_default,
add_user):
:setup: Standalone DS instance with,
1. Global password policy configured as follows,
passwordExp: on
- passwordMaxAge: 86400
+ passwordMaxAge: 8640000
passwordWarning: 86400
passwordSendExpiringTime: off
2. User entry for binding to the server
:steps: 1. Bind as the user
2. Request the control for the user
- :expectedresults: Password expiry warning time should be returned by the
- server by the server since passwordMaxAge and
- passwordWarning are set to the same value
+ :expectedresults:
+ 1. Bind should be successful
+ 2. No control should be returned
"""
res_ctrls = None
@@ -451,12 +451,9 @@ def test_default_behavior(topology_st, global_policy_default,
add_user):
.format(USER_DN))
res_ctrls = get_password_warning(topology_st)
- log.info('Check that control is returned even'
- 'if passwordSendExpiringTime is set to off')
- assert res_ctrls
+ log.info('Check that no control is returned')
+ assert not res_ctrls
- log.info("user's password will expire in {:d} seconds" \
- .format(res_ctrls[0].timeBeforeExpiration))
finally:
log.info("Rebinding as DM")
topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.