1 write to ContentRoot
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentResult.cs (1)
51
ContentRoot
= contentRoot;
222 references to ContentRoot
IIS.FunctionalTests (18)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
222
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)
120
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "subdirectory", "debug.txt"));
134
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
150
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (6)
607
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.Client.GetStringAsync("/ContentRootPath"));
608
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath"));
609
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
610
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/BaseDirectory"));
611
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
624
Application Path: {_fixture.DeploymentResult.
ContentRoot
}\
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (2)
58
await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.
ContentRoot
, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue);
102
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)
83
AddAppOffline(deploymentResult.
ContentRoot
);
95
AddAppOffline(deploymentResult.
ContentRoot
);
107
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
125
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
148
AddAppOffline(deploymentResult.
ContentRoot
);
167
AddAppOffline(deploymentResult.
ContentRoot
);
179
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "Microsoft.AspNetCore.Server.IIS.dll"), "");
185
AddAppOffline(deploymentResult.
ContentRoot
);
244
AddAppOffline(deploymentResult.
ContentRoot
);
342
AddAppOffline(deploymentResult.
ContentRoot
);
353
AddAppOffline(deploymentResult.
ContentRoot
);
355
RemoveAppOffline(deploymentResult.
ContentRoot
);
358
AddAppOffline(deploymentResult.
ContentRoot
);
368
AddAppOffline(deploymentResult.
ContentRoot
);
372
RemoveAppOffline(deploymentResult.
ContentRoot
);
383
AddAppOffline(deploymentResult.
ContentRoot
);
387
RemoveAppOffline(deploymentResult.
ContentRoot
);
427
() => AddAppOffline(deploymentResult.
ContentRoot
),
431
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214
Assert.True(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.exe")));
215
Assert.False(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll")));
216
Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.
ContentRoot
, "web.config"), Logger));
281
Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"),
282
Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"),
346
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"), "");
406
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll"));
447
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"));
713
Assert.Equal(deploymentResult.
ContentRoot
, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.
ContentRoot
+ "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
716
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
741
var applicationDll = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll");
742
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)
83
AddAppOffline(deploymentResult.
ContentRoot
);
95
AddAppOffline(deploymentResult.
ContentRoot
);
107
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
125
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
148
AddAppOffline(deploymentResult.
ContentRoot
);
167
AddAppOffline(deploymentResult.
ContentRoot
);
179
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "Microsoft.AspNetCore.Server.IIS.dll"), "");
185
AddAppOffline(deploymentResult.
ContentRoot
);
244
AddAppOffline(deploymentResult.
ContentRoot
);
342
AddAppOffline(deploymentResult.
ContentRoot
);
353
AddAppOffline(deploymentResult.
ContentRoot
);
355
RemoveAppOffline(deploymentResult.
ContentRoot
);
358
AddAppOffline(deploymentResult.
ContentRoot
);
368
AddAppOffline(deploymentResult.
ContentRoot
);
372
RemoveAppOffline(deploymentResult.
ContentRoot
);
383
AddAppOffline(deploymentResult.
ContentRoot
);
387
RemoveAppOffline(deploymentResult.
ContentRoot
);
427
() => AddAppOffline(deploymentResult.
ContentRoot
),
431
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214
Assert.True(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.exe")));
215
Assert.False(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll")));
216
Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.
ContentRoot
, "web.config"), Logger));
281
Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"),
282
Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"),
346
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"), "");
406
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll"));
447
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"));
713
Assert.Equal(deploymentResult.
ContentRoot
, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.
ContentRoot
+ "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
716
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
741
var applicationDll = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll");
742
var handlerDll = Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll");
IIS.NewShim.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)
83
AddAppOffline(deploymentResult.
ContentRoot
);
95
AddAppOffline(deploymentResult.
ContentRoot
);
107
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
125
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
148
AddAppOffline(deploymentResult.
ContentRoot
);
167
AddAppOffline(deploymentResult.
ContentRoot
);
179
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "Microsoft.AspNetCore.Server.IIS.dll"), "");
185
AddAppOffline(deploymentResult.
ContentRoot
);
244
AddAppOffline(deploymentResult.
ContentRoot
);
342
AddAppOffline(deploymentResult.
ContentRoot
);
353
AddAppOffline(deploymentResult.
ContentRoot
);
355
RemoveAppOffline(deploymentResult.
ContentRoot
);
358
AddAppOffline(deploymentResult.
ContentRoot
);
368
AddAppOffline(deploymentResult.
ContentRoot
);
372
RemoveAppOffline(deploymentResult.
ContentRoot
);
383
AddAppOffline(deploymentResult.
ContentRoot
);
387
RemoveAppOffline(deploymentResult.
ContentRoot
);
427
() => AddAppOffline(deploymentResult.
ContentRoot
),
431
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214
Assert.True(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.exe")));
215
Assert.False(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll")));
216
Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.
ContentRoot
, "web.config"), Logger));
281
Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"),
282
Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"),
346
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"), "");
406
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll"));
447
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"));
713
Assert.Equal(deploymentResult.
ContentRoot
, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.
ContentRoot
+ "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
716
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
741
var applicationDll = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll");
742
var handlerDll = Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll");
IIS.ShadowCopy.Tests (36)
ShadowCopyTests.cs (30)
29
var directoryInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
55
var directoryInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
63
var tempDirectoryPath = Path.Combine(deploymentResult.
ContentRoot
, directoryName);
89
var directoryInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
116
DirectoryCopy(deploymentResult.
ContentRoot
, directory.DirectoryPath, copySubDirs: true);
121
var dirInfo = new DirectoryInfo(deploymentResult.
ContentRoot
);
150
var deleteDirPath = Path.Combine(deploymentResult.
ContentRoot
, "wwwroot/deletethis");
157
AddAppOffline(deploymentResult.
ContentRoot
);
164
RemoveAppOffline(deploymentResult.
ContentRoot
);
181
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
189
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
190
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true);
208
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true);
216
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
217
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true);
248
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "1"), copySubDirs: true);
249
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "3"), copySubDirs: true);
250
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "10"), copySubDirs: true);
258
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
259
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true);
292
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
300
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
301
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true, ignoreDirectory: "ShadowCopy");
305
Assert.True(Directory.Exists(Path.Combine(deploymentResult.
ContentRoot
, "ShadowCopy")));
307
Assert.False(Directory.Exists(Path.Combine(deploymentResult.
ContentRoot
, "ShadowCopy", "0", "ShadowCopy")));
322
DirectoryCopy(deploymentResult.
ContentRoot
, Path.Combine(directory.DirectoryPath, "0"), copySubDirs: true);
330
DirectoryCopy(deploymentResult.
ContentRoot
, secondTempDir.DirectoryPath, copySubDirs: true);
331
DirectoryCopy(secondTempDir.DirectoryPath, deploymentResult.
ContentRoot
, copySubDirs: true, ignoreDirectory: "ShadowCopy");
335
Assert.True(Directory.Exists(Path.Combine(deploymentResult.
ContentRoot
, "ShadowCopy")));
337
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)
222
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)
120
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "subdirectory", "debug.txt"));
134
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
150
AssertLogs(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcore-debug.log"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (6)
607
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.Client.GetStringAsync("/ContentRootPath"));
608
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath"));
609
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
610
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/BaseDirectory"));
611
Assert.Equal(_fixture.DeploymentResult.
ContentRoot
+ "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
624
Application Path: {_fixture.DeploymentResult.
ContentRoot
}\
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (19)
83
AddAppOffline(deploymentResult.
ContentRoot
);
95
AddAppOffline(deploymentResult.
ContentRoot
);
107
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
125
using (var stream = File.Open(Path.Combine(deploymentResult.
ContentRoot
, "app_offline.htm"), FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
148
AddAppOffline(deploymentResult.
ContentRoot
);
167
AddAppOffline(deploymentResult.
ContentRoot
);
179
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "Microsoft.AspNetCore.Server.IIS.dll"), "");
185
AddAppOffline(deploymentResult.
ContentRoot
);
244
AddAppOffline(deploymentResult.
ContentRoot
);
342
AddAppOffline(deploymentResult.
ContentRoot
);
353
AddAppOffline(deploymentResult.
ContentRoot
);
355
RemoveAppOffline(deploymentResult.
ContentRoot
);
358
AddAppOffline(deploymentResult.
ContentRoot
);
368
AddAppOffline(deploymentResult.
ContentRoot
);
372
RemoveAppOffline(deploymentResult.
ContentRoot
);
383
AddAppOffline(deploymentResult.
ContentRoot
);
387
RemoveAppOffline(deploymentResult.
ContentRoot
);
427
() => AddAppOffline(deploymentResult.
ContentRoot
),
431
RemoveAppOffline(deploymentResult.
ContentRoot
);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (14)
214
Assert.True(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.exe")));
215
Assert.False(File.Exists(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll")));
216
Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.
ContentRoot
, "web.config"), Logger));
281
Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"),
282
Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"),
346
File.WriteAllText(Path.Combine(deploymentResult.
ContentRoot
, "hostfxr.dll"), "");
406
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll"));
447
File.Delete(Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll"));
713
Assert.Equal(deploymentResult.
ContentRoot
, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.
ContentRoot
+ "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
716
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.
ContentRoot
+ "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
741
var applicationDll = Path.Combine(deploymentResult.
ContentRoot
, "InProcessWebSite.dll");
742
var handlerDll = Path.Combine(deploymentResult.
ContentRoot
, "aspnetcorev2_inprocess.dll");