Fix platform update logic

This commit is contained in:
Girish Ramakrishnan
2019-09-24 20:29:01 -07:00
parent 00fd9e5b7f
commit 85c13cae58
9 changed files with 80 additions and 50 deletions
+10 -4
View File
@@ -118,7 +118,9 @@ describe('Apps', function () {
env: {
'CUSTOM_KEY': 'CUSTOM_VALUE'
},
dataDir: ''
dataDir: '',
installationState: 'installed',
runState: 'running'
};
var APP_1 = {
@@ -135,7 +137,9 @@ describe('Apps', function () {
accessRestriction: { users: [ 'someuser' ], groups: [ GROUP_0.id ] },
memoryLimit: 0,
env: {},
dataDir: ''
dataDir: '',
installationState: 'installed',
runState: 'running'
};
var APP_2 = {
@@ -154,7 +158,9 @@ describe('Apps', function () {
robotsTxt: null,
sso: false,
env: {},
dataDir: ''
dataDir: '',
installationState: 'installed',
runState: 'running'
};
before(function (done) {
@@ -396,7 +402,7 @@ describe('Apps', function () {
], done);
});
it('can mark apps for reconfigure', function (done) {
it('can mark apps for restore', function (done) {
apps.restoreInstalledApps(function (error) {
expect(error).to.be(null);
+1 -1
View File
@@ -83,7 +83,7 @@ var APP = {
id: 'appid',
appStoreId: 'appStoreId',
installationState: apps.ISTATE_PENDING_INSTALL,
runState: null,
runState: 'running',
location: 'applocation',
domain: DOMAIN_0.domain,
fqdn: DOMAIN_0.domain + '.' + 'applocation',
+3 -3
View File
@@ -218,7 +218,7 @@ describe('updatechecker - app - manual (email)', function () {
appStoreId: 'io.cloudron.app',
installationState: apps.ISTATE_PENDING_INSTALL,
error: null,
runState: null,
runState: 'running',
location: 'some-location-0',
domain: DOMAIN_0.domain,
manifest: {
@@ -325,7 +325,7 @@ describe('updatechecker - app - automatic (no email)', function () {
appStoreId: 'io.cloudron.app',
installationState: apps.ISTATE_PENDING_INSTALL,
error: null,
runState: null,
runState: 'running',
location: 'some-location-0',
domain: DOMAIN_0.domain,
manifest: {
@@ -388,7 +388,7 @@ describe('updatechecker - app - automatic free (email)', function () {
appStoreId: 'io.cloudron.app',
installationState: apps.ISTATE_PENDING_INSTALL,
error: null,
runState: null,
runState: 'running',
location: 'some-location-0',
domain: DOMAIN_0.domain,
manifest: {