Naming config fixed, with integration tests

This commit is contained in:
Mark McDowall 2013-08-27 17:16:24 -07:00
parent 1e3a308917
commit dd37713a10
7 changed files with 52 additions and 11 deletions

View file

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