fix(node): clarify wireless enrollment and restore active K1 after upgrade
This commit is contained in:
@@ -165,6 +165,8 @@ def test_node_scan_real_service_preserves_operation_identity_and_replay(
|
||||
"action": "scan", "parameters": {},
|
||||
}
|
||||
result = await device.deliver(command)
|
||||
if not radio_failure:
|
||||
assert scanner.capture_discovered_device("AA:BB:CC:DD:EE:FF") is not None
|
||||
repeated = await device.deliver(command)
|
||||
assert len(calls) == 1
|
||||
assert result["discovery_generation"] == 1
|
||||
@@ -307,6 +309,21 @@ def test_networkmanager_ssids_are_not_split_at_escaped_colons():
|
||||
assert nm_fields(r"field\:network\\name:88:WPA2") == ["field:network\\name", "88", "WPA2"]
|
||||
|
||||
|
||||
def test_wired_board_bridge_does_not_require_host_wifi_association(tmp_path, monkeypatch):
|
||||
from k1link.device_plugins.xgrids_k1 import linux_host
|
||||
|
||||
(tmp_path / "enp1s0").mkdir()
|
||||
|
||||
def forbidden(*_args, **_kwargs):
|
||||
raise AssertionError("Ethernet must not request Wi-Fi association")
|
||||
|
||||
monkeypatch.setattr(linux_host, "_run", forbidden)
|
||||
value = linux_host.LinuxWifiAssociationProbe(tmp_path).observe(interface_name="enp1s0")
|
||||
assert value["association_state"] == "not-wifi"
|
||||
assert value["continuity_proven"] is True
|
||||
assert value["reason_code"] is None
|
||||
|
||||
|
||||
def test_linux_kernel_route_is_matched_route_not_resolved_host(monkeypatch):
|
||||
from k1link.device_plugins.xgrids_k1 import linux_host
|
||||
from k1link.device_plugins.xgrids_k1.facade import _classify_host_route
|
||||
|
||||
Reference in New Issue
Block a user