path: root/tunnel/winipcfg/winipcfg_test.go
diff options
authorSimon Rozman <simon@rozman.si>2019-05-23 12:09:56 +0200
committerSimon Rozman <simon@rozman.si>2019-05-23 12:11:32 +0200
commitf27878c3a619249f23070f063e2e465801c81aed (patch)
tree1ed33502f21d7e642ac7fc7f0af0a7a472f7d6ff /tunnel/winipcfg/winipcfg_test.go
parentinstaller: do not wait for service to start (diff)
winipcfg: add note describing how to setup winipcfg testing environment
...to save us head-scratching time when trying to run the tests again few months later. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
1 files changed, 16 insertions, 0 deletions
diff --git a/tunnel/winipcfg/winipcfg_test.go b/tunnel/winipcfg/winipcfg_test.go
index 9da9f4c0..c69c1847 100644
--- a/tunnel/winipcfg/winipcfg_test.go
+++ b/tunnel/winipcfg/winipcfg_test.go
@@ -3,6 +3,22 @@
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
+Some tests in this file require:
+- A dedicated network adapter
+ Any network adapter will do. It may be virtual (Wintun etc.). The adapter name
+ must contain string "winipcfg_test".
+ Tests will add, remove, flush DNS servers, change adapter IP address, manipulate
+ routes etc.
+ The adapter will not be returned to previous state, so use an expendable one.
+- Elevation
+ Run go test as Administrator
package winipcfg
import (