1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

added IndexHtmlIntegrationFixture

This commit is contained in:
Keivan Beigi 2014-09-01 21:02:55 -07:00
parent c925c0bb24
commit ac465a4f07
3 changed files with 23 additions and 1 deletions

View File

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

View File

@ -41,6 +41,9 @@ public abstract class IntegrationTest
private List<SignalRMessage> _signalRReceived;
private Connection _signalrConnection;
protected static readonly string RootUrl = "http://localhost:8989/";
protected IEnumerable<SignalRMessage> SignalRMessages
{
get
@ -83,7 +86,7 @@ public void SmokeTestSetup()
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<RootFolderResource>(RestClient, _runner.ApiKey);

View File

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