1 write to Logger
Microsoft.AspNetCore.InternalTesting (1)
345 references to Logger
IIS.FunctionalTests (33)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (9)
76var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
103await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.CouldNotStartStdoutFileRedirection("Q:\\std", deploymentResult), Logger, allowMultiple: true);
172var logContents = Helpers.ReadAllTextFromFile(firstTempFile, Logger);
193await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, @"\[aspnetcorev2.dll\] Initializing logs for .*?Description: IIS ASP.NET Core Module V2", Logger);
217var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, logFolderPath), Logger);
219await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", "(.*)彡⾔(.*)"), Logger);
249await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, "Wow!"), Logger);
265await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, ""), Logger);
279await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, new string('a', 30000)), Logger);
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (10)
51@"Framework: 'Microsoft.NETCore.App', version '2.9.9' \(x64\)", Logger);
53"To install missing framework, download:", Logger);
74var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
77@"Framework: 'Microsoft.NETCore.App', version '2.9.9' \(x64\)", Logger);
79missingFrameworkString, Logger);
105var contents = Helpers.ReadAllTextFromFile(fileInDirectory, Logger);
106await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "Invoked hostfxr", Logger);
131await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "Invoked hostfxr", Logger);
158var contents = Helpers.ReadAllTextFromFile(fileInDirectory, Logger);
160await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "Invoked hostfxr", Logger);
IIS.LongTests (21)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger);
183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger);
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger);
357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger);
376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger);
396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger);
453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
487Logger);
519Logger);
1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
IIS.NewHandler.FunctionalTests (21)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger);
183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger);
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger);
357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger);
376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger);
396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger);
453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
487Logger);
519Logger);
1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
IIS.NewShim.FunctionalTests (21)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger);
183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger);
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger);
357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger);
376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger);
396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger);
453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
487Logger);
519Logger);
1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
IIS.ShadowCopy.Tests (2)
IIS.Tests (1)
IISExpress.FunctionalTests (38)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (9)
76var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
103await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.CouldNotStartStdoutFileRedirection("Q:\\std", deploymentResult), Logger, allowMultiple: true);
172var logContents = Helpers.ReadAllTextFromFile(firstTempFile, Logger);
193await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, @"\[aspnetcorev2.dll\] Initializing logs for .*?Description: IIS ASP.NET Core Module V2", Logger);
217var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, logFolderPath), Logger);
219await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", "(.*)彡⾔(.*)"), Logger);
249await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, "Wow!"), Logger);
265await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, ""), Logger);
279await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, new string('a', 30000)), Logger);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger);
183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger);
216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger));
294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger);
357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger);
376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger);
396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger);
453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger);
487Logger);
519Logger);
1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
InMemory.FunctionalTests (24)
Interop.FunctionalTests (53)
Microsoft.AspNetCore.BrowserTesting (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (7)
ConcurrencyLimiterEventSourceTests.cs (7)
70await WaitForCounterValue(lengthValues, expectedValue: 0, Logger);
73await WaitForCounterValue(lengthValues, expectedValue: 1, Logger);
77await WaitForCounterValue(lengthValues, expectedValue: 2, Logger);
80await WaitForCounterValue(lengthValues, expectedValue: 1, Logger);
83await WaitForCounterValue(lengthValues, expectedValue: 0, Logger);
109await WaitForCounterValue(durationValues, expectedValue: 0, Logger);
113await WaitForCounterValue(durationValues, expectedValue: 0, Logger);
Microsoft.AspNetCore.FunctionalTests (4)
Microsoft.AspNetCore.Hosting.Tests (37)
HostingApplicationDiagnosticsTests.cs (19)
41timeoutTokenSource.Token.Register(() => Logger.LogError("Timeout while waiting for counter value."));
66Logger.LogInformation("Act/Assert 1");
67Logger.LogInformation(nameof(HostingApplication.CreateContext));
72await WaitForCounterValue(totalRequestValues, expectedValue: 2, Logger);
73await WaitForCounterValue(currentRequestValues, expectedValue: 2, Logger);
74await WaitForCounterValue(failedRequestValues, expectedValue: 0, Logger);
76Logger.LogInformation(nameof(HostingApplication.DisposeContext));
81await WaitForCounterValue(totalRequestValues, expectedValue: 2, Logger);
82await WaitForCounterValue(currentRequestValues, expectedValue: 0, Logger);
83await WaitForCounterValue(failedRequestValues, expectedValue: 0, Logger);
97Logger.LogInformation("Act/Assert 2");
98Logger.LogInformation(nameof(HostingApplication.CreateContext));
103await WaitForCounterValue(totalRequestValues, expectedValue: 4, Logger);
104await WaitForCounterValue(currentRequestValues, expectedValue: 2, Logger);
105await WaitForCounterValue(failedRequestValues, expectedValue: 0, Logger);
110Logger.LogInformation(nameof(HostingApplication.DisposeContext));
115await WaitForCounterValue(totalRequestValues, expectedValue: 4, Logger);
116await WaitForCounterValue(currentRequestValues, expectedValue: 0, Logger);
117await WaitForCounterValue(failedRequestValues, expectedValue: 2, Logger);
Internal\HostingEventSourceTests.cs (18)
194timeoutTokenSource.Token.Register(() => Logger.LogError("Timeout while waiting for counter value."));
207Logger.LogInformation(nameof(HostingEventSource.RequestStart));
210await WaitForCounterValue(totalRequestValues, expectedValue: 1, Logger);
211await WaitForCounterValue(currentRequestValues, expectedValue: 1, Logger);
212await WaitForCounterValue(failedRequestValues, expectedValue: 0, Logger);
214Logger.LogInformation(nameof(HostingEventSource.RequestStop));
217await WaitForCounterValue(totalRequestValues, expectedValue: 1, Logger);
218await WaitForCounterValue(currentRequestValues, expectedValue: 0, Logger);
219await WaitForCounterValue(failedRequestValues, expectedValue: 0, Logger);
221Logger.LogInformation(nameof(HostingEventSource.RequestStart));
224await WaitForCounterValue(totalRequestValues, expectedValue: 2, Logger);
225await WaitForCounterValue(currentRequestValues, expectedValue: 1, Logger);
226await WaitForCounterValue(failedRequestValues, expectedValue: 0, Logger);
228Logger.LogInformation(nameof(HostingEventSource.RequestFailed));
230Logger.LogInformation(nameof(HostingEventSource.RequestStop));
233await WaitForCounterValue(totalRequestValues, expectedValue: 2, Logger);
234await WaitForCounterValue(currentRequestValues, expectedValue: 0, Logger);
235await WaitForCounterValue(failedRequestValues, expectedValue: 1, Logger);
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.InternalTesting.Tests (13)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (41)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.WebSockets.Tests (2)
Sockets.FunctionalTests (2)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (4)
Templates.Tests (10)