public void ShouldPrefixAppPathIfSet()
        {
            var rootPath = TestEnvironment.ConstructRootedPath("MyApp");

            variables.Set("Octopus.Tentacle.Agent.ApplicationDirectoryPath", rootPath);

            convention.Install(new RunningDeployment(PackageLocation, variables));

            Assert.That(variables.Get("OctopusOriginalPackageDirectoryPath"), Is.EqualTo(Path.Combine(rootPath, "Acme.Web", "1.0.0")));
        }
示例#2
0
 public void ShouldExtractToVersionedFolderWithDefaultPath()
 {
     convention.Install(new RunningDeployment("C:\\Package.nupkg", variables));
     Assert.That(variables.Get("OctopusOriginalPackageDirectoryPath"), Is.EqualTo("C:\\Applications\\Acme.Web\\1.0.0"));
 }