Merge "Register DNSMASQ_OPTS in functional sanity tests" into stable/train

This commit is contained in:
Zuul 2020-03-25 08:49:27 +00:00 committed by Gerrit Code Review
commit a0b9235ed5
1 changed files with 7 additions and 0 deletions

View File

@ -13,7 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
from neutron.cmd.sanity import checks
from neutron.conf.agent import dhcp as dhcp_conf
from neutron.tests.functional import base
@ -24,6 +27,10 @@ class SanityTestCase(base.BaseLoggingTestCase):
neutron-sanity-check runs without throwing an exception, as in the case
where someone modifies the API without updating the check script.
"""
def setUp(self):
super(SanityTestCase, self).setUp()
# needed for test_dnsmasq_version()
cfg.CONF.register_opts(dhcp_conf.DNSMASQ_OPTS)
def test_nova_notify_runs(self):
checks.nova_notify_supported()