projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Revert "Feature 11002: Deprecate helmv2""
[osm/N2VC.git]
/
n2vc
/
tests
/
unit
/
utils.py
diff --git
a/n2vc/tests/unit/utils.py
b/n2vc/tests/unit/utils.py
index
7e8907f
..
807c892
100644
(file)
--- a/
n2vc/tests/unit/utils.py
+++ b/
n2vc/tests/unit/utils.py
@@
-123,13
+123,13
@@
class FakeManualMachine(MagicMock):
model_name = "FAKE MODEL"
entity_type = "machine"
safe_data = {"instance-id": "manual:myid"}
model_name = "FAKE MODEL"
entity_type = "machine"
safe_data = {"instance-id": "manual:myid"}
+ series = "FAKE SERIES"
async def destroy(self, force):
pass
class FakeWatcher(AsyncMock):
async def destroy(self, force):
pass
class FakeWatcher(AsyncMock):
-
delta_to_return = None
async def Next(self):
delta_to_return = None
async def Next(self):
@@
-162,6
+162,12
@@
class FakeUnit(MagicMock):
async def run_action(self, action_name, **kwargs):
return FakeAction()
async def run_action(self, action_name, **kwargs):
return FakeAction()
+ @property
+ def machine_id(self):
+ return "existing_machine_id"
+
+ name = "existing_unit"
+
class FakeApplication(AsyncMock):
async def set_config(self, config):
class FakeApplication(AsyncMock):
async def set_config(self, config):
@@
-170,6
+176,9
@@
class FakeApplication(AsyncMock):
async def add_unit(self, to):
pass
async def add_unit(self, to):
pass
+ async def destroy_unit(self, unit_name):
+ pass
+
async def get_actions(self):
return ["existing_action"]
async def get_actions(self):
return ["existing_action"]