Add selfhost migrate test
This commit is contained in:
parent
1cda5d7377
commit
39832abc60
|
@ -194,8 +194,7 @@ describe('Selfhost EC2 Cloudron creation', function () {
|
||||||
'--yes',
|
'--yes',
|
||||||
'--ssh-key ' + EC2_SSH_KEY,
|
'--ssh-key ' + EC2_SSH_KEY,
|
||||||
'--username ' + owner.username,
|
'--username ' + owner.username,
|
||||||
'--password ' + owner.password,
|
'--password ' + owner.password
|
||||||
'--instance-id ' + newInstanceId
|
|
||||||
];
|
];
|
||||||
|
|
||||||
var out = machine('update ' + params.join(' '));
|
var out = machine('update ' + params.join(' '));
|
||||||
|
@ -215,6 +214,26 @@ describe('Selfhost EC2 Cloudron creation', function () {
|
||||||
cloudron.checkAddons(cloudron.appFqdn(location), owner);
|
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 () {
|
it('can uninstall app', function () {
|
||||||
cloudron.uninstallApp(appId);
|
cloudron.uninstallApp(appId);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue