diff options
author | danielsdeleo <dan@opscode.com> | 2012-11-02 15:54:23 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-11-05 14:34:06 -0800 |
commit | 08d7237d2e52e2f1c7d662037ce0e14ea814f70f (patch) | |
tree | 3be3b952c2da367c413d9d44d8f6895d79e2e6d8 /spec/functional/resource/deploy_revision_spec.rb | |
parent | dd604503b8419fa145bc38824b6ec8a13b1f6a31 (diff) | |
download | chef-08d7237d2e52e2f1c7d662037ce0e14ea814f70f.tar.gz |
[OC-4668] explain expectation on restart test
Diffstat (limited to 'spec/functional/resource/deploy_revision_spec.rb')
-rw-r--r-- | spec/functional/resource/deploy_revision_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functional/resource/deploy_revision_spec.rb b/spec/functional/resource/deploy_revision_spec.rb index 546c67befd..6d142458c4 100644 --- a/spec/functional/resource/deploy_revision_spec.rb +++ b/spec/functional/resource/deploy_revision_spec.rb @@ -169,6 +169,11 @@ describe Chef::Resource::DeployRevision do the_app_is_deployed_at_revision(:latest_rev) it "restarts the application after rolling back" do + # This occurs because restart.txt is not linked into a shared area, so + # the "real path" to the file is inside the active release where it was + # created. When the implicit rollback is triggered, the original copy + # of the release ("latest_rev") in this case is restored. Then our + # "restart command" appends to restart.txt. actual_restart_counter.should == "1\n3" end |