tpokorra / KolabScripts

some scripts useful for Kolab3 and higher, written by TBits.net, including patches already submitted to Kolab Bugzilla
14 stars 13 forks source link

Debian: lastLogin test fails #77

Open tpokorra opened 7 years ago

tpokorra commented 7 years ago
root@005-build04lxc:~/lbs-kolab-test/kolab-test/KolabScripts-KolabWinterfell/pySeleniumTests# ./testLastLogin.py KolabWAPLastLogin.test_last_login
14:57:01 Running test: test_last_login
14:57:02 User is logged in to WAP: Directory Manager
14:57:03 loading
14:57:42 User user20161221145704 has been created. Login with user20161221145704.user20161221145704@lbs.solidcharity.com and password Test1234!.
14:57:42 User has logged out from WAP
14:58:02 User is logged in to Roundcube: user20161221145704.user20161221145704@lbs.solidcharity.com
14:58:03 User has logged out from Roundcube
E14:58:03 self.driver.page_source has been written to /tmp/output20161221145803.html

======================================================================
ERROR: test_last_login (__main__.KolabWAPLastLogin)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./testLastLogin.py", line 35, in test_last_login
    self.assertTrue(int(value) > 1388534400, "login date should be after 1 January 2014")
TypeError: int() argument must be a string or a number, not 'NoneType'

----------------------------------------------------------------------
Ran 1 test in 63.233s

FAILED (errors=1)

initTBitsUserTypes.php should add tbitskolabuser to the objectclasses of the kolab user. But this is not applied or reverted, at the time when the lastLogin test runs, and then LastLogin is not available in LDAP.

tpokorra commented 7 years ago

maybe related to LDAP cache #61.

But I cannot even see it in Kolab Webadmin Settings, Kolab User.