public static AssertWebsite ( string name, string path, int port, string appPoolName ) : void | ||
name | string | |
path | string | |
port | int | |
appPoolName | string | |
Результат | void |
public void Rollback_Website_Test() { var client = GetClient(); var request = new TriggerDeployment() { AppPoolName = "ZZZ_Integration_PoolName", AppPoolUser = "******", AppPoolPassword = "******", WebsiteName = "ZZZ_Integration_Website_Simple", AppRoot = "/", PackageId = "IntegrationTest", PackageVersion = "1.3.3.7", WebsitePhysicalPath = @"C:\temp\integrationtests", RuntimeVersion = RuntimeVersion.Version40, WebsitePort = 2000, }; client.PostFileWithRequest <TriggerDeploymentResponse>("/deployments", new FileInfo("src/PowerDeploy.IISDeployService.Tests/Files/package.zip".MapVcsRoot()), request).PrintDump(); request.PackageVersion = "1.3.3.8"; client.PostFileWithRequest <TriggerDeploymentResponse>("/deployments", new FileInfo("src/PowerDeploy.IISDeployService.Tests/Files/package.zip".MapVcsRoot()), request).PrintDump(); var rollbackRequest = new RollbackDeployment() { WebsiteName = request.WebsiteName, RollbackTarget = "{0}_v{1}".Fmt(request.PackageId, "1.3.3.7") }; client.Post(rollbackRequest); IISManagerTestBuddy.AssertWebsite(request.WebsiteName, Path.Combine(request.WebsitePhysicalPath, rollbackRequest.RollbackTarget), request.WebsitePort, request.AppPoolName); IISManagerTestBuddy.DeleteAppPool(request.AppPoolName); IISManagerTestBuddy.DeleteWebsite(request.WebsiteName); }
public void Create_Website_Test() { IISManagerTestBuddy.DeleteWebsite("UnitTestWebsite"); IISManagerTestBuddy.DeleteAppPool("UnitTestAppPool"); new IISManager().CreateWebsite("UnitTestWebsite", @"c:\temp", 80, "UnitTestAppPool"); IISManagerTestBuddy.AssertWebsite("UnitTestWebsite", @"c:\temp", 80, "UnitTestAppPool"); }