From 8534a357afc2d8ed263d4f85512c1a0e1c2e8c47 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Tue, 3 Mar 2015 11:12:19 +0000 Subject: [PATCH] Fix lint and unit tests --- hooks/neutron_ovs_utils.py | 1 + unit_tests/test_neutron_ovs_hooks.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hooks/neutron_ovs_utils.py b/hooks/neutron_ovs_utils.py index 55a8c8d7..252656a0 100644 --- a/hooks/neutron_ovs_utils.py +++ b/hooks/neutron_ovs_utils.py @@ -116,5 +116,6 @@ def get_shared_secret(): if 'shared_secret' in ctxt: return ctxt['shared_secret'] + def use_dvr(): return neutron_ovs_context.use_dvr() diff --git a/unit_tests/test_neutron_ovs_hooks.py b/unit_tests/test_neutron_ovs_hooks.py index c4180a98..dfa7d29d 100644 --- a/unit_tests/test_neutron_ovs_hooks.py +++ b/unit_tests/test_neutron_ovs_hooks.py @@ -21,6 +21,7 @@ utils.restart_map = _map TO_PATCH = [ 'apt_update', 'apt_install', + 'apt_purge', 'config', 'CONFIGS', 'determine_packages', @@ -30,6 +31,7 @@ TO_PATCH = [ 'relation_ids', 'relation_set', 'configure_ovs', + 'use_dvr', ] NEUTRON_CONF_DIR = "/etc/neutron"