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

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

Issue 1258583006: Add gsutil 4.13 to telemetry/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo all other changes so this just add gsutil to third_party Created 5 years, 5 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: tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py b/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/swf/test_layer1_decisions.py
new file mode 100644
index 0000000000000000000000000000000000000000..c5adf612dbab7cd7d90eb44229097c676708f11f
--- /dev/null
+++ b/tools/telemetry/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