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

Unified Diff: chrome/test/functional/ispy/server/rebaseline_handler.py

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 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: chrome/test/functional/ispy/server/rebaseline_handler.py
===================================================================
--- chrome/test/functional/ispy/server/rebaseline_handler.py (revision 261231)
+++ chrome/test/functional/ispy/server/rebaseline_handler.py (working copy)
@@ -1,38 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Request Handler that updates the Expectation version."""
-
-import webapp2
-
-import ispy_api
-from common import constants
-
-import gs_bucket
-
-
-class RebaselineHandler(webapp2.RequestHandler):
- """Request handler to allow test mask updates."""
-
- def post(self):
- """Accepts post requests.
-
- Expects a test_run as a parameter and updates the associated version file to
- use the expectations associated with that test run.
- """
- test_run = self.request.get('test_run')
-
- # Fail if test_run parameter is missing.
- if not test_run:
- self.response.headers['Content-Type'] = 'json/application'
- self.response.write(json.dumps(
- {'error': '\'test_run\' must be supplied to rebaseline.'}))
- return
- # Otherwise, set up the utilities.
- bucket = gs_bucket.GoogleCloudStorageBucket(constants.BUCKET)
- ispy = ispy_api.ISpyApi(bucket)
- # Update versions file.
- ispy.RebaselineToTestRun(test_run)
- # Redirect back to the sites list for the test run.
- self.redirect('/?test_run=%s' % test_run)
« no previous file with comments | « chrome/test/functional/ispy/server/main_view_handler.py ('k') | chrome/test/functional/ispy/server/update_mask_handler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698