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

zentralopensource / zentral / 32764814799
91%

Build:
DEFAULT BRANCH: main
Ran 24 Aug 2026 07:00PM UTC
Jobs 1
Files 1031
Run time 2min
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

24 Aug 2026 06:12PM UTC coverage: 90.209% (-0.002%) from 90.211%
32764814799

push

github

np5
santa: publish audit events from the enrollment API views

The Santa API created, updated and deleted an enrollment with no record of it.
The web console publishes a zentral_audit event for the same object.

The two views move to the ListCreateAPIViewWithAudit and the
RetrieveUpdateDestroyAPIViewWithAudit bases, which give the permission classes
and the filter backend. The perform_destroy that refuses to delete an enrollment
in use calls super(), so its check runs before the audit event. These endpoints
also answer a PATCH with a 405 now, because the bases accept only the full
updates.

The rules keep their API views. A rule change already publishes a
santa_rule_update event, and the rule sets publish one for each rule they
change, so an audit event there needs a decision and not a new base class.

The test of the update checks the version in the payload of the event, before and
after. BaseEnrollment.serialize_for_event() puts it there, and the assert_audit_event
helper compares the event with the same method, so only an explicit check finds a
payload that lost the attribute.

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

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

51284 of 56850 relevant lines covered (90.21%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32764814799.1 24 Aug 2026 07:00PM UTC 1031
90.21
GitHub Action Run
Source Files on build 32764814799
  • Tree
  • List 1031
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32764814799
  • c27b7e2c on github
  • Prev Build on main (#32759078048)
  • Next Build on main (#32768412114)
  • 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