← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Reviewed:  https://review.openstack.org/283843
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f3a0d3d31531cfe9e2973114076b14381d366eb5
Submitter: Jenkins
Branch:    master

commit f3a0d3d31531cfe9e2973114076b14381d366eb5
Author: Abishek Subramanian <absubram@xxxxxxxxx>
Date:   Tue Feb 23 17:44:18 2016 -0500

    Ensure DVR unit tests use '/tmp' directory
    
    Running 'tox -e py27' creates files in the local directory.
    This fix ensures the /tmp directory is used instead.
    
    Change-Id: If545b8795570eb424483f554fef8ad6170fa7ed9
    Closes-Bug: #1541119


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
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:
  Fix Released

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


References