yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #29725
[Bug 1429663] Re: local tests failing fernet tests
** Changed in: keystone
Status: Fix Committed => Fix Released
** Changed in: keystone
Milestone: None => kilo-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1429663
Title:
local tests failing fernet tests
Status in OpenStack Identity (Keystone):
Fix Released
Bug description:
When running local tests with tox -e py27, several fernet tests are
failing:
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_project_scoped_token_invalid_after_disabling_project
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_revoke_project_scoped_token
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_unscoped_token_is_invalid_after_changing_user_password
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_trust_scoped_token_is_invalid_after_disabling_trustor
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_unscoped_token_is_invalid_after_disabling_user
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_unscoped_token_is_invalid_after_disabling_user_domain
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_domain_scoped_token_is_invalid_after_deleting_grant
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_domain_scoped_token_invalid_after_disabling_domain
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_domain_scoped_token_is_invalid_after_disabling_user
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_trust_scoped_token_invalid_after_disabled_trustor_domain
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_project_scoped_token_invalid_after_changing_user_password
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_trust_scoped_token_invalid_after_changing_trustee_password
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_revoke_unscoped_token
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_trust_scoped_token_invalid_after_changing_trustor_password
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_trust_scoped_token_is_invalid_after_disabling_trustee
keystone.tests.unit.test_v3_auth.TestFernetTokenProvider.test_unscoped_token_is_invalid_after_enabling_disabled_user
Here's an example:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1429663/+subscriptions
References