| 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
|
|
|