Use X-Api-Key header in integration tests

This commit is contained in:
Mark McDowall 2015-10-01 13:53:55 -07:00
parent 986dae590b
commit 2d7774c018
3 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,7 @@ namespace NzbDrone.Integration.Test.Client
};
request.AddHeader("Authorization", _apiKey);
request.AddHeader("X-Api-Key", _apiKey);
return request;
}

View File

@ -87,6 +87,7 @@ namespace NzbDrone.Integration.Test
{
RestClient = new RestClient(RootUrl + "api/");
RestClient.AddDefaultHeader("Authentication", _runner.ApiKey);
RestClient.AddDefaultHeader("X-Api-Key", _runner.ApiKey);
Series = new SeriesClient(RestClient, _runner.ApiKey);
Releases = new ReleaseClient(RestClient, _runner.ApiKey);

View File

@ -61,6 +61,7 @@ namespace NzbDrone.Test.Common
var request = new RestRequest("system/status");
request.AddHeader("Authorization", ApiKey);
request.AddHeader("X-Api-Key", ApiKey);
var statusCall = _restClient.Get(request);