← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1418704] [NEW] neutron l3_init "unit" test requires linux

 

Public bug reported:

This test bombs on macs:
neutron.tests.unit.test_linux_interface.TestABCDriver.test_l3_init_with_ipv6


Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''
      pythonlogging:'neutron.api.extensions'
      stderr
      stdout
    
    Traceback (most recent call last):
      File "neutron/tests/unit/test_linux_interface.py", line 138, in test_l3_init_with_ipv6
        mock.call().addr.delete(6, '2001:db8:a::123/64')])
      File "/Users/dougw/work/a10/neutron/.tox/py27/lib/python2.7/site-packages/mock.py", line 863, in assert_has_calls
        'Actual: %r' % (calls, self.mock_calls)
    AssertionError: Calls not found.
    Expected: [call('tap0', 'sudo', namespace='12345678-1234-5678-90ab-ba0987654321'), call().addr.list(scope='global', filters=['permanent']), call().addr.add(6, '2001:db8:a::124/64', '2001:db8:a:0:ffff:ffff:ffff:ffff'), call().addr.delete(6, '2001:db8:a::123/64')]
    Actual: [call(),
     call('tap0', 'sudo', namespace='12345678-1234-5678-90ab-ba0987654321'),
     call().addr.list(scope='global', filters=['permanent']),
     call().addr.add(6, '2001:db8:a::124/64', '2001:db8:a::ffff:ffff:ffff:ffff'),
     call().addr.delete(6, '2001:db8:a::123/64'),
     call().route.list_onlink_routes(),
     call().route.list_onlink_routes().__iter__()]
    
    Traceback (most recent call last):
    _StringException: Empty attachments:
      pythonlogging:''
      pythonlogging:'neutron.api.extensions'
      stderr
      stdout


A unit test should not require ip namespaces and linux commands.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1418704

Title:
  neutron l3_init "unit" test requires linux

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  This test bombs on macs:
  neutron.tests.unit.test_linux_interface.TestABCDriver.test_l3_init_with_ipv6

  
  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
      _StringException: Empty attachments:
        pythonlogging:''
        pythonlogging:'neutron.api.extensions'
        stderr
        stdout
      
      Traceback (most recent call last):
        File "neutron/tests/unit/test_linux_interface.py", line 138, in test_l3_init_with_ipv6
          mock.call().addr.delete(6, '2001:db8:a::123/64')])
        File "/Users/dougw/work/a10/neutron/.tox/py27/lib/python2.7/site-packages/mock.py", line 863, in assert_has_calls
          'Actual: %r' % (calls, self.mock_calls)
      AssertionError: Calls not found.
      Expected: [call('tap0', 'sudo', namespace='12345678-1234-5678-90ab-ba0987654321'), call().addr.list(scope='global', filters=['permanent']), call().addr.add(6, '2001:db8:a::124/64', '2001:db8:a:0:ffff:ffff:ffff:ffff'), call().addr.delete(6, '2001:db8:a::123/64')]
      Actual: [call(),
       call('tap0', 'sudo', namespace='12345678-1234-5678-90ab-ba0987654321'),
       call().addr.list(scope='global', filters=['permanent']),
       call().addr.add(6, '2001:db8:a::124/64', '2001:db8:a::ffff:ffff:ffff:ffff'),
       call().addr.delete(6, '2001:db8:a::123/64'),
       call().route.list_onlink_routes(),
       call().route.list_onlink_routes().__iter__()]
      
      Traceback (most recent call last):
      _StringException: Empty attachments:
        pythonlogging:''
        pythonlogging:'neutron.api.extensions'
        stderr
        stdout

  
  A unit test should not require ip namespaces and linux commands.

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


Follow ups

References