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 """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 from server import bot_auth | 10 from server import bot_auth |
11 | 11 |
12 | 12 |
13 # Names of groups. | 13 # Names of groups. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 # Add a swarming admin. smoke-test@example.com is used in | 80 # Add a swarming admin. smoke-test@example.com is used in |
81 # server_smoke_test.py | 81 # server_smoke_test.py |
82 admin = auth.Identity(auth.IDENTITY_USER, 'smoke-test@example.com') | 82 admin = auth.Identity(auth.IDENTITY_USER, 'smoke-test@example.com') |
83 auth.bootstrap_group(ADMINS_GROUP, [admin], 'Swarming administrators') | 83 auth.bootstrap_group(ADMINS_GROUP, [admin], 'Swarming administrators') |
84 | 84 |
85 # Add an instance admin (for easier manual testing when running dev server). | 85 # Add an instance admin (for easier manual testing when running dev server). |
86 auth.bootstrap_group( | 86 auth.bootstrap_group( |
87 auth.ADMIN_GROUP, | 87 auth.ADMIN_GROUP, |
88 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], | 88 [auth.Identity(auth.IDENTITY_USER, 'test@example.com')], |
89 'Users that can manage groups') | 89 'Users that can manage groups') |
OLD | NEW |