Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwinvandervalk committed Jan 10, 2025
1 parent 92f98ce commit 25f3260
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions bff/samples/Hosts.Tests/BffTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public async Task Can_initiate_login()

[SkippableTheory]
[InlineData("/local/self-contained")]
[InlineData("/invokes-external-api")]
[InlineData("/api/user-token")]
[InlineData("/api/client-token")]
[InlineData("/api/user-or-client-token")]
[InlineData("/api/anonymous")]
[InlineData("/api/optional-user-token")]
[InlineData("/api/impersonation")]
[InlineData("/api/audience-constrained")]
public async Task Once_authenticated_can_call_proxied_urls(string url)
{
await _bffClient.TriggerLogin();
Expand Down
4 changes: 2 additions & 2 deletions bff/samples/Hosts.Tests/TestInfra/AppHostFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public IDisposable ConnectLogger(WriteTestOutput output)
public bool UsingAlreadyRunningInstance { get; private set; }
public string StartupLogs => _startupLogs.ToString() ?? string.Empty;
protected DistributedApplication? App = null!;
private Logger _logger;
private Logger _logger = null!;

public async Task InitializeAsync()
{
Expand Down Expand Up @@ -164,6 +164,7 @@ public HttpClient CreateHttpClient(string clientName)
var client = App.CreateHttpClient(clientName);
baseAddress = client.BaseAddress;
inner = new CloningHttpMessageHandler(client);
#endif
}

var loggingHandler =
Expand All @@ -186,7 +187,6 @@ public HttpClient CreateHttpClient(string clientName)
BaseAddress = baseAddress
};

#endif
}

public ILogger<T> CreateLogger<T>()
Expand Down

0 comments on commit 25f3260

Please sign in to comment.