Remove unused prefix for test env vars (#203) (#204)

* TEST_ prefix is not used by CI anymore and there for serve no purpose

* Part of overall goal to standardize env var injection to
  MODULE_VARNAME (ie. MYSQL_HOST for example) convention

Backport of #203
This commit is contained in:
Simon Ho 2016-10-11 14:23:13 -07:00 committed by GitHub
parent a9dc15c180
commit 025c1f30ff
1 changed files with 2 additions and 4 deletions

View File

@ -13,10 +13,8 @@ var config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql;
console.log(config);
global.getConfig = function(options) {
var dbConf = {
host: process.env.TEST_MYSQL_HOST || process.env.MYSQL_HOST ||
config.host || 'localhost',
port: process.env.TEST_MYSQL_PORT || process.env.MYSQL_PORT ||
config.port || 3306,
host: process.env.MYSQL_HOST || config.host || 'localhost',
port: process.env.MYSQL_PORT || config.port || 3306,
database: 'myapp_test',
username: process.env.MYSQL_USER || config.username,
password: process.env.MYSQL_PASSWORD || config.password,