← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1541119] [NEW] Running neutron unit tests creates 'fip-priorities' file in directory

 

Public bug reported:

I noticed a couple of untracked files in my git repo, one being 'fip-
priorities'.  I deleted it and re-ran 'tox -e py27', but it was re-
created:

--> cat fip-priorities
<MagicMock name='get_floating_ips.__getitem__()' id='140298371491792'>,67778

dvr_fip_ns.py is where it's used in a path definition, but it's actually
in the ItemAllocator class where the file is read and written.  Since
this is a unit test it should have been mocked-out so the file is not
created, just need to track down where to do that.

** 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/1541119

Title:
  Running neutron unit tests creates 'fip-priorities' file in directory

Status in neutron:
  New

Bug description:
  I noticed a couple of untracked files in my git repo, one being 'fip-
  priorities'.  I deleted it and re-ran 'tox -e py27', but it was re-
  created:

  --> cat fip-priorities
  <MagicMock name='get_floating_ips.__getitem__()' id='140298371491792'>,67778

  dvr_fip_ns.py is where it's used in a path definition, but it's
  actually in the ItemAllocator class where the file is read and
  written.  Since this is a unit test it should have been mocked-out so
  the file is not created, just need to track down where to do that.

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


Follow ups