use env profile for integration tests
This commit is contained in:
parent
04c7b638d7
commit
e5c5f2d54c
@ -215,7 +215,10 @@ CLI.prototype.init = function (opts, args, callback) {
|
|||||||
});
|
});
|
||||||
self.log.trace({config: config}, 'loaded config');
|
self.log.trace({config: config}, 'loaded config');
|
||||||
|
|
||||||
var profileName = opts.profile || config.profile || 'env';
|
var profileName = opts.profile ||
|
||||||
|
config.profile ||
|
||||||
|
process.env.TRITON_PROFILE ||
|
||||||
|
'env';
|
||||||
var profile = mod_config.loadProfile({
|
var profile = mod_config.loadProfile({
|
||||||
configDir: self.configDir,
|
configDir: self.configDir,
|
||||||
name: profileName
|
name: profileName
|
||||||
|
@ -75,6 +75,7 @@ function triton(args, cb) {
|
|||||||
PATH: process.env.PATH,
|
PATH: process.env.PATH,
|
||||||
HOME: process.env.HOME,
|
HOME: process.env.HOME,
|
||||||
SSH_AUTH_SOCK: process.env.SSH_AUTH_SOCK,
|
SSH_AUTH_SOCK: process.env.SSH_AUTH_SOCK,
|
||||||
|
TRITON_PROFILE: 'env',
|
||||||
SDC_URL: CONFIG.url,
|
SDC_URL: CONFIG.url,
|
||||||
SDC_ACCOUNT: CONFIG.account,
|
SDC_ACCOUNT: CONFIG.account,
|
||||||
SDC_KEY_ID: CONFIG.keyId,
|
SDC_KEY_ID: CONFIG.keyId,
|
||||||
|
Reference in New Issue
Block a user