Comment 0 for bug 1621200

Revision history for this message
Boris Bobrov (bbobrov) wrote : MySQLOpportunisticIdentityDriverTestCase.test_change_password fails in UTC+N timezone

Steps to reproduce:
1. dpkg-reconfigure tzdata and select there Europe/Moscow (UTC+3).
2. Configure opportunistic tests with the following command in mysql:
GRANT ALL PRIVILEGES ON *.* TO 'openstack_citest' @'%' identified by 'openstack_citest' WITH GRANT OPTION;
3. Run keystone.tests.unit.identity.backends.test_sql.MySQLOpportunisticIdentityDriverTestCase.test_change_password

Expected result: test pass

Actual result:
    Traceback (most recent call last):
      File "keystone/tests/unit/identity/backends/test_base.py", line 255, in test_change_password
        self.driver.authenticate(user['id'], new_password)
      File "keystone/identity/backends/sql.py", line 65, in authenticate
        raise AssertionError(_('Invalid user / password'))
    AssertionError: Invalid user / password