Fix user account status for manually blocked users
User account status in web interface is displayed incorrectly
if account is disabled (or enabled) via ssh.
Test manually:
1. Create new user using web interface
2. Change user account expiration date via ssh
chage -E 1970-01-01 <new user>
User account is blocked
3. Check user status in web interface.
Blocked user account status should be displayed as "Disabled".
Change-Id: I15e93a87653289b5ba76313895da0cf7e5dd2c7c
Signed-off-by: Denis Zlobin <zlobin.d.al@gmail.com>
diff --git a/test/mock_user_mgr.hpp b/test/mock_user_mgr.hpp
index 3440299..99f2b37 100644
--- a/test/mock_user_mgr.hpp
+++ b/test/mock_user_mgr.hpp
@@ -17,6 +17,7 @@
MOCK_METHOD0(getPrivilegeMapperObject, DbusUserObj());
MOCK_METHOD1(userLockedForFailedAttempt, bool(const std::string& userName));
MOCK_METHOD1(userPasswordExpired, bool(const std::string& userName));
+ MOCK_METHOD1(isUserEnabled, bool(const std::string& userName));
MOCK_CONST_METHOD1(getPrimaryGroup, gid_t(const std::string& userName));
MOCK_CONST_METHOD3(isGroupMember,
bool(const std::string& userName, gid_t primaryGid,