From 7a20b1293a29048de047b5d11012f7c30ec47a9c Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Fri, 19 Jul 2019 21:46:37 -0500 Subject: [PATCH] Switch test cases to sudo dependent KeepalivedManagerTestCase and BridgeMonitorTestCase both depend on sudo privileges. Change-Id: I5de14f3e2f969ab6bd5882b2c740afaba11eb957 --- neutron/tests/functional/agent/linux/test_keepalived.py | 2 +- neutron/tests/functional/agent/ovsdb/native/test_connection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/tests/functional/agent/linux/test_keepalived.py b/neutron/tests/functional/agent/linux/test_keepalived.py index e9c534f0868..f0c3831c185 100644 --- a/neutron/tests/functional/agent/linux/test_keepalived.py +++ b/neutron/tests/functional/agent/linux/test_keepalived.py @@ -26,7 +26,7 @@ from neutron.tests.functional import base from neutron.tests.unit.agent.linux import test_keepalived -class KeepalivedManagerTestCase(base.BaseLoggingTestCase, +class KeepalivedManagerTestCase(base.BaseSudoTestCase, test_keepalived.KeepalivedConfBaseMixin): def setUp(self): diff --git a/neutron/tests/functional/agent/ovsdb/native/test_connection.py b/neutron/tests/functional/agent/ovsdb/native/test_connection.py index f821801927b..ad5b7b71cb5 100644 --- a/neutron/tests/functional/agent/ovsdb/native/test_connection.py +++ b/neutron/tests/functional/agent/ovsdb/native/test_connection.py @@ -45,7 +45,7 @@ class WaitForBridgesEvent(event.RowEvent): return self.event.wait(self.timeout) -class BridgeMonitorTestCase(base.BaseLoggingTestCase): +class BridgeMonitorTestCase(base.BaseSudoTestCase): def _delete_bridges(self, bridges): for bridge in bridges: