mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-04 06:38:28 +02:00
Fixed Nzbdrone reporting service to point to the right url.
This commit is contained in:
parent
26242d7dde
commit
ad9a7fa6e4
@ -21,14 +21,14 @@ public void TearDown()
|
||||
{
|
||||
ReportingService.ClearCache();
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void report_parse_error_should_send_report_to_server()
|
||||
{
|
||||
const string badTitle = "Bad Title";
|
||||
|
||||
ReportingService.ReportParseError(badTitle);
|
||||
MockedRestProvider.Verify(p => p.PostData(It.IsAny<string>(), It.Is<ParseErrorReport>(c => c.Title == badTitle)), Times.Once());
|
||||
MockedRestProvider.Verify(p => p.PostData(It.Is<string>(c => c.ToLower().StartsWith("http://service.nzbdrone.com/")), It.Is<ParseErrorReport>(c => c.Title == badTitle)), Times.Once());
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -10,7 +10,7 @@ public static class ReportingService
|
||||
{
|
||||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
private const string SERVICE_URL = "http://localhost.:1542/reporting";
|
||||
private const string SERVICE_URL = "http://service.nzbdrone.com/reporting";
|
||||
private const string PARSE_URL = SERVICE_URL + "/parser";
|
||||
private const string EXCEPTION_URL = SERVICE_URL + "/exception";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user