Skip to content

Add integration tests for authkey deployment via system policies #13193

@agottardo

Description

@agottardo

In #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    mdmFleet managementtestingIssues around tests in the codebase and the QA process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions