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

Unified Diff: appengine/cr-buildbucket/test/service_test.py

Issue 1082303002: buildbucket: put_batch endpoint (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: removed memcache import Created 5 years, 8 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
« no previous file with comments | « appengine/cr-buildbucket/test/api_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cr-buildbucket/test/service_test.py
diff --git a/appengine/cr-buildbucket/test/service_test.py b/appengine/cr-buildbucket/test/service_test.py
index bdef6d14099d94b6ed668559bb8a992e4c8cf794..091865707de2c08116366fc541393b9cfd29fd1c 100644
--- a/appengine/cr-buildbucket/test/service_test.py
+++ b/appengine/cr-buildbucket/test/service_test.py
@@ -66,6 +66,20 @@ class BuildBucketServiceTest(testing.AppengineTestCase):
self.assertEqual(build.parameters, params)
self.assertEqual(build.created_by, auth.get_current_identity())
+ def test_add_with_client_operation_id(self):
+ build = self.service.add(
+ bucket='chromium',
+ parameters={'buildername': 'linux_rel'},
+ client_operation_id='1',
+ )
+ build2 = self.service.add(
+ bucket='chromium',
+ parameters={'buildername': 'linux_rel'},
+ client_operation_id='1',
+ )
+ self.assertIsNotNone(build.key)
+ self.assertEqual(build, build2)
+
def test_add_with_bad_bucket_name(self):
with self.assertRaises(errors.InvalidInputError):
self.service.add(bucket='chromium as')
« no previous file with comments | « appengine/cr-buildbucket/test/api_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698