mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
New: Lidarr to Readarr
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user