Prevent router to be duplicated when running and add tests

This commit is contained in:
grossmj committed 2026-03-17 12:49:38 +08:00
1 parent 95bd76a212
commit 0aa6566e50
4 files changed
+11 -2

No files matched your search

@@ -128,3 +128,6 @@ async def test_duplicate_node(manager, compute_project):
with open(destination_node.startup_config_path) as f:
content = f.read()
assert content == '!\nhostname R2\necho TEST'
with pytest.raises(DynamipsError):
source_node.status = "started"
await manager.duplicate_node(source_node.id, destination_node.id)