Fix ssh key for digitalocean test

This commit is contained in:
Johannes Zellner 2016-09-09 17:35:41 +02:00
parent 20e2dcf2c4
commit 62bba8422d
1 changed files with 14 additions and 12 deletions

View File

@ -24,7 +24,7 @@ require('colors');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
const BOX_VERSION = process.env.BOX_VERSION; const BOX_VERSION = process.env.BOX_VERSION;
const SELFHOST_DOMAIN = 'smartserver.io'; const SELFHOST_DOMAIN = 'smartserver.io';
const SSH_KEY = 'caas_staging'; const SSH_KEY = 'id_rsa_e2e_selfhost';
const DO_TYPE = '1gb'; const DO_TYPE = '1gb';
const DO_REGION = 'ams2'; const DO_REGION = 'ams2';
const DO_TOKEN = process.env.DIGITAL_OCEAN_TOKEN_STAGING; const DO_TOKEN = process.env.DIGITAL_OCEAN_TOKEN_STAGING;
@ -205,15 +205,16 @@ describe('Selfhost EC2 Cloudron creation', function () {
it('can restore the box', function () { it('can restore the box', function () {
var params = [ var params = [
'--fqdn ' + SELFHOST_DOMAIN, '--fqdn ' + SELFHOST_DOMAIN,
'--type ' + DO_TYPE, // THOSE SHOULD BE STASHED IN THE CONFIG
'--token ' + DO_TOKEN, // '--type ' + DO_TYPE,
'--region ' + DO_REGION, // '--token ' + DO_TOKEN,
'--aws-region ' + EC2_REGION, // '--region ' + DO_REGION,
'--ssh-key ' + SSH_KEY, // '--aws-region ' + EC2_REGION,
'--access-key-id ' + AWS_ACCESS_KEY, // '--ssh-key ' + SSH_KEY,
'--secret-access-key ' + AWS_ACCESS_SECRET, // '--access-key-id ' + AWS_ACCESS_KEY,
'--backup-key ' + BACKUP_KEY, // '--secret-access-key ' + AWS_ACCESS_SECRET,
'--backup-bucket ' + BACKUP_BUCKET, // '--backup-key ' + BACKUP_KEY,
// '--backup-bucket ' + BACKUP_BUCKET,
'--backup ' + backupInfo.id, '--backup ' + backupInfo.id,
]; ];
@ -241,8 +242,9 @@ describe('Selfhost EC2 Cloudron creation', function () {
it('can migrate cloudron', function () { it('can migrate cloudron', function () {
var params = [ var params = [
'--fqdn ' + SELFHOST_DOMAIN, '--fqdn ' + SELFHOST_DOMAIN,
'--token ' + DO_TOKEN, // THOSE SHOULD BE STASHED IN THE CONFIG
'--ssh-key ' + SSH_KEY // '--token ' + DO_TOKEN,
// '--ssh-key ' + SSH_KEY
]; ];
var out = machine('migrate digitalocean ' + params.join(' ')); var out = machine('migrate digitalocean ' + params.join(' '));