added IndexHtmlIntegrationFixture

pull/3113/head
Keivan Beigi 10 years ago
parent c925c0bb24
commit ac465a4f07

@ -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();
}
}
}

@ -41,6 +41,9 @@ namespace NzbDrone.Integration.Test
private List<SignalRMessage> _signalRReceived; private List<SignalRMessage> _signalRReceived;
private Connection _signalrConnection; private Connection _signalrConnection;
protected static readonly string RootUrl = "http://localhost:8989/";
protected IEnumerable<SignalRMessage> SignalRMessages protected IEnumerable<SignalRMessage> SignalRMessages
{ {
get get
@ -83,7 +86,7 @@ namespace NzbDrone.Integration.Test
private void InitRestClients() private void InitRestClients()
{ {
RestClient = new RestClient("http://localhost:8989/api"); RestClient = new RestClient(RootUrl + "api/");
Series = new SeriesClient(RestClient, _runner.ApiKey); Series = new SeriesClient(RestClient, _runner.ApiKey);
Releases = new ReleaseClient(RestClient, _runner.ApiKey); Releases = new ReleaseClient(RestClient, _runner.ApiKey);
RootFolders = new ClientBase<RootFolderResource>(RestClient, _runner.ApiKey); RootFolders = new ClientBase<RootFolderResource>(RestClient, _runner.ApiKey);

@ -110,6 +110,7 @@
<Compile Include="EpisodeIntegrationTests.cs" /> <Compile Include="EpisodeIntegrationTests.cs" />
<Compile Include="HistoryIntegrationTest.cs" /> <Compile Include="HistoryIntegrationTest.cs" />
<Compile Include="IndexerIntegrationFixture.cs" /> <Compile Include="IndexerIntegrationFixture.cs" />
<Compile Include="IndexHtmlIntegrationFixture.cs" />
<Compile Include="IntegrationTest.cs" /> <Compile Include="IntegrationTest.cs" />
<Compile Include="IntegrationTestDirectoryInfo.cs" /> <Compile Include="IntegrationTestDirectoryInfo.cs" />
<Compile Include="NamingConfigTests.cs" /> <Compile Include="NamingConfigTests.cs" />

Loading…
Cancel
Save