• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zentralopensource / zentral / 40930546181
92%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2026 06:34PM UTC
Jobs 1
Files 1057
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Oct 2026 06:13PM UTC coverage: 91.457%. Remained the same
40930546181

push

github

np5
mdm: purge an enrolled device before the authenticate saves it

On a new enrollment of a known device, do_authenticate saved the enrollment
defaults with update_or_create and then called purge_state. The purge resets
dep_enrollment, user_enrollment, user_approved_enrollment and supervised, so
the values set by the defaults were lost and the four attributes were None.

The device information and the security info commands write them again. The
purge deletes the queued commands and resets the timestamps of these two
commands, so the scheduler sends them first, and builds no command that reads
the attributes before that. Until then, the API, the console and the metrics
show null. If the security info response has no ManagementStatus, three
attributes stay None: SetupFileVault is not sent, and InstallApplication
leaves out ChangeManagementState.

Purge the existing device first, then save the defaults. This costs one more
query on each authenticate that is not a re-enrollment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

55198 of 60354 relevant lines covered (91.46%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40930546181.1 29 Oct 2026 06:34PM UTC 1057
91.46
GitHub Action Run
Source Files on build 40930546181
  • Tree
  • List 1057
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40930546181
  • 1dc1bca4 on github
  • Prev Build on main (#40914454077)
  • Next Build on main (#41088847464)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc