← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1363058] [NEW] cfg.CONF.state_path set to wrong value in tests

 

Public bug reported:

cfg.CONF.state_path is set to a random temporary directory in
neutron.tests.base:BaseTestCase.setUp. This value was then over written
in neutron.tests.unit.__init__. Tests that need to read or otherwise use
cfg.CONF.state_path were getting the directory from which the tests were
running and not the temporary directory specially created for the
current test run.

Note that the usage of state_path to set lock_path, dhcp state path and
the likes was working as expected, and was not affected by this bug.

** Affects: neutron
     Importance: Undecided
     Assignee: Assaf Muller (amuller)
         Status: In Progress


** Tags: unittest

** Changed in: neutron
     Assignee: (unassigned) => Assaf Muller (amuller)

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

Title:
  cfg.CONF.state_path set to wrong value in tests

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  cfg.CONF.state_path is set to a random temporary directory in
  neutron.tests.base:BaseTestCase.setUp. This value was then over
  written in neutron.tests.unit.__init__. Tests that need to read or
  otherwise use cfg.CONF.state_path were getting the directory from
  which the tests were running and not the temporary directory specially
  created for the current test run.

  Note that the usage of state_path to set lock_path, dhcp state path
  and the likes was working as expected, and was not affected by this
  bug.

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


Follow ups

References