1 write to State
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
49
State
= state,
43 references to State
Aspire.Dashboard.Tests (43)
Integration\FrontendBrowserTokenAuthTests.cs (16)
174
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
178
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
180
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
185
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
187
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
192
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
194
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
199
Assert.Equal("MCP listening on: {McpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
201
var uri = new Uri((string)GetValue(w.
State
, "McpEndpointUri")!);
206
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}"));
211
Assert.Equal("MCP server is unsecured. Untrusted apps can access sensitive information.", GetValue(w.
State
, "{OriginalFormat}"));
216
Assert.Equal("Login to the dashboard at {DashboardLoginUrl}", GetValue(w.
State
, "{OriginalFormat}"));
218
var uri = new Uri((string)GetValue(w.
State
, "DashboardLoginUrl")!, UriKind.Absolute);
246
var loginLinkLog = l.Single(w => "Login to the dashboard at {DashboardLoginUrl}" == (string?)GetValue(w.
State
, "{OriginalFormat}"));
248
var uri = new Uri((string)GetValue(loginLinkLog.
State
, "DashboardLoginUrl")!, UriKind.Absolute);
273
Assert.Single(l, w => (string?)GetValue(w.
State
, "{OriginalFormat}") == "Login to the dashboard at {DashboardLoginUrl} . The URL may need changes depending on how network access to the container is configured.");
Integration\StartupTests.cs (26)
688
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
692
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
694
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
699
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
701
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
706
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
708
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
713
Assert.Equal("MCP listening on: {McpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
715
var uri = new Uri((string)GetValue(w.
State
, "McpEndpointUri")!);
720
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}"));
725
Assert.Equal("MCP server is unsecured. Untrusted apps can access sensitive information.", GetValue(w.
State
, "{OriginalFormat}"));
753
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
757
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
761
Assert.Equal("MCP listening on: {McpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
765
Assert.Equal("MCP server is unsecured. Untrusted apps can access sensitive information.", GetValue(w.
State
, "{OriginalFormat}"));
824
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
828
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
830
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
837
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
839
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
844
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
846
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
851
Assert.Equal("MCP listening on: {McpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
853
var uri = new Uri((string)GetValue(w.
State
, "McpEndpointUri")!);
858
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}"));
863
Assert.Equal("MCP server is unsecured. Untrusted apps can access sensitive information.", GetValue(w.
State
, "{OriginalFormat}"));
tests\Shared\Logging\WriteContext.cs (1)
26
return Formatter?.Invoke(
State
, Exception);