feat(network): verify selected uplinks, roll back failures and manage NetBird policy
This commit is contained in:
@@ -144,7 +144,14 @@ def test_client_does_not_request_dns_routes_remote_shell_or_motion():
|
||||
assert "--disable-client-routes" in client.SAFE_FLAGS
|
||||
assert "--disable-server-routes" in client.SAFE_FLAGS
|
||||
assert "--allow-server-ssh=false" in client.SAFE_FLAGS
|
||||
assert "--network-monitor=true" in client.SAFE_FLAGS
|
||||
|
||||
|
||||
def test_platform_native_network_monitor_policy(monkeypatch):
|
||||
for name, expected in (("Linux", "false"), ("FreeBSD", "false"),
|
||||
("Darwin", "false"), ("Windows", "true")):
|
||||
monkeypatch.setattr(client.platform, "system", lambda: name)
|
||||
assert "--network-monitor=" + expected in client.safe_flags()
|
||||
assert set(client.SAFE_FLAGS).issubset(client.safe_flags())
|
||||
|
||||
|
||||
def test_preflight_refuses_redirect_before_contacting_destination():
|
||||
|
||||
Reference in New Issue
Block a user