]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Create bridges in ovsdb monitor functional tests
authorJakub Libosvar <libosvar@redhat.com>
Wed, 22 Apr 2015 14:47:33 +0000 (16:47 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 1 Jun 2015 17:09:12 +0000 (17:09 +0000)
The test waits inside for output from 'ovsdb-client monitor Bridge'
command but the command makes output only if there is a bridge present
in ovsdb. This patch adds an OVSBridgeFixture to setup so every test
case has a bridge for sure.

Change-Id: I40e1c99ec956c92fa1c7763eb98f7f2ce6fcd226
Closes-Bug: 1447191
(cherry picked from commit aa57c364defec8519bbed06fbce5aae4b23f147f)

neutron/tests/functional/agent/linux/test_ovsdb_monitor.py

index d1de2068f9d7ee84e667618bdbaaed7a133b2903..450a26192e19f017902b649942b9c1bdc41b6b6f 100644 (file)
@@ -48,6 +48,8 @@ class BaseMonitorTest(linux_base.BaseOVSLinuxTestCase):
                         root_helper=" ".join([functional_base.SUDO_CMD] * 2))
 
         self._check_test_requirements()
+        # ovsdb-client monitor needs to have a bridge to make any output
+        self.useFixture(net_helpers.OVSBridgeFixture())
 
     def _check_test_requirements(self):
         self.check_command(['ovsdb-client', 'list-dbs'],