Fixed Nzbdrone reporting service to point to the right url.

This commit is contained in:
kay.one 2012-02-04 23:17:19 -08:00
parent 26242d7dde
commit ad9a7fa6e4
2 changed files with 3 additions and 3 deletions

View File

@ -21,14 +21,14 @@ namespace NzbDrone.Common.Test
{
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]

View File

@ -10,7 +10,7 @@ namespace NzbDrone.Common
{
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";