From ad9a7fa6e42e70ea2b7b64e0e1daf1c095120350 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 4 Feb 2012 23:17:19 -0800 Subject: [PATCH] Fixed Nzbdrone reporting service to point to the right url. --- .../ReportingService_ReportParseError_Fixture.cs | 4 ++-- NzbDrone.Common/ReportingService.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Common.Test/ReportingService_ReportParseError_Fixture.cs b/NzbDrone.Common.Test/ReportingService_ReportParseError_Fixture.cs index a69fa1f94..abc1c291d 100644 --- a/NzbDrone.Common.Test/ReportingService_ReportParseError_Fixture.cs +++ b/NzbDrone.Common.Test/ReportingService_ReportParseError_Fixture.cs @@ -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(), It.Is(c => c.Title == badTitle)), Times.Once()); + MockedRestProvider.Verify(p => p.PostData(It.Is(c => c.ToLower().StartsWith("http://service.nzbdrone.com/")), It.Is(c => c.Title == badTitle)), Times.Once()); } [Test] diff --git a/NzbDrone.Common/ReportingService.cs b/NzbDrone.Common/ReportingService.cs index afbc3c5ed..83b727cfc 100644 --- a/NzbDrone.Common/ReportingService.cs +++ b/NzbDrone.Common/ReportingService.cs @@ -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";