summaryrefslogtreecommitdiff
path: root/ironic_python_agent/tests
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2020-03-30 17:22:28 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2020-06-02 15:23:54 +0200
commit9d4cf5532ff3cc4725c247aa0e0aca2caa30e640 (patch)
treebf81d338378072f44f7fb99edea00828322efdb6 /ironic_python_agent/tests
parent6c1545b75b157584f04901cdbfa4897fd15042bb (diff)
downloadironic-python-agent-9d4cf5532ff3cc4725c247aa0e0aca2caa30e640.tar.gz
Add a deploy step for writing an image
The new step just invokes the appropriate method of the standby extension. Change-Id: Ic74f83ab2b7e58f8e4b46e0abfab79e221afeb3e Story: 2006963
Diffstat (limited to 'ironic_python_agent/tests')
-rw-r--r--ironic_python_agent/tests/unit/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic_python_agent/tests/unit/base.py b/ironic_python_agent/tests/unit/base.py
index 033c39cb..94196985 100644
--- a/ironic_python_agent/tests/unit/base.py
+++ b/ironic_python_agent/tests/unit/base.py
@@ -23,6 +23,7 @@ from oslo_config import cfg
from oslo_config import fixture as config_fixture
from oslotest import base as test_base
+from ironic_python_agent.extensions import base as ext_base
from ironic_python_agent import utils
CONF = cfg.CONF
@@ -58,6 +59,8 @@ class IronicAgentTest(test_base.BaseTestCase):
self.patch(subprocess, 'check_output', do_not_call)
self.patch(utils, 'execute', do_not_call)
+ ext_base._EXT_MANAGER = None
+
def _set_config(self):
self.cfg_fixture = self.useFixture(config_fixture.Config(CONF))