Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py
diff --git a/third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py b/third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py
new file mode 100644
index 0000000000000000000000000000000000000000..c5adf612dbab7cd7d90eb44229097c676708f11f
--- /dev/null
+++ b/third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py
@@ -0,0 +1,35 @@
+from tests.unit import unittest
+
+import boto.swf.layer1_decisions
+
+
+class TestDecisions(unittest.TestCase):
+
+ def setUp(self):
+ self.decisions = boto.swf.layer1_decisions.Layer1Decisions()
+
+ def assert_data(self, *data):
+ self.assertEquals(self.decisions._data, list(data))
+
+ def test_continue_as_new_workflow_execution(self):
+ self.decisions.continue_as_new_workflow_execution(
+ child_policy='TERMINATE',
+ execution_start_to_close_timeout='10',
+ input='input',
+ tag_list=['t1', 't2'],
+ task_list='tasklist',
+ start_to_close_timeout='20',
+ workflow_type_version='v2'
+ )
+ self.assert_data({
+ 'decisionType': 'ContinueAsNewWorkflowExecution',
+ 'continueAsNewWorkflowExecutionDecisionAttributes': {
+ 'childPolicy': 'TERMINATE',
+ 'executionStartToCloseTimeout': '10',
+ 'input': 'input',
+ 'tagList': ['t1', 't2'],
+ 'taskList': {'name': 'tasklist'},
+ 'taskStartToCloseTimeout': '20',
+ 'workflowTypeVersion': 'v2',
+ }
+ })

Powered by Google App Engine
This is Rietveld 408576698