Skip to content

Commit

Permalink
update identification headers in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Jan 28, 2025
1 parent 00dfd92 commit d164ee6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Unleash.Tests/Communication/CustomHeadersUnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ private IUnleashApiClient CreateApiClient()
{
AppName = "api-test-client",
InstanceTag = "instance1",
ConnectionId = "00000000-0000-4000-a000-000000000000",
SdkVersion = "unleash-client-mock:0.0.0",
CustomHttpHeaders = httpHeaders,
CustomHttpHeaderProvider = httpHeadersProvider
};
Expand Down
2 changes: 2 additions & 0 deletions tests/Unleash.Tests/Communication/MockHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ internal static Tuple<MockHttpMessageHandler, UnleashApiClient> MakeMockClient(s
var requestHeaders = new UnleashApiClientRequestHeaders
{
AppName = "api-test-client",
ConnectionId = "00000000-0000-4000-a000-000000000000",
SdkVersion = "unleash-client-mock:0.0.0",
CustomHttpHeaders = new Dictionary<string, string>()
{
{ "Authorization", "*:default.some-mock-hash" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ private UnleashApiClient NewTestableClient(string project, MockHttpMessageHandle
{
AppName = "api-test-client",
InstanceTag = "instance1",
ConnectionId = "00000000-0000-4000-a000-000000000000",
SdkVersion = "unleash-client-mock:0.0.0",
CustomHttpHeaders = null,
CustomHttpHeaderProvider = null
};
Expand Down

0 comments on commit d164ee6

Please sign in to comment.