Integration\FrontendBrowserTokenAuthTests.cs (15)
380Assert.Equal("Aspire dashboard version: {Version}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
384Assert.Equal("Now listening on: {DashboardUri}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
386var uri = new Uri((string)LogTestHelpers.GetValue(w, "DashboardUri")!);
391Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
393var uri = new Uri((string)LogTestHelpers.GetValue(w, "OtlpEndpointUri")!);
398Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
400var uri = new Uri((string)LogTestHelpers.GetValue(w, "OtlpEndpointUri")!);
405Assert.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}"));
410Assert.Equal("Dashboard API is unsecured. Untrusted apps can access sensitive telemetry data.", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
415Assert.Equal("Login to the dashboard at {LoginUrl}", LogTestHelpers.GetValue(w, "{OriginalFormat}"));
417var loginUrl = (string)LogTestHelpers.GetValue(w, "LoginUrl")!;
424Assert.StartsWith("Aspire Dashboard", (string)LogTestHelpers.GetValue(w, "{OriginalFormat}")!);
426var loginUrl = (string)LogTestHelpers.GetValue(w, "LoginUrl")!;
455var summaryLog = l.Single(w => ((string?)LogTestHelpers.GetValue(w, "{OriginalFormat}"))?.StartsWith("Aspire Dashboard") == true);
457var loginUrl = (string)LogTestHelpers.GetValue(summaryLog, "LoginUrl")!;