diff options
| author | Sam Betts <sam@code-smash.net> | 2016-05-25 10:38:45 +0100 |
|---|---|---|
| committer | Sam Betts <sam@code-smash.net> | 2016-05-31 15:24:23 +0100 |
| commit | 95e1e4e35a150c746de1771e27dfcd162e0be929 (patch) | |
| tree | 72b0e7ce598bea3384f3194d9c68af1619fe217f /ironic_python_agent/tests/unit/test_netutils.py | |
| parent | 01d49886aca3175f6eaaf1e5f62183cc31a49249 (diff) | |
| download | ironic-python-agent-95e1e4e35a150c746de1771e27dfcd162e0be929.tar.gz | |
Consolidate IPA configuration into a config module
This patch moves the IPA oslo configs out of the agent cmd into their
own module so that it is safe to import them from other places in the
application without causing circular imports.
Change-Id: I100792bd0d1f369763afaa6f93e144e9967c3048
Diffstat (limited to 'ironic_python_agent/tests/unit/test_netutils.py')
| -rw-r--r-- | ironic_python_agent/tests/unit/test_netutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic_python_agent/tests/unit/test_netutils.py b/ironic_python_agent/tests/unit/test_netutils.py index 9efdfba0..2bafff4f 100644 --- a/ironic_python_agent/tests/unit/test_netutils.py +++ b/ironic_python_agent/tests/unit/test_netutils.py @@ -15,6 +15,7 @@ import binascii import mock +from oslo_config import cfg from oslotest import base as test_base from ironic_python_agent import netutils @@ -28,6 +29,8 @@ FAKE_LLDP_PACKET = binascii.unhexlify( '06020078' ) +cfg.CONF.import_opt('lldp_timeout', 'ironic_python_agent.config') + class TestNetutils(test_base.BaseTestCase): def setUp(self): |
