Skip to content

Review and confirm test fix for MDM enrollment logging - #39541

Closed
getvictor with Copilot wants to merge 1 commit into
victor/38889-slog-infrafrom
copilot/sub-pr-39527-yet-again
Closed

Review and confirm test fix for MDM enrollment logging#39541
getvictor with Copilot wants to merge 1 commit into
victor/38889-slog-infrafrom
copilot/sub-pr-39527-yet-again

Conversation

Copilot AI commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Reviewed the fix in TestWindowsMDMEnrollEmptyBinarySecurityToken where the test was incorrectly resetting foundEnroll = false in the MDE2EnrollPath case, causing it to always pass even when an enroll request was unexpectedly logged.

The fix correctly changes line 407 to foundEnroll = true, ensuring the test properly detects unwanted enroll requests:

case microsoft_mdm.MDE2EnrollPath:
    foundEnroll = true  // Was: foundEnroll = false

With this fix, require.False(t, foundEnroll) will now fail if an enroll request appears in the logs, as intended.

Checklist for submitter

  • QA'd all new/changed functionality manually

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Address feedback on gokit/log to slog transition changes Review and confirm test fix for MDM enrollment logging Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants