Integration\FrontendBrowserTokenAuthTests.cs (15)
376Assert.Equal("Aspire dashboard version: {Version}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
380Assert.Equal("Now listening on: {DashboardUri}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
382var uri = new Uri((string)LogTestHelpers.GetValue(w, "DashboardUri")!);
387Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
389var uri = new Uri((string)LogTestHelpers.GetValue(w, "OtlpEndpointUri")!);
394Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
396var uri = new Uri((string)LogTestHelpers.GetValue(w, "OtlpEndpointUri")!);
401Assert.Equal("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
406Assert.Equal("Dashboard API is unsecured. Untrusted apps can access sensitive telemetry data.", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
411Assert.Equal("Login to the dashboard at {LoginUrl}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
413var loginUrl = (string)LogTestHelpers.GetValue(w, "LoginUrl")!;
420Assert.StartsWith("Aspire Dashboard", (string)LogTestHelpers.GetValue(w, "{OriginalFormat}")!);
422var loginUrl = (string)LogTestHelpers.GetValue(w, "LoginUrl")!;
451var summaryLog = l.Single(w => ((string?)LogTestHelpers.GetValue(w, "{OriginalFormat}"))?.StartsWith("Aspire Dashboard") == true);
453var loginUrl = (string)LogTestHelpers.GetValue(summaryLog, "LoginUrl")!;