diff --git a/bff/samples/Hosts.Tests/BffTests.cs b/bff/samples/Hosts.Tests/BffTests.cs index 5242e71ea..f8a194f27 100644 --- a/bff/samples/Hosts.Tests/BffTests.cs +++ b/bff/samples/Hosts.Tests/BffTests.cs @@ -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(); diff --git a/bff/samples/Hosts.Tests/TestInfra/AppHostFixture.cs b/bff/samples/Hosts.Tests/TestInfra/AppHostFixture.cs index 506813537..0877266e5 100644 --- a/bff/samples/Hosts.Tests/TestInfra/AppHostFixture.cs +++ b/bff/samples/Hosts.Tests/TestInfra/AppHostFixture.cs @@ -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() { @@ -164,6 +164,7 @@ public HttpClient CreateHttpClient(string clientName) var client = App.CreateHttpClient(clientName); baseAddress = client.BaseAddress; inner = new CloningHttpMessageHandler(client); +#endif } var loggingHandler = @@ -186,7 +187,6 @@ public HttpClient CreateHttpClient(string clientName) BaseAddress = baseAddress }; -#endif } public ILogger CreateLogger()