test_l3_agent.TestL3AgentEventHandler unit tests cannot be run individually

Bug #1313812 reported by Henry Gessau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Henry Gessau

Bug Description

When trying to run the test_l3_agent unit tests individually the following test case fails:

======================================================================
ERROR: neutron.tests.unit.test_l3_agent.TestL3AgentEventHandler.test_spawn_metadata_proxy
----------------------------------------------------------------------
_StringException: Empty attachments:
  pythonlogging:''
  pythonlogging:'neutron.api.extensions'

Traceback (most recent call last):
  File "/home/henry/Dev/neutron/neutron/tests/unit/test_l3_agent.py", line 1203, in setUp
    'interface_driver', 'neutron.agent.linux.interface.NullDriver'
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1547, in __inner
    result = f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1797, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2106, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: interface_driver

Tags: unittest
Henry Gessau (gessau)
Changed in neutron:
assignee: nobody → Henry Gessau (gessau)
Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
Henry Gessau (gessau)
summary: - test_l3_agent unit tests cannot be run individually
+ test_l3_agent.TestL3AgentEventHandler unit tests cannot be run
+ individually
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to neutron (master)

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

commit 2a51109aecdfd10b153badbc0514948db10585c8
Author: Henry Gessau <email address hidden>
Date: Mon Apr 28 13:41:18 2014 -0400

    Allow test_l3_agent unit test to run individually

    When the test_l3_agent.TestL3AgentEventHandler test case is run
    after test discovery it passes because discovery imports files
    that registers all the config options. For the test case to run
    individually we need to explicitly register the config options
    used in the test.

    Change-Id: Ic31503ad7be8601ff843dbdc8edf5856ce8b0e39
    Closes-bug: #1313812

Changed in neutron:
status: In Progress → Fix Committed
Kyle Mestery (mestery)
Changed in neutron:
milestone: none → juno-1
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.