1 write to ContentRoot
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentResult.cs (1)
51
ContentRoot
= contentRoot;
184 references to ContentRoot
IIS.FunctionalTests (18)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
221
return Path.Combine(deploymentResult.
ContentRoot
,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (3)
326
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' failed to start. Exception message:\r\n{subError}";
330
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' wasn't able to start. {subError}";
348
var contentRoot = deploymentResult.
ContentRoot
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
99
var webConfigPath = Path.Combine(deploymentResult.
ContentRoot
, "web.config");
216
var path = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.runtimeconfig.json");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
75
foreach (var file in Directory.GetFiles(deploymentResult.
ContentRoot
, "*", SearchOption.AllDirectories))
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
119
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "subdirectory", "debug.txt"));
133
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
149
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (6)
606
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.Client.GetStringAsync("/ContentRootPath"));
607
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath"));
608
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
609
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/BaseDirectory"));
610
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
623
Application Path: {_fixture.DeploymentResult.
ContentRoot
}\
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (2)
57
await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.
ContentRoot
, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue);
101
await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.
ContentRoot
, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue);
IIS.LongTests (39)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (3)
326
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' failed to start. Exception message:\r\n{subError}";
330
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' wasn't able to start. {subError}";
348
var contentRoot = deploymentResult.
ContentRoot
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
99
var webConfigPath = Path.Combine(deploymentResult.
ContentRoot
, "web.config");
216
var path = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.runtimeconfig.json");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
75
foreach (var file in Directory.GetFiles(deploymentResult.
ContentRoot
, "*", SearchOption.AllDirectories))
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (19)
82
AddAppOffline(deploymentResult.
ContentRoot
);
94
AddAppOffline(deploymentResult.
ContentRoot
);
106
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
124
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
147
AddAppOffline(deploymentResult.
ContentRoot
);
166
AddAppOffline(deploymentResult.
ContentRoot
);
178
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "Microsoft.AspNetCore.Server.IIS.dll"), "");
184
AddAppOffline(deploymentResult.
ContentRoot
);
243
AddAppOffline(deploymentResult.
ContentRoot
);
341
AddAppOffline(deploymentResult.
ContentRoot
);
352
AddAppOffline(deploymentResult.
ContentRoot
);
354
RemoveAppOffline(deploymentResult.
ContentRoot
);
357
AddAppOffline(deploymentResult.
ContentRoot
);
367
AddAppOffline(deploymentResult.
ContentRoot
);
371
RemoveAppOffline(deploymentResult.
ContentRoot
);
382
AddAppOffline(deploymentResult.
ContentRoot
);
386
RemoveAppOffline(deploymentResult.
ContentRoot
);
425
() => AddAppOffline(deploymentResult.
ContentRoot
),
429
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
213
Assert.True(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.exe")));
214
Assert.False(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll")));
215
Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.
ContentRoot
, "web.config"), Logger));
280
Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"),
281
Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"),
345
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"), "");
405
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll"));
446
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"));
714
Assert.Equal(deploymentResult.
ContentRoot
, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
715
Assert.Equal(deploymentResult.
ContentRoot
+ "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
717
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
718
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
742
var applicationDll = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll");
743
var handlerDll = Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll");
IIS.NewHandler.FunctionalTests (39)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (3)
326
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' failed to start. Exception message:\r\n{subError}";
330
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' wasn't able to start. {subError}";
348
var contentRoot = deploymentResult.
ContentRoot
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
99
var webConfigPath = Path.Combine(deploymentResult.
ContentRoot
, "web.config");
216
var path = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.runtimeconfig.json");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
75
foreach (var file in Directory.GetFiles(deploymentResult.
ContentRoot
, "*", SearchOption.AllDirectories))
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (19)
82
AddAppOffline(deploymentResult.
ContentRoot
);
94
AddAppOffline(deploymentResult.
ContentRoot
);
106
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
124
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
147
AddAppOffline(deploymentResult.
ContentRoot
);
166
AddAppOffline(deploymentResult.
ContentRoot
);
178
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "Microsoft.AspNetCore.Server.IIS.dll"), "");
184
AddAppOffline(deploymentResult.
ContentRoot
);
243
AddAppOffline(deploymentResult.
ContentRoot
);
341
AddAppOffline(deploymentResult.
ContentRoot
);
352
AddAppOffline(deploymentResult.
ContentRoot
);
354
RemoveAppOffline(deploymentResult.
ContentRoot
);
357
AddAppOffline(deploymentResult.
ContentRoot
);
367
AddAppOffline(deploymentResult.
ContentRoot
);
371
RemoveAppOffline(deploymentResult.
ContentRoot
);
382
AddAppOffline(deploymentResult.
ContentRoot
);
386
RemoveAppOffline(deploymentResult.
ContentRoot
);
425
() => AddAppOffline(deploymentResult.
ContentRoot
),
429
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
213
Assert.True(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.exe")));
214
Assert.False(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll")));
215
Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.
ContentRoot
, "web.config"), Logger));
280
Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"),
281
Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"),
345
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"), "");
405
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll"));
446
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"));
714
Assert.Equal(deploymentResult.
ContentRoot
, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
715
Assert.Equal(deploymentResult.
ContentRoot
+ "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
717
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
718
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
742
var applicationDll = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll");
743
var handlerDll = Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll");
IIS.ShadowCopy.Tests (37)
ShadowCopyTests.cs (31)
28
var directoryInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
54
var directoryInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
62
var tempDirectoryPath = Path.Combine(deploymentResult.
ContentRoot
, directoryName);
88
var directoryInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
115
DirectoryCopy(deploymentResult.
ContentRoot
, directory.DirectoryPath, copySubDirs: true);
120
var dirInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
154
var contentRoot = new DirectoryInfo(deploymentResult.
ContentRoot
);
188
var deleteDirPath = Path.Combine(deploymentResult.
ContentRoot
, "wwwroot/deletethis");
195
AddAppOffline(deploymentResult.
ContentRoot
);
202
RemoveAppOffline(deploymentResult.
ContentRoot
);
219
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
227
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
228
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true);
246
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true);
254
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
255
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true);
286
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true);
287
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "3"), copySubDirs: true);
288
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "10"), copySubDirs: true);
296
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
297
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true);
330
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
338
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
339
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true, ignoreDirectory: "ShadowCopy");
343
Assert.True(Directory.Exists(Path.Combine(deploymentResult.
ContentRoot
, "ShadowCopy")));
345
Assert.False(Directory.Exists(Path.Combine(deploymentResult.
ContentRoot
, "ShadowCopy", "0", "ShadowCopy")));
360
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
368
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
369
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true, ignoreDirectory: "ShadowCopy");
373
Assert.True(Directory.Exists(Path.Combine(deploymentResult.
ContentRoot
, "ShadowCopy")));
375
Assert.False(Directory.Exists(Path.Combine(deploymentResult.
ContentRoot
, "ShadowCopy", "0", "ShadowCopy")));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (3)
326
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' failed to start. Exception message:\r\n{subError}";
330
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' wasn't able to start. {subError}";
348
var contentRoot = deploymentResult.
ContentRoot
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
99
var webConfigPath = Path.Combine(deploymentResult.
ContentRoot
, "web.config");
216
var path = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.runtimeconfig.json");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
75
foreach (var file in Directory.GetFiles(deploymentResult.
ContentRoot
, "*", SearchOption.AllDirectories))
IISExpress.FunctionalTests (51)
InProcess\AppOfflineIISExpressTests.cs (2)
44
AddAppOffline(deploymentResult.
ContentRoot
);
52
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
221
return Path.Combine(deploymentResult.
ContentRoot
,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (3)
326
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' failed to start. Exception message:\r\n{subError}";
330
return $@"Application '{Regex.Escape(deploymentResult.
ContentRoot
)}\\' wasn't able to start. {subError}";
348
var contentRoot = deploymentResult.
ContentRoot
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
99
var webConfigPath = Path.Combine(deploymentResult.
ContentRoot
, "web.config");
216
var path = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.runtimeconfig.json");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
75
foreach (var file in Directory.GetFiles(deploymentResult.
ContentRoot
, "*", SearchOption.AllDirectories))
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
119
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "subdirectory", "debug.txt"));
133
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
149
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (6)
606
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.Client.GetStringAsync("/ContentRootPath"));
607
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath"));
608
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
609
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/BaseDirectory"));
610
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
623
Application Path: {_fixture.DeploymentResult.
ContentRoot
}\
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (19)
82
AddAppOffline(deploymentResult.
ContentRoot
);
94
AddAppOffline(deploymentResult.
ContentRoot
);
106
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
124
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
147
AddAppOffline(deploymentResult.
ContentRoot
);
166
AddAppOffline(deploymentResult.
ContentRoot
);
178
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "Microsoft.AspNetCore.Server.IIS.dll"), "");
184
AddAppOffline(deploymentResult.
ContentRoot
);
243
AddAppOffline(deploymentResult.
ContentRoot
);
341
AddAppOffline(deploymentResult.
ContentRoot
);
352
AddAppOffline(deploymentResult.
ContentRoot
);
354
RemoveAppOffline(deploymentResult.
ContentRoot
);
357
AddAppOffline(deploymentResult.
ContentRoot
);
367
AddAppOffline(deploymentResult.
ContentRoot
);
371
RemoveAppOffline(deploymentResult.
ContentRoot
);
382
AddAppOffline(deploymentResult.
ContentRoot
);
386
RemoveAppOffline(deploymentResult.
ContentRoot
);
425
() => AddAppOffline(deploymentResult.
ContentRoot
),
429
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
213
Assert.True(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.exe")));
214
Assert.False(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll")));
215
Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.
ContentRoot
, "web.config"), Logger));
280
Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"),
281
Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"),
345
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"), "");
405
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll"));
446
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"));
714
Assert.Equal(deploymentResult.
ContentRoot
, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
715
Assert.Equal(deploymentResult.
ContentRoot
+ "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
717
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
718
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
742
var applicationDll = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll");
743
var handlerDll = Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll");