Comment 0 for bug 1429663

Revision history for this message
Brant Knudson (blk-u) wrote : local tests failing in test_time_string_to_int_conversions

When running local tests with tox -e py27, one of the tests is failing:

keystone.tests.unit.token.test_fernet_provider.TestBaseTokenFormatter.test_time_string_to_int_conversions
---------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''-1
      stderr
      stdout

    pythonlogging:'': {{{
    Adding cache-proxy 'keystone.tests.unit.test_cache.CacheIsolatingProxy' to backend.
    Created a new key: /tmp/tmpDxjwUU/tmpUgUvin/0
    Starting key rotation with 1 key files: ['/tmp/tmpDxjwUU/tmpUgUvin/0']
    Current primary key is: 0
    Next primary key will be: 1
    Promoted key 0 to be the primary: 1
    Created a new key: /tmp/tmpDxjwUU/tmpUgUvin/0
    Excess keys to purge: []
    }}}

    Traceback (most recent call last):
      File "keystone/tests/unit/token/test_fernet_provider.py", line 105, in test_time_string_to_int_conversions
        self.assertEqual(expected_time_str, actual_time_str)
      File "/opt/stack/keystone/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 348, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/opt/stack/keystone/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
        raise mismatch_error
    MismatchError: '2015-03-08T22:13:49Z' != '2015-03-08T23:13:49Z'

    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''-1
      stderr
      stdout

    pythonlogging:'': {{{
    Adding cache-proxy 'keystone.tests.unit.test_cache.CacheIsolatingProxy' to backend.
    Created a new key: /tmp/tmpDxjwUU/tmpUgUvin/0
    Starting key rotation with 1 key files: ['/tmp/tmpDxjwUU/tmpUgUvin/0']
    Current primary key is: 0
    Next primary key will be: 1
    Promoted key 0 to be the primary: 1
    Created a new key: /tmp/tmpDxjwUU/tmpUgUvin/0
    Excess keys to purge: []
    }}}

    Traceback (most recent call last):
      File "keystone/tests/unit/token/test_fernet_provider.py", line 105, in test_time_string_to_int_conversions
        self.assertEqual(expected_time_str, actual_time_str)
      File "/opt/stack/keystone/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 348, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/opt/stack/keystone/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
        raise mismatch_error
    MismatchError: '2015-03-08T22:13:49Z' != '2015-03-08T23:13:49Z'

It's off by an hour for some reason.