Add selfhost migrate test

This commit is contained in:
Johannes Zellner 2016-07-29 16:17:49 +02:00
parent 1cda5d7377
commit 39832abc60

View File

@ -194,8 +194,7 @@ describe('Selfhost EC2 Cloudron creation', function () {
'--yes',
'--ssh-key ' + EC2_SSH_KEY,
'--username ' + owner.username,
'--password ' + owner.password,
'--instance-id ' + newInstanceId
'--password ' + owner.password
];
var out = machine('update ' + params.join(' '));
@ -215,6 +214,26 @@ describe('Selfhost EC2 Cloudron creation', function () {
cloudron.checkAddons(cloudron.appFqdn(location), owner);
});
it('can migrate cloudron', function () {
var params = [
'--fqdn ' + SELFHOST_DOMAIN,
'--ssh-key ' + EC2_SSH_KEY,
'--access-key-id ' + AWS_ACCESS_KEY,
'--secret-access-key ' + AWS_ACCESS_SECRET,
];
var out = machine('migrate ' + params.join(' '));
if (out.stdout.indexOf('You can now use your Cloudron at') === -1) {
console.error(out.stdout, out.stderr);
assert(false, 'Update failed');
}
});
it('runs the app', function () {
cloudron.waitForApp(appId);
});
it('can uninstall app', function () {
cloudron.uninstallApp(appId);
});