mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Use X-Api-Key header in integration tests
This commit is contained in:
@@ -101,6 +101,7 @@ namespace NzbDrone.Integration.Test.Client
|
||||
};
|
||||
|
||||
request.AddHeader("Authorization", _apiKey);
|
||||
request.AddHeader("X-Api-Key", _apiKey);
|
||||
|
||||
return request;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user