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.
- data/lib/dynflow/testing/assertions.rb +1 -1
- data/lib/dynflow/testing/dummy_world.rb +4 -0
- data/lib/dynflow/version.rb +1 -1
- data/test/action_test.rb +2 -2
- data/test/testing_test.rb +4 -2
- metadata +2 -2
@@ -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
|
data/lib/dynflow/version.rb
CHANGED
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.
|
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.
|
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.
|
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-
|
12
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|