blob: 123a139aad947ef610bfbb63f2e97ddddd89e791 [file] [log] [blame]
xixuanbea010f2017-03-27 10:10:19 -07001# 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
7import os
8
Xixuan Wu26d06e02017-09-20 14:50:28 -07009# The path for third-party libraries.
10THIRD_PARTY_LIB_PATH = os.path.join(os.path.dirname(__file__), 'lib')
11
xixuanbea010f2017-03-27 10:10:19 -070012# The path to save credentials.
13CREDENTIALS_PATH = os.path.join(os.path.dirname(__file__), 'credentials')
14
15# Credentials for Cloud SQL connection
16SQL_CREDENTIAL_FILE = os.path.join(CREDENTIALS_PATH,
17 'cloud_sql_credentials.txt')
18
19# The path to save configs.
20CONFIG_PATH = os.path.join(os.path.dirname(__file__), 'configs')
21
22# Suite scheduler event config file
Xixuan Wu26d06e02017-09-20 14:50:28 -070023SUITE_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.
30TEST_SUITE_SCHEDULER_CONFIG_FILE = os.path.join(
31 CONFIG_PATH, 'suite_scheduler_test.ini')
xixuanbea010f2017-03-27 10:10:19 -070032
33# Lab config file
34LAB_CONFIG_FILE = os.path.join(CONFIG_PATH, 'lab_config.ini')
35
Xixuan Wu26d06e02017-09-20 14:50:28 -070036# Service account secret json file used for staging project.
37STAGING_CLIENT_SECRETS_FILE = os.path.join(
Xixuan Wu865fa282017-09-05 15:23:19 -070038 CREDENTIALS_PATH,
39 'suite-scheduler-staging_client_secret_service_account.json')
Xixuan Wu26d06e02017-09-20 14:50:28 -070040
41# Service account secret json file used for prod project.
42PROD_CLIENT_SECRETS_FILE = os.path.join(
43 CREDENTIALS_PATH,
44 'suite-scheduler_client_secret_service_account.json')