dev_gateway #22

Merged
robert merged 14 commits from dev_gateway into main 2026-10-07 16:34:47 +02:00
Showing only changes of commit 2f6c31a26e - Show all commits

View file

@ -47,9 +47,11 @@ def test_conf_content_includes_preshared_key_when_present():
assert "PresharedKey = cHJlc2hhcmVkLWtleQ==" in content assert "PresharedKey = cHJlc2hhcmVkLWtleQ==" in content
# Must sit between PublicKey and Endpoint, inside [Peer]. # Must sit between PublicKey and Endpoint, inside [Peer].
peer_section = content.split("[Peer]\n", 1)[1] peer_section = content.split("[Peer]\n", 1)[1]
assert peer_section.index("PublicKey") < peer_section.index( assert (
"PresharedKey" peer_section.index("PublicKey")
) < peer_section.index("Endpoint") < peer_section.index("PresharedKey")
< peer_section.index("Endpoint")
)
def test_enable_requires_wg_config(tmp_path): def test_enable_requires_wg_config(tmp_path):