1 write to State
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
49
State
= state,
30 references to State
Aspire.Dashboard.Tests (30)
Integration\FrontendBrowserTokenAuthTests.cs (13)
175
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
179
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
181
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
186
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
188
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
193
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
195
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
200
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}"));
205
Assert.Equal("Login to the dashboard at {DashboardLoginUrl}", GetValue(w.
State
, "{OriginalFormat}"));
207
var uri = new Uri((string)GetValue(w.
State
, "DashboardLoginUrl")!, UriKind.Absolute);
235
var loginLinkLog = l.Single(w => "Login to the dashboard at {DashboardLoginUrl}" == (string?)GetValue(w.
State
, "{OriginalFormat}"));
237
var uri = new Uri((string)GetValue(loginLinkLog.
State
, "DashboardLoginUrl")!, UriKind.Absolute);
262
Assert.Single(l.Where(w => "Login to the dashboard at {DashboardLoginUrl}. The URL may need changes depending on how network access to the container is configured." == (string?)GetValue(w.
State
, "{OriginalFormat}")));
Integration\StartupTests.cs (16)
563
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
567
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
569
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
574
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
576
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
581
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
583
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
588
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}"));
643
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
647
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
649
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
656
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
658
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
663
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
665
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
670
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}"));
tests\Shared\Logging\WriteContext.cs (1)
26
return Formatter?.Invoke(
State
, Exception);