You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add testRemoveManyIPs to the integration tests to exercise the direct
allowed IP removal capability and run the test suite on all platforms.
$ WGCTRL_INTEGRATION go test .
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ OPERATING SYSTEM ┃ DRIVER ┃ REMOVE IP SUPPORTED ┃ RESULT ┃
┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━┩
│ FreeBSD 14.2 │ native │ no │ PASS │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ OpenBSD 7.7 │ native │ no │ PASS* │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Windows 11 │ native │ no │ PASS** │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ native │ no │ PASS │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ wireguard-go │ no │ PASS │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ native │ yes │ │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ wireguard-go │ yes │ PASS │
└──────────────────┴──────────────┴─────────────────────┴────────┘
On systems where direct IP removal is not supported, I also made sure
that ConfigureDevice returns an error when Remove is used without the
shim.
* OpenBSD skips this test case, since the driver is read only.
** Two assertions fail in Windows due to missing protocol version, but
testRemoveManyIPs passes.
Signed-off-by: Jordan Rife <[email protected]>
0 commit comments