aws-flow 1.1.1 → 1.2.0
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.
- checksums.yaml +8 -8
- data/lib/aws/decider/decider.rb +1 -1
- data/lib/aws/decider/executor.rb +36 -30
- data/lib/aws/decider/options.rb +178 -120
- data/lib/aws/decider/task_handler.rb +5 -7
- data/lib/aws/decider/task_poller.rb +49 -34
- data/lib/aws/decider/utilities.rb +13 -3
- data/lib/aws/decider/version.rb +1 -1
- data/lib/aws/decider/worker.rb +137 -40
- data/lib/aws/decider/workflow_client.rb +1 -1
- data/spec/aws/integration/integration_spec.rb +55 -33
- data/spec/aws/unit/decider_spec.rb +22 -19
- data/spec/aws/unit/executor_spec.rb +49 -0
- data/spec/aws/unit/options_spec.rb +293 -0
- data/spec/aws/unit/preinclude_tests.rb +2 -1
- data/spec/spec_helper.rb +1 -0
- metadata +4 -2
@@ -64,6 +64,7 @@ describe "will test a patch that makes sure with_retry and decision_context can
|
|
64
64
|
end
|
65
65
|
|
66
66
|
class FakeWorkflowExecution
|
67
|
+
attr_accessor :run_id, :workflow_id, :task_list
|
67
68
|
def run_id
|
68
69
|
"1"
|
69
70
|
end
|
@@ -79,7 +80,7 @@ describe "will test a patch that makes sure with_retry and decision_context can
|
|
79
80
|
end
|
80
81
|
|
81
82
|
class SynchronousWorkflowTaskPoller < AWS::Flow::WorkflowTaskPoller
|
82
|
-
def
|
83
|
+
def get_decision_task
|
83
84
|
workflow_type = FakeWorkflowType.new(nil, "TestWorkflow.entry_point", "1")
|
84
85
|
TestHistoryWrapper.new(workflow_type,
|
85
86
|
[TestHistoryEvent.new("WorkflowExecutionStarted", 1, {:parent_initiated_event_id=>0, :child_policy=>:request_cancel, :execution_start_to_close_timeout=>3600, :task_start_to_close_timeout=>5, :workflow_type=> workflow_type, :task_list=>"TestWorkflow_tasklist"}),
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Steger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -82,12 +82,14 @@ files:
|
|
82
82
|
- spec/aws/unit/async_scope_spec.rb
|
83
83
|
- spec/aws/unit/begin_rescue_ensure_spec.rb
|
84
84
|
- spec/aws/unit/decider_spec.rb
|
85
|
+
- spec/aws/unit/executor_spec.rb
|
85
86
|
- spec/aws/unit/external_task_spec.rb
|
86
87
|
- spec/aws/unit/factories.rb
|
87
88
|
- spec/aws/unit/fiber_condition_variable_spec.rb
|
88
89
|
- spec/aws/unit/fiber_spec.rb
|
89
90
|
- spec/aws/unit/flow_spec.rb
|
90
91
|
- spec/aws/unit/future_spec.rb
|
92
|
+
- spec/aws/unit/options_spec.rb
|
91
93
|
- spec/aws/unit/preinclude_tests.rb
|
92
94
|
- spec/aws/unit/rubyflow.rb
|
93
95
|
- spec/aws/unit/simple_dfa_spec.rb
|