Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix extra tests
  • Loading branch information
JamesNK authored and github-actions committed Oct 31, 2025
commit 75724a321f973e67837461f052a62c4c21037df6
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ public async Task LogOutput_NoToken_GeneratedTokenLogged()
Assert.NotEqual(0, uri.Port);
},
w =>
{
Assert.Equal("MCP listening on: {McpEndpointUri}", GetValue(w.State, "{OriginalFormat}"));

var uri = new Uri((string)GetValue(w.State, "McpEndpointUri")!);
Assert.NotEqual(0, uri.Port);
},
w =>
{
Assert.Equal("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030", GetValue(w.State, "{OriginalFormat}"));
Assert.Equal(LogLevel.Warning, w.LogLevel);
Expand Down
7 changes: 7 additions & 0 deletions tests/Aspire.Dashboard.Tests/Integration/StartupTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,13 @@ public async Task LogOutput_DynamicPort_PortResolvedInLogs()
Assert.NotEqual(0, uri.Port);
},
w =>
{
Assert.Equal("MCP listening on: {McpEndpointUri}", GetValue(w.State, "{OriginalFormat}"));

var uri = new Uri((string)GetValue(w.State, "McpEndpointUri")!);
Assert.NotEqual(0, uri.Port);
},
w =>
{
Assert.Equal("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030", GetValue(w.State, "{OriginalFormat}"));
Assert.Equal(LogLevel.Warning, w.LogLevel);
Expand Down