generated from mtxr/vsc-sqltools-driver-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
24 lines (22 loc) · 891 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
let overrides = {};
try {
overrides = require('./config.local');
} catch (e) {}
const catalog = process.env.E2E_CATALOG || undefined;
const database = process.env.E2E_DATABASE || undefined;
// Create file named `config.local.js` in the same directory and override config there
module.exports = {
// Where to log: CONSOLE, FILE, QUIET
logger: 'CONSOLE',
// Host, like ****.cloud.databricks.com
host: process.env.E2E_HOST,
// API path: /sql/1.0/endpoints/****************
path: process.env.E2E_PATH,
// Access token: dapi********************************
token: process.env.E2E_ACCESS_TOKEN,
// Catalog and database to use for testing; specify both or leave array empty to use defaults
database: catalog || database ? [catalog, database] : [],
// Suffix used for tables that will be created during tests
tableSuffix: process.env.E2E_TABLE_SUFFIX,
...overrides,
};