zrhoffman / rpms / 389-ds-base

Forked from rpms/389-ds-base 3 years ago
Clone

Blame SOURCES/0063-Ticket-49082-Adjusted-the-CI-test-case-to-the-fix.patch

723150
From ee9b5c5dc3f4382ee73abefb9d2e3c275e62d6c8 Mon Sep 17 00:00:00 2001
723150
From: Noriko Hosoi <nhosoi@redhat.com>
723150
Date: Wed, 11 Jan 2017 15:14:07 -0800
723150
Subject: [PATCH 63/67] Ticket #49082 - Adjusted the CI test case to the fix.
723150
723150
Description: Fix password expiration related shadow attributes
723150
(cherry picked from commit 5a6a5a18d0458bd147af57a06158245f329ddba3)
723150
(cherry picked from commit b9e565df5d304ba9fb516b987ad62480590a5845)
723150
---
723150
 dirsrvtests/tests/tickets/ticket548_test.py | 7 +++++++
723150
 1 file changed, 7 insertions(+)
723150
723150
diff --git a/dirsrvtests/tests/tickets/ticket548_test.py b/dirsrvtests/tests/tickets/ticket548_test.py
723150
index d29fa53..dea7c3c 100644
723150
--- a/dirsrvtests/tests/tickets/ticket548_test.py
723150
+++ b/dirsrvtests/tests/tickets/ticket548_test.py
723150
@@ -98,6 +98,13 @@ def set_global_pwpolicy(topology, min_=1, max_=10, warn=3):
723150
         log.error('Failed to set passwordMinAge: error ' + e.message['desc'])
723150
         assert False
723150
 
723150
+    log.info("		Set global password Expiration -- on\n")
723150
+    try:
723150
+        topology_st.standalone.modify_s(DN_CONFIG, [(ldap.MOD_REPLACE, 'passwordExp', 'on')])
723150
+    except ldap.LDAPError as e:
723150
+        log.error('Failed to set passwordExp: error ' + e.message['desc'])
723150
+        assert False
723150
+
723150
     log.info("		Set global password Max Age -- %s days\n" % max_)
723150
     try:
723150
         topology.standalone.modify_s(DN_CONFIG, [(ldap.MOD_REPLACE, 'passwordMaxAge', '%s' % max_secs)])
723150
-- 
723150
2.9.3
723150