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

sapcc / go-bits / 12014710298
34%
master: 31%

Build:
Build:
LAST BUILD BRANCH: fix-gomm
DEFAULT BRANCH: master
Ran 25 Nov 2024 04:45PM UTC
Jobs 1
Files 45
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

25 Nov 2024 04:34PM UTC coverage: 34.093% (-4.9%) from 39.0%
12014710298

Pull #185

github

majewsky
audittools: add type Auditor

When building the OpenStack service blueprint repo, I noticed that there
is still a lot of repetitive boilerplate that is necessary to set up an
audit event submitter. This commit adds the weighted average of all
existing users into the library:

https://github.com/sapcc/andromeda/blob/main/middlewares/audit.go
https://github.com/sapcc/archer/blob/main/internal/middlewares/audit.go
https://github.com/sapcc/castellum/blob/master/internal/api/audit.go
https://github.com/sapcc/limes/blob/master/internal/api/audit.go
https://github.com/sapcc/keppel/blob/master/internal/keppel/auditor.go

The various logfile-only options in Castellum, Limes and Keppel are
replaced with type NullAuditor that logs into the debug log, to make it
clear that this usecase is not suitable for productive deployments.
The option to log to a non-debug log hails back to the ancient times
when Hermes was not deployed everywhere yet.

The Auditor interface is added as a dependency injection slot for
automated tests. Keppel donates its MockAuditor type which ought to be
useful in other applications, too.
Pull Request #185: audittools: add higher-level API to reduce code duplication downstream

0 of 132 new or added lines in 4 files covered. (0.0%)

2 existing lines in 1 file now uncovered.

778 of 2282 relevant lines covered (34.09%)

3.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12014710298.1 25 Nov 2024 04:45PM UTC 0
34.09
GitHub Action Run
Source Files on build 12014710298
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #185
  • PR Base - master (#11946594746)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc