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

View File

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