From f27878c3a619249f23070f063e2e465801c81aed Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 23 May 2019 12:09:56 +0200 Subject: 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 --- tunnel/winipcfg/winipcfg_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tunnel/winipcfg/winipcfg_test.go') 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 ( -- cgit v1.2.3-59-g8ed1b