feat: add radarr support
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dawid Wysokiński 2022-07-20 07:13:43 +02:00
parent 705039c3d5
commit 862132d9df
Signed by: Kichiyaki
GPG Key ID: 1ECC5DE481BE5184
1 changed files with 3 additions and 3 deletions

View File

@ -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",