1
0
mirror of https://git.cloudron.io/cloudron/freshrss-app synced 2025-09-15 17:39:13 +00:00

Fix tests

This commit is contained in:
Girish Ramakrishnan
2020-07-16 16:02:38 -07:00
parent afb0ff35fc
commit 1c76ea9711
3 changed files with 277 additions and 188 deletions

View File

@@ -210,7 +210,11 @@ describe('Application life cycle test', function () {
});
it('restore app', function () {
execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
const backups = JSON.parse(execSync('cloudron backup list --raw'));
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
execSync('cloudron install --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
getAppInfo();
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
});
it('can login', login.bind(null, password));