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

Unified Diff: appengine/findit/common/waterfall/buildbucket_client.py

Issue 2611723002: Moved http_client_appengine.py from ./common to ./gae_libs/http (Closed)
Patch Set: adding missing __init__.py file Created 3 years, 12 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: appengine/findit/common/waterfall/buildbucket_client.py
diff --git a/appengine/findit/common/waterfall/buildbucket_client.py b/appengine/findit/common/waterfall/buildbucket_client.py
index 6236bdc52381c51f07393639306cf01ed4275863..12ee60c4424ff65e8a8d4b7e306f1862bdcf2b05 100644
--- a/appengine/findit/common/waterfall/buildbucket_client.py
+++ b/appengine/findit/common/waterfall/buildbucket_client.py
@@ -8,8 +8,8 @@ import collections
import json
import logging
-from common import auth_util
-from common.http_client_appengine import HttpClientAppengine as HttpClient
+from gae_libs.http import auth_util
+from gae_libs.http.http_client_appengine import HttpClientAppengine
# TODO: save these settings in datastore and create a role account.
@@ -147,7 +147,7 @@ def TriggerTryJobs(try_jobs):
}
for try_job in try_jobs:
- status_code, content = HttpClient().Put(
+ status_code, content = HttpClientAppengine().Put(
_BUILDBUCKET_PUT_GET_ENDPOINT,
json.dumps(try_job.ToBuildbucketRequest()), headers=headers)
if status_code == 200: # pragma: no cover
@@ -182,7 +182,7 @@ def GetTryJobs(build_ids):
}
for build_id in build_ids:
- status_code, content = HttpClient().Get(
+ status_code, content = HttpClientAppengine().Get(
_BUILDBUCKET_PUT_GET_ENDPOINT + '/' + build_id, headers=headers)
if status_code == 200: # pragma: no cover
json_results.append(json.loads(content))
« no previous file with comments | « appengine/findit/common/test/chrome_dependency_fetcher_test.py ('k') | appengine/findit/crash/crash_pipeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698