← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1478531] Re: Functional test for dhcp autoschedule does not check properly

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => liberty-3

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

Title:
  Functional test for dhcp autoschedule does not check properly

Status in neutron:
  Fix Released

Bug description:
  https://github.com/openstack/neutron/blob/801dedebbfc7ff4ae6421c793a1154ca0d169e6c/neutron/tests/functional/scheduler/test_dhcp_agent_scheduler.py#L394-L396

  
          for hosted_net_id in hosted_net_ids:
              self.assertIn(hosted_net_id, expected_hosted_networks,
                            message=msg + '[%s]' % hosted_net_id)

  
  this will always pass because hosted_net_ids is always a sub-list of expected_hosted_networks, even if the method under test doesn't do what it's supposed to. 

  The test should assert that each expected hosted network is in
  hosted_net_ids instead.

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


References