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

Unified Diff: recipe_modules/properties/test_api.py

Issue 2464673002: Delete tryserver_gerrit and its old properties. (Closed)
Patch Set: Created 4 years, 2 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 | « recipe_modules/properties/example.expected/buildbot_tryserver_gerrit_deprecated.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/properties/test_api.py
diff --git a/recipe_modules/properties/test_api.py b/recipe_modules/properties/test_api.py
index 9eaa652e717fd30e9d6bdef8ec8ed9970baa3daf..069efd14d1860bb63f679216abd997f666754454 100644
--- a/recipe_modules/properties/test_api.py
+++ b/recipe_modules/properties/test_api.py
@@ -127,44 +127,3 @@ class PropertiesTestApi(recipe_test_api.RecipeTestApi):
)
ret.properties.update(kwargs)
return ret
-
- def tryserver_gerrit(self, full_project_name, gerrit_host=None, **kwargs):
- """
- DEPRECATED. Use tryserver(gerrit_project='infra/infra') instead.
-
- Merge kwargs into a typical buildbot properties blob for a job fired off
- by a gerrit tryjob on the tryserver, and return the blob.
-
- Arguments:
- full_project_name: (required) name of the project in Gerrit.
- gerrit_host: hostname of the gerrit server.
- Example: chromium-review.googlesource.com.
- """
- # TODO(tandrii): remove this method.
- gerrit_host = gerrit_host or 'chromium-review.googlesource.com'
- parts = gerrit_host.split('.')
- assert parts[0].endswith('-review')
- parts[0] = parts[0][:-len('-review')]
- repository = 'https://%s/%s' % ('.'.join(parts), full_project_name)
-
- ret = self.generic(
- branch='',
- category='cq',
- gerrit='https://%s' % gerrit_host,
- patch_storage='gerrit',
- project=full_project_name,
- patch_project=full_project_name,
- reason='CQ',
- repository=repository,
- requester='commit-bot@chromium.org',
- revision='HEAD',
- )
- ret.properties.update({
- 'event.change.id': u'%s~master~Ideadbeaf' %
- (full_project_name.replace('/', '%2F')),
- 'event.change.number': 338811,
- 'event.change.url': u'https://%s/#/c/338811' % gerrit_host,
- 'event.patchSet.ref': u'refs/changes/11/338811/3',
- })
- ret.properties.update(kwargs)
- return ret
« no previous file with comments | « recipe_modules/properties/example.expected/buildbot_tryserver_gerrit_deprecated.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698