|
|
@ -95,8 +95,6 @@ namespace NzbDrone.Integration.Test.Client
|
|
|
|
var response = _restClient.Execute(request);
|
|
|
|
var response = _restClient.Execute(request);
|
|
|
|
_logger.Info("Response: {0}", response.Content);
|
|
|
|
_logger.Info("Response: {0}", response.Content);
|
|
|
|
|
|
|
|
|
|
|
|
response.StatusCode.Should().Be(statusCode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (response.ErrorException != null)
|
|
|
|
if (response.ErrorException != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw response.ErrorException;
|
|
|
|
throw response.ErrorException;
|
|
|
@ -104,6 +102,8 @@ namespace NzbDrone.Integration.Test.Client
|
|
|
|
|
|
|
|
|
|
|
|
response.ErrorMessage.Should().BeBlank();
|
|
|
|
response.ErrorMessage.Should().BeBlank();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
response.StatusCode.Should().Be(statusCode);
|
|
|
|
|
|
|
|
|
|
|
|
return Json.Deserialize<T>(response.Content);
|
|
|
|
return Json.Deserialize<T>(response.Content);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|