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. |
| 4 | |
| 5 | """Module for fetching files used by suite scheduler.""" |
| 6 | |
| 7 | import os |
| 8 | |
Xixuan Wu | 26d06e0 | 2017-09-20 14:50:28 -0700 | [diff] [blame^] | 9 | # The path for third-party libraries. |
| 10 | THIRD_PARTY_LIB_PATH = os.path.join(os.path.dirname(__file__), 'lib') |
| 11 | |
xixuan | bea010f | 2017-03-27 10:10:19 -0700 | [diff] [blame] | 12 | # The path to save credentials. |
| 13 | CREDENTIALS_PATH = os.path.join(os.path.dirname(__file__), 'credentials') |
| 14 | |
| 15 | # Credentials for Cloud SQL connection |
| 16 | SQL_CREDENTIAL_FILE = os.path.join(CREDENTIALS_PATH, |
| 17 | 'cloud_sql_credentials.txt') |
| 18 | |
| 19 | # The path to save configs. |
| 20 | CONFIG_PATH = os.path.join(os.path.dirname(__file__), 'configs') |
| 21 | |
| 22 | # Suite scheduler event config file |
Xixuan Wu | 26d06e0 | 2017-09-20 14:50:28 -0700 | [diff] [blame^] | 23 | SUITE_SCHEDULER_CONFIG_FILE = os.path.join(CONFIG_PATH, |
| 24 | 'suite_scheduler.ini') |
| 25 | |
| 26 | # The suite scheduler config file for testing. |
| 27 | # TODO(xixuan): after suite scheduler's configs are fully migrated, will |
| 28 | # change this file to SUITE_SCHEDULER_CONFIG_FILE. In another words, we |
| 29 | # want to use real config file for testing. |
| 30 | TEST_SUITE_SCHEDULER_CONFIG_FILE = os.path.join( |
| 31 | CONFIG_PATH, 'suite_scheduler_test.ini') |
xixuan | bea010f | 2017-03-27 10:10:19 -0700 | [diff] [blame] | 32 | |
| 33 | # Lab config file |
| 34 | LAB_CONFIG_FILE = os.path.join(CONFIG_PATH, 'lab_config.ini') |
| 35 | |
Xixuan Wu | 26d06e0 | 2017-09-20 14:50:28 -0700 | [diff] [blame^] | 36 | # Service account secret json file used for staging project. |
| 37 | STAGING_CLIENT_SECRETS_FILE = os.path.join( |
Xixuan Wu | 865fa28 | 2017-09-05 15:23:19 -0700 | [diff] [blame] | 38 | CREDENTIALS_PATH, |
| 39 | 'suite-scheduler-staging_client_secret_service_account.json') |
Xixuan Wu | 26d06e0 | 2017-09-20 14:50:28 -0700 | [diff] [blame^] | 40 | |
| 41 | # Service account secret json file used for prod project. |
| 42 | PROD_CLIENT_SECRETS_FILE = os.path.join( |
| 43 | CREDENTIALS_PATH, |
| 44 | 'suite-scheduler_client_secret_service_account.json') |