Refactor arrtrix webhook to use fixed path and remove legacy config
Some checks failed
Test action / kaas (push) Failing after 1s
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:
parent
fe627f3aab
commit
bbfe6867c8
11 changed files with 211 additions and 285 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue