Finalize nx9-wg production release

This commit is contained in:
thakares committed 2026-08-18 22:27:36 +05:30
1 parent 4dfe42fe68
commit d704c1e131
30 files changed
+2502 -370

No files matched your search

+34 -4
View File
@@ -240,10 +240,6 @@ fn test_cli_interface_and_peer_lifecycle() {
let ifaces: serde_json::Value = serde_json::from_str(&out).expect("valid json");
assert_eq!(ifaces.as_array().unwrap().len(), 1);
// Status
let (ok, _, _) = runner.run(&["interface", "status", "wg0"]);
assert!(ok);
// Create Peer
let (ok, out, _) = runner.run(&[
"peer",
@@ -829,6 +825,40 @@ fn test_cli_client_profile_and_mtu_system() {
]);
assert!(ok);
assert!(out.contains("<svg"));
// 8. Set structured WireGuard server endpoint settings
let (ok, _, _) = runner.run(&[
"system",
"settings",
"set",
"wireguard.server_host",
"vpn.thakares.com",
]);
assert!(ok);
let (ok, _, _) = runner.run(&[
"system",
"settings",
"set",
"wireguard.server_port",
"51820",
]);
assert!(ok);
// 9. Peer Config consumes persistent structured setting
let (ok, out, _) = runner.run(&["peer", "config", peer_id]);
assert!(ok, "peer config failed: {out}");
assert!(out.contains("Endpoint = vpn.thakares.com:51820"));
// 10. CLI explicit --endpoint overrides persistent setting
let (ok, out, _) = runner.run(&[
"peer",
"config",
peer_id,
"--endpoint",
"custom.override.io:51820",
]);
assert!(ok, "peer config with explicit override failed: {out}");
assert!(out.contains("Endpoint = custom.override.io:51820"));
}
#[test]