mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
New: Sonarr can now update series to use another tvdbid in case when tvdb removes a duplicate and Skyhook detects it.
This commit is contained in:
parent
2627072aab
commit
9bcb6ff19a
9 changed files with 124 additions and 20 deletions
|
@ -83,16 +83,27 @@ namespace NzbDrone.Common.Test.Http
|
|||
ExceptionVerification.IgnoreWarns();
|
||||
}
|
||||
|
||||
[TestCase(HttpStatusCode.MovedPermanently)]
|
||||
public void should_not_follow_redirects_when_not_in_production(HttpStatusCode statusCode)
|
||||
[Test]
|
||||
public void should_not_follow_redirects_when_not_in_production()
|
||||
{
|
||||
var request = new HttpRequest("http://eu.httpbin.org/status/" + (int)statusCode);
|
||||
var request = new HttpRequest("http://eu.httpbin.org/redirect/1");
|
||||
|
||||
Subject.Get<HttpBinResource>(request);
|
||||
Subject.Get(request);
|
||||
|
||||
ExceptionVerification.ExpectedErrors(1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_follow_redirects()
|
||||
{
|
||||
var request = new HttpRequest("http://eu.httpbin.org/redirect/1");
|
||||
request.AllowAutoRedirect = true;
|
||||
|
||||
Subject.Get(request);
|
||||
|
||||
ExceptionVerification.ExpectedErrors(0);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_send_user_agent()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue