You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
testdata ipn/ipnlocal: fix the path for writing cert files (#7203) 3 years ago
c2n.go net/sockstats: expose debug info 3 years ago
cert.go ipn/ipnlocal: use atomicfile.WriteFile in certFileStore 3 years ago
cert_js.go all: update copyright and license headers 3 years ago
cert_test.go ipn/ipnlocal: fix the path for writing cert files (#7203) 3 years ago
dnsconfig_test.go all: update copyright and license headers 3 years ago
expiry.go various: add golangci-lint, fix issues (#7905) 3 years ago
expiry_test.go ci: add more lints (#7909) 3 years ago
local.go all: avoid repeated default interface lookups 3 years ago
local_test.go all: pass log IDs as the proper type rather than strings 3 years ago
loglines_test.go all: pass log IDs as the proper type rather than strings 3 years ago
network-lock.go cmd/tailscale: surface node-key for locked out tailnet-lock peers 3 years ago
network-lock_test.go various: add golangci-lint, fix issues (#7905) 3 years ago
peerapi.go ipn/ipnlocal: handle masquerade addresses in PeerAPI 3 years ago
peerapi_h2c.go all: update copyright and license headers 3 years ago
peerapi_macios_ext.go all: update copyright and license headers 3 years ago
peerapi_test.go ipn/ipnlocal: drop not required StateKey parameter 3 years ago
profiles.go ipn/ipnlocal: reenable profile tests on Windows 3 years ago
profiles_notwindows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 3 years ago
profiles_test.go ipn/ipnlocal: reenable profile tests on Windows 3 years ago
profiles_windows.go ipn/ipnlocal: reenable profile tests on Windows 3 years ago
serve.go all: move network monitoring from wgengine/monitor to net/netmon 3 years ago
serve_test.go all: update copyright and license headers 3 years ago
ssh.go all: update copyright and license headers 3 years ago
ssh_stub.go all: update copyright and license headers 3 years ago
ssh_test.go ipn/ipnlocal: drop not required StateKey parameter 3 years ago
state_test.go all: pass log IDs as the proper type rather than strings 3 years ago