tailscale/ipn/ipnlocal
James Tucker 095d3edd33 ipn/ipnlocal: reenable profile tests on Windows
This fix does not seem ideal, but the test infrastructure using a local
goos doesn't seem to avoid all of the associated challenges, but is
somewhat deeply tied to the setup.

The core issue this addresses for now is that when run on Windows there
can be no code paths that attempt to use an invalid UID string, which on
Windows is described in [1].

For the goos="linux" tests, we now explicitly skip the affected
migration code if runtime.GOOS=="windows", and for the Windows test we
explicitly use the running users uid, rather than just the string
"user1". We also now make the case where a profile exists and has
already been migrated a non-error condition toward the outer API.

Updates #7876

[1] https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers

Signed-off-by: James Tucker <jftucker@gmail.com>
2023-04-26 11:33:38 -07:00
..
testdata ipn/ipnlocal: fix the path for writing cert files (#7203) 2023-02-07 14:34:04 -08:00
c2n.go net/sockstats: expose debug info 2023-04-19 14:33:12 -07:00
cert.go ipn/ipnlocal: use atomicfile.WriteFile in certFileStore 2023-03-23 17:35:44 -07:00
cert_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_test.go ipn/ipnlocal: fix the path for writing cert files (#7203) 2023-02-07 14:34:04 -08:00
dnsconfig_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
expiry.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
expiry_test.go ci: add more lints (#7909) 2023-04-19 21:54:19 -04:00
local.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
local_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00
loglines_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00
network-lock.go cmd/tailscale: surface node-key for locked out tailnet-lock peers 2023-03-09 11:06:23 -10:00
network-lock_test.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
peerapi.go ipn/ipnlocal: handle masquerade addresses in PeerAPI 2023-04-19 15:51:44 -07:00
peerapi_h2c.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_macios_ext.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
profiles.go ipn/ipnlocal: reenable profile tests on Windows 2023-04-26 11:33:38 -07:00
profiles_notwindows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
profiles_test.go ipn/ipnlocal: reenable profile tests on Windows 2023-04-26 11:33:38 -07:00
profiles_windows.go ipn/ipnlocal: reenable profile tests on Windows 2023-04-26 11:33:38 -07:00
serve.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
serve_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_stub.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
state_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00