Public bug reported:

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.

** Affects: keystone
     Importance: Undecided
     Assignee: Brant Knudson (blk-u)
         Status: In Progress

-- 
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 in test_time_string_to_int_conversions

Status in OpenStack Identity (Keystone):
  In Progress

Bug description:
  
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1429663/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to