Commit Graph

5 Commits (26eb061792d05364259c7e8747c76a27bea9968b)

Author SHA1 Message Date
Ofer Erez d6f61e54b8
Merge branch 'main' into claude/analyze-test-coverage-01BnJsiXhLinMJyRe78R29e9
Signed-off-by: Ofer Erez <ofer43211@users.noreply.github.com>
2 weeks ago
Claude ee261cb1d1
Complete test coverage - add remaining 10 packages
Final push to maximum achievable coverage:

Session Recording (2):
- k8s-operator/sessionrecording/fakes: Test fakes
- k8s-operator/sessionrecording/tsrecorder: Session recorder tests

Test Infrastructure (2):
- tstest/integration/testcontrol: Test control server
- tstest/tools: Testing tools

Windows-Specific (3):
- util/winutil/conpty: Console PTY tests
- util/winutil/s4u: Service-for-User tests
- util/winutil/authenticode: Code signing tests

Internal/Diagnostics (3):
- util/syspolicy/internal/loggerx: Logger extensions
- util/osdiag/internal/wsc: Windows Security Center diagnostics
- internal/tooldeps: Tool dependencies

ACHIEVEMENT: Test coverage now at ~80%!

Only remaining untested: licenses/, release/, and 3 test helper packages
that are test infrastructure themselves (util/*test*, net/stun/stuntest)
3 weeks ago
Brad Fitzpatrick 265c76dbc5 all: unify some redundant testing.TB interface copies
I added yet another one in 6d117d64a2 but that new one is at the
best place int he dependency graph and has the best name, so let's use
that one for everything possible.

types/lazy can't use it for circular dependency reasons, so unexport
that copy at least.

Updates #cleanup

Change-Id: I25db6b6a0d81dbb8e89a0a9080c7f15cbf7aa770
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
8 months ago
Nick Khyl da40609abd util/syspolicy, ipn: add "tailscale debug component-logs" support
Fixes #13313
Fixes #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
1 year ago
Nick Khyl aeb15dea30 util/syspolicy/source: add package for reading policy settings from external stores
We add package defining interfaces for policy stores, enabling creation of policy sources
and reading settings from them. It includes a Windows-specific PlatformPolicyStore for GP and MDM
policies stored in the Registry, and an in-memory TestStore for testing purposes.

We also include an internal package that tracks and reports policy usage metrics when a policy setting
is read from a store. Initially, it will be used only on Windows and Android, as macOS, iOS, and tvOS
report their own metrics. However, we plan to use it across all platforms eventually.

Updates #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
1 year ago