diff --git a/Vagrantfile b/Vagrantfile index c62369b..85371c2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -5,7 +5,7 @@ unless Vagrant.has_plugin?('vagrant-berkshelf') abort end -Vagrant.require_version '~> 2.0.0' +Vagrant.require_version '~> 2.0' chef_version = '12.9.41' Vagrant.configure(2) do |config| diff --git a/features/error_handlers.feature b/features/error_handlers.feature index fe0f4da..68f7ced 100644 --- a/features/error_handlers.feature +++ b/features/error_handlers.feature @@ -57,3 +57,11 @@ Feature: Test tasks for error handlers Then I run `cap dev deploy` And the output should not contain "Task 'deploy:symlink:release' executed" And the exit status should not be 0 + + Scenario: Rollback execute all tasks + Given I successfully run "cap dev deploy" + And I provoke an exception for testing purposes after symlinking the new release + And I extend the development capistrano configuration from the fixture file second_server.rb + Then I run `cap dev deploy` + And the output should not contain "Skipping task" + And the exit status should not be 0 diff --git a/spec/fixtures/capistrano/configuration/second_server.rb b/spec/fixtures/capistrano/configuration/second_server.rb new file mode 100644 index 0000000..9db1134 --- /dev/null +++ b/spec/fixtures/capistrano/configuration/second_server.rb @@ -0,0 +1 @@ +server '192.168.156.180', roles: %w[web app backend db], primary: false