← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1377346] [NEW] ML2: Invalid unit test case

 

Public bug reported:

In test_create_network_multiprovider() , an invalid comparison is used
...

tz = network['network'][mpnet.SEGMENTS]
for tz in data['network'][mpnet.SEGMENTS]:  <=== tz from previous statement is lost
   for field in [pnet.NETWORK_TYPE, pnet.PHYSICAL_NETWORK, 
                         pnet.SEGMENTATION_ID]:
        self.assertEqual(tz.get(field), tz.get(field))  <===== this is always true

** Affects: neutron
     Importance: Undecided
     Assignee: Manish Godara (manishatyhoo)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Manish Godara (manishatyhoo)

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

Title:
  ML2: Invalid unit test case

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  In test_create_network_multiprovider() , an invalid comparison is used
  ...

  tz = network['network'][mpnet.SEGMENTS]
  for tz in data['network'][mpnet.SEGMENTS]:  <=== tz from previous statement is lost
     for field in [pnet.NETWORK_TYPE, pnet.PHYSICAL_NETWORK, 
                           pnet.SEGMENTATION_ID]:
          self.assertEqual(tz.get(field), tz.get(field))  <===== this is always true

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


Follow ups

References