36 references to Message
Aspire.Dashboard.Tests (36)
Integration\FrontendBrowserTokenAuthTests.cs (2)
303Assert.Equal("FrontendComposite was not authenticated. Failure message: Connection types 'Frontend' are not enabled on this connection.", log.Message); 479var containerLog = l.Single(w => w.Message == "Dashboard is running in a container. Access the dashboard from the host using port forwarding.");
Integration\FrontendOpenIdConnectAuthTests.cs (1)
90Assert.Equal("FrontendComposite was not authenticated. Failure message: Connection types 'Frontend' are not enabled on this connection.", log.Message);
Integration\OtlpHttpServiceTests.cs (3)
295w.Message!.Contains("OTLP HTTP request with unsupported content type")).ToList(); 298Assert.Contains("application/x-protobuf", log.Message); 299Assert.Contains("unsupported content type", log.Message);
Integration\StartupTests.cs (1)
471if (!w.Message?.Contains("The dashboard is configured with a shared endpoint for browser access and the OTLP service. The endpoint doesn't use TLS so browser access is only possible via a TLS terminating proxy.") ?? false)
LoggingHelpersTests.cs (12)
30Assert.Equal("Login to the dashboard at http://localhost:18888/login?t=abc123", loginWrite.Message); 36Assert.NotNull(write.Message); 37var lines = GetMessageLines(write.Message!); 69Assert.NotNull(write.Message); 70var lines = GetMessageLines(write.Message!); 93Assert.NotNull(write.Message); 94var lines = GetMessageLines(write.Message!); 119Assert.NotNull(write.Message); 120var lines = GetMessageLines(write.Message!); 183Assert.NotNull(write.Message); 184var lines = GetMessageLines(write.Message!); 214Assert.Equal("Dashboard is running in a container. Access the dashboard from the host using port forwarding.", containerWrite.Message);
Model\DashboardClientTests.cs (1)
477Assert.Contains("https://aka.ms/aspire/dashboard-apphost-connection-failed", errorLog.Message);
Model\DashboardDataSourceTests.cs (8)
205initializationLog.Message); 212discoveryLog.Message); 365write => write.Message == $"Creating dashboard database at '{runStore.DatabasePath}'."); 393write => write.Message == $"Resuming dashboard database at '{secondRunStore.DatabasePath}'."); 436write => write.Message == $"Existing dashboard database at '{databasePath}' is incompatible with schema version {DashboardRunStore.SchemaVersion} and will be replaced."); 901Assert.Contains(expiredRunDirectory, warning.Message, StringComparison.Ordinal); 1106Assert.Equal($"Switched dashboard run from '{currentRunStore.RunId}' to '{historicalRunId}'.", switchLog.Message); 1216Assert.Equal($"Failed to switch to dashboard run '{historicalRunId}' because it is no longer available.", failureLog.Message);
Model\IconResolverTests.cs (2)
62Assert.Contains("NonExistentIcon", write.Message); 63Assert.Contains("could not be resolved", write.Message);
TelemetryRepositoryTests\OtlpHelpersTests.cs (2)
452Assert.Equal("Duplicate attribute key1 with different value. Last value wins.", w.Message); 505Assert.Equal("Duplicate attribute key1 with different value. Last value wins.", w.Message);
TelemetryRepositoryTests\TelemetryLimitTests.cs (1)
246var write = Assert.Single(testSink.Writes, write => write.Message == "Error adding metric.");
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (1)
173if (write.Message == "Callback 'Test' has been disposed.")
TelemetryRepositoryTests\TraceTests.cs (1)
561Assert.Equal("Error adding span.", write.Message);
tests\Shared\Logging\WriteContext.cs (1)
32return $"{LogLevel} {LoggerName}: {Message}";