tailscale / tailscale/tailscale

Add integration tests for authkey deployment via system policies

Open
#13,193 1 comment 1 reaction 0 assignees View on GitHub
mdm testing
Dominant language
Go
Stars
36.5k
Forks
3.2k
Avg merge
2d 3h
Merged PRs (30d)
123

Description

In https://github.com/tailscale/tailscale/pull/13061, we added the ability to use system policies (MDM) to deploy an authkey.

`tailscale/tstest/integration/integration_test.go` already contains a test (TestConfigFileAuthKey) for similar logic (deploying an authkey using a text file), but it is currently impossible to write an equivalent test because there is no way to mock values in the syspolicy package across the process boundary.

We need the ability to define mock syspolicies in `integration_test.go` to fully test this feature (and other policies moving forward).

cc @nickkhyl who is working on related things

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.