New: Lidarr to Readarr

This commit is contained in:
Qstick
2020-02-29 15:51:29 -05:00
parent 7359c2a9fa
commit 3b7eb01918
565 changed files with 1669 additions and 4272 deletions
@@ -169,14 +169,14 @@ namespace NzbDrone.Common.Test.Http
}
var request = new HttpRequestBuilder($"https://{_httpBinHost}/redirect-to")
.AddQueryParam("url", $"https://lidarr.audio/")
.AddQueryParam("url", $"https://readarr.audio/")
.Build();
request.AllowAutoRedirect = true;
var response = Subject.Get(request);
response.StatusCode.Should().Be(HttpStatusCode.OK);
response.Content.Should().Contain("Lidarr");
response.Content.Should().Contain("Readarr");
ExceptionVerification.ExpectedErrors(0);
}
@@ -203,7 +203,7 @@ namespace NzbDrone.Common.Test.Http
var userAgent = response.Resource.Headers["User-Agent"].ToString();
userAgent.Should().Contain("Lidarr");
userAgent.Should().Contain("Readarr");
}
[TestCase("Accept", "text/xml, text/rss+xml, application/rss+xml")]
@@ -222,7 +222,7 @@ namespace NzbDrone.Common.Test.Http
{
var file = GetTempFilePath();
Assert.Throws<WebException>(() => Subject.DownloadFile("https://download.lidarr.audio/wrongpath", file));
Assert.Throws<WebException>(() => Subject.DownloadFile("https://download.readarr.audio/wrongpath", file));
File.Exists(file).Should().BeFalse();