| OLD | NEW |
| 1 # Copyright 2014 The Swarming 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 by the Apache v2.0 license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Defines access groups.""" | 5 """Defines access groups.""" |
| 6 | 6 |
| 7 from components import auth | 7 from components import auth |
| 8 from components import utils | 8 from components import utils |
| 9 | 9 |
| 10 | 10 |
| 11 # Names of groups. | 11 # Names of groups. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 # Add a swarming admin. smoke-test@example.com is used in | 72 # Add a swarming admin. smoke-test@example.com is used in |
| 73 # server_smoke_test.py | 73 # server_smoke_test.py |
| 74 admin = auth.Identity(auth.IDENTITY_USER, 'smoke-test@example.com') | 74 admin = auth.Identity(auth.IDENTITY_USER, 'smoke-test@example.com') |
| 75 auth.bootstrap_group(ADMINS_GROUP, [admin], 'Swarming administrators') | 75 auth.bootstrap_group(ADMINS_GROUP, [admin], 'Swarming administrators') |
| 76 | 76 |
| 77 # Add an instance admin (for easier manual testing when running dev server). | 77 # Add an instance admin (for easier manual testing when running dev server). |
| 78 auth.bootstrap_group( | 78 auth.bootstrap_group( |
| 79 auth.ADMIN_GROUP, | 79 auth.ADMIN_GROUP, |
| 80 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], | 80 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], |
| 81 'Users that can manage groups') | 81 'Users that can manage groups') |
| OLD | NEW |