mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-29 19:28:27 -07:00
New: CORS support on the API (for developing against the API)
This commit is contained in:
parent
4665682ea6
commit
3ee58979ec
7 changed files with 121 additions and 4 deletions
|
@ -63,7 +63,6 @@ namespace NzbDrone.Integration.Test
|
|||
}
|
||||
|
||||
[TestFixtureSetUp]
|
||||
//[SetUp]
|
||||
public void SmokeTestSetup()
|
||||
{
|
||||
_runner = new NzbDroneRunner();
|
||||
|
@ -87,6 +86,8 @@ namespace NzbDrone.Integration.Test
|
|||
private void InitRestClients()
|
||||
{
|
||||
RestClient = new RestClient(RootUrl + "api/");
|
||||
RestClient.AddDefaultHeader("Authentication", _runner.ApiKey);
|
||||
|
||||
Series = new SeriesClient(RestClient, _runner.ApiKey);
|
||||
Releases = new ReleaseClient(RestClient, _runner.ApiKey);
|
||||
RootFolders = new ClientBase<RootFolderResource>(RestClient, _runner.ApiKey);
|
||||
|
@ -99,7 +100,6 @@ namespace NzbDrone.Integration.Test
|
|||
}
|
||||
|
||||
[TestFixtureTearDown]
|
||||
//[TearDown]
|
||||
public void SmokeTestTearDown()
|
||||
{
|
||||
_runner.KillAll();
|
||||
|
@ -153,6 +153,5 @@ namespace NzbDrone.Integration.Test
|
|||
|
||||
_signalrConnection.Received += json => _signalRReceived.Add(Json.Deserialize<SignalRMessage>(json)); ;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue