Stop the app only after the backup completed

App backup can take a long time or possibly not work at all. For such
cases, do not stop the app or leave it in some errored state.

newConfigJson is the new config to be updated to. This ensures that
the db has correct app info during the update.
This commit is contained in:
Girish Ramakrishnan
2017-10-12 17:46:15 -07:00
parent 61e2878b08
commit ed0879ffcd
6 changed files with 74 additions and 60 deletions

View File

@@ -181,7 +181,7 @@ describe('apptask', function () {
var badApp = _.extend({ }, APP);
badApp.manifest = { };
apptask._verifyManifest(badApp, function (error) {
apptask._verifyManifest(badApp.manifest, function (error) {
expect(error).to.be.ok();
done();
});
@@ -192,7 +192,7 @@ describe('apptask', function () {
badApp.manifest = _.extend({ }, APP.manifest);
delete badApp.manifest.id;
apptask._verifyManifest(badApp, function (error) {
apptask._verifyManifest(badApp.manifest, function (error) {
expect(error).to.be.ok();
done();
});
@@ -203,7 +203,7 @@ describe('apptask', function () {
badApp.manifest = _.extend({ }, APP.manifest);
badApp.manifest.maxBoxVersion = '0.0.0'; // max box version is too small
apptask._verifyManifest(badApp, function (error) {
apptask._verifyManifest(badApp.manifest, function (error) {
expect(error).to.be.ok();
done();
});
@@ -212,7 +212,7 @@ describe('apptask', function () {
it('verifies manifest', function (done) {
var goodApp = _.extend({ }, APP);
apptask._verifyManifest(goodApp, function (error) {
apptask._verifyManifest(goodApp.manifest, function (error) {
expect(error).to.be(null);
done();
});