public void DirectoryDeployerInstallRollbackTest() { var deployer = DirectoryDeployer.Create(_conf); deployer.Install(); deployer.InstallRollback(); Assert.That(Directory.Exists(_conf.SurveyPath.Survey), Is.False); }
public void DirectoryDeployerUpdateTest() { DirectoryDeployer.Create(_conf).Install(); var confForUpdate = CreateConfForPackage("TestSurveyUpd"); DirectoryDeployer.Create(confForUpdate).Update(); Assert.That(File.Exists(confForUpdate.PackagePaths.Backup), Is.True); Assert.That(Directory.Exists(Path.Combine(_conf.SurveyPath.Survey, "common")), Is.False); Assert.That(Directory.Exists(Path.Combine(_conf.SurveyPath.Survey, "data")), Is.False); }
public void DirectoryDeployerInstallTest() { var deployer = DirectoryDeployer.Create(_conf); deployer.Install(); Assert.That(File.Exists(Path.Combine(_conf.SurveyPath.Survey, "web.config")), Is.True); Assert.That(File.Exists(Path.Combine(_conf.SurveyPath.Survey, "connectionstrings.config")), Is.True); Assert.That(File.Exists(Path.Combine(_conf.SurveyPath.Survey, @"bin\spssio32.dll")), Is.True); Assert.That(File.Exists(Path.Combine(_conf.SurveyPath.Survey, @"bin\system.web.mvc.dll")), Is.True); Assert.That(File.Exists(Path.Combine(_conf.SurveyPath.Survey, @"bin\win64\spssio64.dll")), Is.True); Assert.That(File.Exists(Path.Combine(_conf.SurveyPath.Survey, @"bin\win64\icudt38.dll")), Is.True); foreach (var dir in _conf.IIS.DirsNeedIISAccess) { Assert.That(HasIISUserAccess(dir.Key, dir.Value), Is.True); } }