mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
added IndexHtmlIntegrationFixture
This commit is contained in:
parent
c925c0bb24
commit
ac465a4f07
18
src/NzbDrone.Integration.Test/IndexHtmlIntegrationFixture.cs
Normal file
18
src/NzbDrone.Integration.Test/IndexHtmlIntegrationFixture.cs
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -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);
|
||||
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user