mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
The hotspot starts on boot
Nothing started the hotspot since hotspot_on_startup moved out of the API, and NetworkManager does not autoconnect the Hotspot connection. The Controller now starts it once per boot unless hotspot.on_startup is false; a legacy wrolpi.yaml hotspot_on_startup: false is migrated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b83a9cf017
commit
dfa03c662e
7 changed files with 172 additions and 4 deletions
|
|
@ -67,6 +67,16 @@ def _isolate_dnsmasq_include(tmp_path_factory, monkeypatch):
|
|||
captive_portal.reset_acknowledged_clients()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _isolate_hotspot_boot_marker(tmp_path_factory, monkeypatch):
|
||||
"""Tests never start a real hotspot, nor write /run, when the Controller app starts up. The marker exists, so
|
||||
start_hotspot_on_boot does nothing unless a test points it elsewhere."""
|
||||
import controller.lib.admin as admin
|
||||
marker = tmp_path_factory.mktemp("run") / "hotspot-on-startup"
|
||||
marker.touch()
|
||||
monkeypatch.setattr(admin, "HOTSPOT_BOOT_MARKER", marker)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _patch_status_worker():
|
||||
"""Replace the real status worker with a no-op for every test.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue