xixuan | bea010f | 2017-03-27 10:10:19 -0700 | [diff] [blame] | 1 | # Copyright 2017 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
xixuan | bea010f | 2017-03-27 10:10:19 -0700 | [diff] [blame] | 4 | """Module for fetching files used by suite scheduler.""" |
| 5 | |
| 6 | import os |
| 7 | |
xixuan | bea010f | 2017-03-27 10:10:19 -0700 | [diff] [blame] | 8 | # The path to save credentials. |
| 9 | CREDENTIALS_PATH = os.path.join(os.path.dirname(__file__), 'credentials') |
| 10 | |
xixuan | bea010f | 2017-03-27 10:10:19 -0700 | [diff] [blame] | 11 | # The path to save configs. |
| 12 | CONFIG_PATH = os.path.join(os.path.dirname(__file__), 'configs') |
| 13 | |
| 14 | # Suite scheduler event config file |
Prathmesh Prabhu | 8dff3e2 | 2020-06-23 13:49:45 -0700 | [diff] [blame] | 15 | SUITE_SCHEDULER_CONFIG_FILE = os.path.join(CONFIG_PATH, 'suite_scheduler.ini') |
Xixuan Wu | 26d06e0 | 2017-09-20 14:50:28 -0700 | [diff] [blame] | 16 | |
| 17 | # The suite scheduler config file for testing. |
Brigit Rossbach | 179f866 | 2020-09-16 11:22:56 -0600 | [diff] [blame] | 18 | TEST_SUITE_SCHEDULER_CONFIG_FILE = os.path.join(CONFIG_PATH, 'fake_suite_scheduler.ini') |
xixuan | bea010f | 2017-03-27 10:10:19 -0700 | [diff] [blame] | 19 | |
| 20 | # Lab config file |
| 21 | LAB_CONFIG_FILE = os.path.join(CONFIG_PATH, 'lab_config.ini') |
| 22 | |
Xixuan Wu | 26d06e0 | 2017-09-20 14:50:28 -0700 | [diff] [blame] | 23 | # Service account secret json file used for staging project. |
| 24 | STAGING_CLIENT_SECRETS_FILE = os.path.join( |
Xixuan Wu | 865fa28 | 2017-09-05 15:23:19 -0700 | [diff] [blame] | 25 | CREDENTIALS_PATH, |
| 26 | 'suite-scheduler-staging_client_secret_service_account.json') |
Xixuan Wu | 26d06e0 | 2017-09-20 14:50:28 -0700 | [diff] [blame] | 27 | |
| 28 | # Service account secret json file used for prod project. |
| 29 | PROD_CLIENT_SECRETS_FILE = os.path.join( |
Prathmesh Prabhu | 8dff3e2 | 2020-06-23 13:49:45 -0700 | [diff] [blame] | 30 | CREDENTIALS_PATH, 'suite-scheduler_client_secret_service_account.json') |