| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import webapp2 | 5 import webapp2 |
| 6 | 6 |
| 7 from google.appengine.api import datastore_errors | 7 from google.appengine.api import datastore_errors |
| 8 from google.appengine.ext import ndb | 8 from google.appengine.ext import ndb |
| 9 | 9 |
| 10 from components import auth | 10 from components import auth |
| 11 from components import utils | 11 from components import utils |
| 12 | 12 |
| 13 | 13 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 27 # Add a fake admin for local dev server. | 27 # Add a fake admin for local dev server. |
| 28 if not auth.is_replica(): | 28 if not auth.is_replica(): |
| 29 auth.bootstrap_group( | 29 auth.bootstrap_group( |
| 30 auth.ADMIN_GROUP, | 30 auth.ADMIN_GROUP, |
| 31 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], | 31 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], |
| 32 'Users that can manage groups') | 32 'Users that can manage groups') |
| 33 | 33 |
| 34 # /_ah/warmup is used by the smoke test to detect that app is alive. | 34 # /_ah/warmup is used by the smoke test to detect that app is alive. |
| 35 app = webapp2.WSGIApplication( | 35 app = webapp2.WSGIApplication( |
| 36 [webapp2.Route(r'/_ah/warmup', WarmupHandler)], debug=True) | 36 [webapp2.Route(r'/_ah/warmup', WarmupHandler)], debug=True) |
| OLD | NEW |