|
|
@ -3,7 +3,7 @@ using NLog.Config;
|
|
|
|
using NLog.Targets;
|
|
|
|
using NLog.Targets;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Api.Commands;
|
|
|
|
using NzbDrone.Api.Commands;
|
|
|
|
using NzbDrone.Api.Episodes;
|
|
|
|
using NzbDrone.Api.Config;
|
|
|
|
using NzbDrone.Api.RootFolders;
|
|
|
|
using NzbDrone.Api.RootFolders;
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
using NzbDrone.Integration.Test.Client;
|
|
|
|
using NzbDrone.Integration.Test.Client;
|
|
|
@ -25,10 +25,10 @@ namespace NzbDrone.Integration.Test
|
|
|
|
protected IndexerClient Indexers;
|
|
|
|
protected IndexerClient Indexers;
|
|
|
|
protected EpisodeClient Episodes;
|
|
|
|
protected EpisodeClient Episodes;
|
|
|
|
protected SeasonClient Seasons;
|
|
|
|
protected SeasonClient Seasons;
|
|
|
|
|
|
|
|
protected ClientBase<NamingConfigResource> NamingConfig;
|
|
|
|
|
|
|
|
|
|
|
|
private NzbDroneRunner _runner;
|
|
|
|
private NzbDroneRunner _runner;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public IntegrationTest()
|
|
|
|
public IntegrationTest()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new StartupArguments();
|
|
|
|
new StartupArguments();
|
|
|
@ -42,7 +42,6 @@ namespace NzbDrone.Integration.Test
|
|
|
|
[SetUp]
|
|
|
|
[SetUp]
|
|
|
|
public void SmokeTestSetup()
|
|
|
|
public void SmokeTestSetup()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
_runner = new NzbDroneRunner();
|
|
|
|
_runner = new NzbDroneRunner();
|
|
|
|
_runner.KillAll();
|
|
|
|
_runner.KillAll();
|
|
|
|
|
|
|
|
|
|
|
@ -51,7 +50,6 @@ namespace NzbDrone.Integration.Test
|
|
|
|
_runner.Start();
|
|
|
|
_runner.Start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void InitRestClients()
|
|
|
|
private void InitRestClients()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
RestClient = new RestClient("http://localhost:8989/api");
|
|
|
|
RestClient = new RestClient("http://localhost:8989/api");
|
|
|
@ -62,6 +60,7 @@ namespace NzbDrone.Integration.Test
|
|
|
|
Indexers = new IndexerClient(RestClient);
|
|
|
|
Indexers = new IndexerClient(RestClient);
|
|
|
|
Episodes = new EpisodeClient(RestClient);
|
|
|
|
Episodes = new EpisodeClient(RestClient);
|
|
|
|
Seasons = new SeasonClient(RestClient);
|
|
|
|
Seasons = new SeasonClient(RestClient);
|
|
|
|
|
|
|
|
NamingConfig = new ClientBase<NamingConfigResource>(RestClient, "config/naming");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TearDown]
|
|
|
|
[TearDown]
|
|
|
|