Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,13 @@ def test_dataplane_mode_disable_central_fails_already_disabled(
manager.charm.token_consumer._stored.in_cluster = True
result = manager.charm._dataplane_mode()

# Previously the early return skipped this call, verify it now runs
# even when central was already disabled.
assert result is True
mock_call_microovn_command.assert_any_call(
"disable", "central", "--allow-disable-last-central"
)
mock_call_microovn_command.assert_any_call("config", "set", "ovn.central-ips", "192.168.0.16")


def test_dataplane_mode_disable_central_fails_other_error(
Expand Down
Loading