dynflow 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@ module Dynflow
46
46
  Match! action.state, :success
47
47
  action.execution_plan.planned_run_steps.must_include action
48
48
  action.input.must_equal input.stringify_keys if input
49
- block.call input if block
49
+ block.call action.input if block
50
50
  end
51
51
 
52
52
  # refute that +action+ has run-phase planned
@@ -22,6 +22,10 @@ module Dynflow
22
22
  @logger_adapter.dynflow_logger
23
23
  end
24
24
 
25
+ def silence_logger!
26
+ action_logger.level = 4
27
+ end
28
+
25
29
  def subscribed_actions(klass)
26
30
  []
27
31
  end
@@ -1,3 +1,3 @@
1
1
  module Dynflow
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
data/test/action_test.rb CHANGED
@@ -213,7 +213,7 @@ module Dynflow
213
213
 
214
214
  it 'invokes the external task again when polling on the old one fails' do
215
215
  action = run_action plan
216
- action.world.action_logger.level = 3
216
+ action.world.silence_logger!
217
217
  action.external_service.will_fail
218
218
  action.output[:task][:progress].must_equal 0
219
219
  run_action action
@@ -223,7 +223,7 @@ module Dynflow
223
223
  it 'tolerates some failure while polling' do
224
224
  action = run_action plan
225
225
  action.external_service.will_fail
226
- action.world.action_logger.level = 4
226
+ action.world.silence_logger!
227
227
 
228
228
  TestPollingAction.config.poll_max_retries = 3
229
229
  (1..2).each do |attempt|
data/test/testing_test.rb CHANGED
@@ -119,7 +119,7 @@ module Dynflow
119
119
 
120
120
  it 'plans' do
121
121
  planned_action.input.must_equal input.stringify_keys
122
- assert_run_phase planned_action
122
+ assert_run_phase planned_action, { commit: "sha", reviewer: "name", result: true}
123
123
  refute_finalize_phase planned_action
124
124
 
125
125
  planned_action.execution_plan.planned_plan_steps.must_be_empty
@@ -137,7 +137,9 @@ module Dynflow
137
137
  let(:runned_action) { run_action planned_action }
138
138
 
139
139
  it 'plans' do
140
- assert_run_phase planned_action
140
+ assert_run_phase planned_action do |input|
141
+ input[:commit].must_equal "sha"
142
+ end
141
143
  refute_finalize_phase planned_action
142
144
 
143
145
  planned_action.execution_plan.planned_plan_steps.must_be_empty
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-07 00:00:00.000000000 Z
12
+ date: 2014-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport