create fake cert/key for tests to pass

This commit is contained in:
Girish Ramakrishnan
2016-05-13 22:35:13 -07:00
parent b5e4e9fed6
commit e5d906a065

View File

@@ -115,14 +115,16 @@ describe('Apps', function () {
console.log('Starting addons, this can take 10 seconds');
safe.fs.unlinkSync(paths.DATA_DIR + '/INFRA_VERSION');
safe.fs.writeFileSync(paths.DATA_DIR + '/cert', 'utf8');
safe.fs.writeFileSync(paths.DATA_DIR + '/key', 'utf8');
var args = [
path.resolve(__dirname + '/../../scripts/setup_infra.sh'),
paths.DATA_DIR,
config.fqdn(),
config.adminFqdn(),
'cert',
'key',
paths.DATA_DIR + '/cert',
paths.DATA_DIR + '/key',
config.database().name,
'"' + config.database().password + '"' // can be empty...
];