]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix test fail in neutron.tests.unit.test_security_groups_rpc
authorAaron Rosen <arosen@nicira.com>
Wed, 24 Jul 2013 23:35:24 +0000 (16:35 -0700)
committerAaron Rosen <arosen@nicira.com>
Tue, 30 Jul 2013 22:38:23 +0000 (15:38 -0700)
If running:

tox -epy27 neutron.tests.unit.test_security_groups_rpc

Tests fail with: DuplicateOptError: duplicate option: root_helper
as this is already registered and can be removed.

Fixes bug: 1204700

Change-Id: I8b591357988c5546ae55b6531cf1786b7eb84e20

neutron/tests/unit/test_security_groups_rpc.py

index 68f2780143f5511373c6b78c8b4e16accce3d57e..0a24b7ad3e0669cd9f936c32523454be9942377b 100644 (file)
@@ -1110,11 +1110,6 @@ class TestSecurityGroupAgentWithIptables(base.BaseTestCase):
     def setUp(self):
         super(TestSecurityGroupAgentWithIptables, self).setUp()
         self.mox = mox.Mox()
-        agent_opts = [
-            cfg.StrOpt('root_helper', default='sudo'),
-        ]
-
-        cfg.CONF.register_opts(agent_opts, "AGENT")
         cfg.CONF.set_override(
             'firewall_driver',
             self.FIREWALL_DRIVER,