summaryrefslogtreecommitdiff
path: root/spec/unit/provider/deploy_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-06-11 13:31:42 -0700
committerdanielsdeleo <dan@opscode.com>2013-06-12 19:44:17 -0700
commit0d6f062a077dace81b482bd624b5365b963a6d38 (patch)
tree60c92764ba7b88c6f257cc5502b5577979033e40 /spec/unit/provider/deploy_spec.rb
parent83ad7d9aeb3f7c4b752dd92d4ca1f3671a0ab9ac (diff)
downloadchef-0d6f062a077dace81b482bd624b5365b963a6d38.tar.gz
attempt redeploy of failed deployment
`deploy_revision` provider now stores releases in the release history cache only after a successful deploy. As a result, a partially deployed application will be overwritten by a subsequent deploy to the same revision (similar to force_deploy). Fixes CHEF-2741
Diffstat (limited to 'spec/unit/provider/deploy_spec.rb')
-rw-r--r--spec/unit/provider/deploy_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/deploy_spec.rb b/spec/unit/provider/deploy_spec.rb
index ef4aed800d..56ba50b7f0 100644
--- a/spec/unit/provider/deploy_spec.rb
+++ b/spec/unit/provider/deploy_spec.rb
@@ -324,11 +324,11 @@ describe Chef::Provider::Deploy do
@provider.copy_cached_repo
end
- it "calls the internal callback :release_created when copying the cached repo" do
+ it "calls the internal callback :release_created when cleaning up the releases" do
FileUtils.stub!(:mkdir_p)
FileUtils.stub!(:cp_r)
@provider.should_receive(:release_created)
- @provider.copy_cached_repo
+ @provider.cleanup!
end
it "chowns the whole release dir to user and group specified in the resource" do