Fix platform update logic
This commit is contained in:
+10
-4
@@ -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);
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user