diff --git a/src/NzbDrone.Integration.Test/IndexHtmlIntegrationFixture.cs b/src/NzbDrone.Integration.Test/IndexHtmlIntegrationFixture.cs new file mode 100644 index 000000000..d90129afe --- /dev/null +++ b/src/NzbDrone.Integration.Test/IndexHtmlIntegrationFixture.cs @@ -0,0 +1,18 @@ +using System.Net; +using FluentAssertions; +using NUnit.Framework; + +namespace NzbDrone.Integration.Test +{ + [TestFixture] + public class IndexHtmlIntegrationFixture : IntegrationTest + { + [Test] + public void should_get_index_html() + { + var text = new WebClient().DownloadString(RootUrl); + text.Should().NotBeNullOrWhiteSpace(); + } + + } +} \ No newline at end of file diff --git a/src/NzbDrone.Integration.Test/IntegrationTest.cs b/src/NzbDrone.Integration.Test/IntegrationTest.cs index 3fc5ec27c..3a1b16446 100644 --- a/src/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/src/NzbDrone.Integration.Test/IntegrationTest.cs @@ -41,6 +41,9 @@ namespace NzbDrone.Integration.Test private List _signalRReceived; private Connection _signalrConnection; + + protected static readonly string RootUrl = "http://localhost:8989/"; + protected IEnumerable SignalRMessages { get @@ -83,7 +86,7 @@ namespace NzbDrone.Integration.Test private void InitRestClients() { - RestClient = new RestClient("http://localhost:8989/api"); + RestClient = new RestClient(RootUrl + "api/"); Series = new SeriesClient(RestClient, _runner.ApiKey); Releases = new ReleaseClient(RestClient, _runner.ApiKey); RootFolders = new ClientBase(RestClient, _runner.ApiKey); diff --git a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj index ef67e876c..3fe6be279 100644 --- a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj +++ b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj @@ -110,6 +110,7 @@ +