Refactor arrtrix webhook to use fixed path and remove legacy config
Some checks failed
Test action / kaas (push) Failing after 1s

- Switch arrtrix webhook to a fixed path: /_arrtrix/webhook
- Remove Radarr-specific and secret-based config from arrtrix
- Simplify connector and webhook handler logic
- Update NixOS module to drop legacy webhook config
- Add new tests for generic arrtrix webhook handler
This commit is contained in:
Chris Kruining 2026-04-16 09:47:00 +02:00
parent fe627f3aab
commit bbfe6867c8
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
11 changed files with 211 additions and 285 deletions

View file

@ -1,23 +0,0 @@
package connector
import "testing"
func TestConfigDefaultsApplyRadarrWebhookPath(t *testing.T) {
var cfg Config
cfg.applyDefaults()
if cfg.Webhooks.Radarr.Path == "" {
t.Fatal("expected radarr webhook path default to be set")
}
}
func TestConfigValidateRejectsEnabledWebhookWithoutSecret(t *testing.T) {
cfg := Config{}
cfg.Webhooks.Radarr.Enabled = true
cfg.applyDefaults()
if err := cfg.Validate(); err == nil {
t.Fatal("expected missing secret to fail validation")
}
}