Prechádzať zdrojové kódy

test restart as well

Girish Ramakrishnan 6 rokov pred
rodič
commit
936fc70c6f
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 7 0
      test/test.js

+ 7 - 0
test/test.js

@@ -190,6 +190,13 @@ describe('Application life cycle test SSO', function () {
     it('can create user story', createUserStory);
     it('user story exists', userStoryExists);
 
+    it('can restart app', function (done) {
+        execSync('cloudron restart --wait --app ' + app.id);
+        done();
+    });
+
+    it('user story is still present', userStoryExists);
+
     it('backup app', function () {
         execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });