feat: add radarr support
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
705039c3d5
commit
862132d9df
|
@ -142,14 +142,14 @@ func TestWebhookHandler_Radarr(t *testing.T) {
|
|||
expectedResponse any
|
||||
}{
|
||||
{
|
||||
name: "OK: event type=Import",
|
||||
name: "OK: event type=Download",
|
||||
setup: func(svc *mock.FakeRadarrService) {
|
||||
svc.ProcessReturns(nil)
|
||||
},
|
||||
body: func() *bytes.Buffer {
|
||||
var buf bytes.Buffer
|
||||
_ = json.NewEncoder(&buf).Encode(rest.RadarrWebhookRequest{
|
||||
EventType: "Import",
|
||||
EventType: "Download",
|
||||
Movie: rest.RadarrMovie{
|
||||
ID: 111,
|
||||
Title: "Title 1",
|
||||
|
@ -166,7 +166,7 @@ func TestWebhookHandler_Radarr(t *testing.T) {
|
|||
body: func() *bytes.Buffer {
|
||||
var buf bytes.Buffer
|
||||
_ = gob.NewEncoder(&buf).Encode(rest.RadarrWebhookRequest{
|
||||
EventType: "Import",
|
||||
EventType: "Download",
|
||||
Movie: rest.RadarrMovie{
|
||||
ID: 111,
|
||||
Title: "Title 1",
|
||||
|
|
Reference in New Issue