dev_gateway #22
1 changed files with 5 additions and 3 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue