Quellcode durchsuchen

Uncomment the tests

Johannes Zellner vor 6 Jahren
Ursprung
Commit
80df77d149
1 geänderte Dateien mit 78 neuen und 79 gelöschten Zeilen
  1. 78 79
      test/test.js

+ 78 - 79
test/test.js

@@ -201,85 +201,84 @@ describe('Application life cycle test SSO', function () {
         execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
 
-    // it('install app with SSO', function () {
-    //     execSync('cloudron install --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    // });
-
-    // it('can get app information', getAppInfo);
-    // it('can admin login', adminLogin);
-    // it('can login', login);
-    // it('can dismiss tutorial', dismissTutorial);
-    // it('can create project', createProject);
-    // 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' });
-    // });
-
-    // it('restore app', function () {
-    //     execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    // });
-
-    // it('user story is still present', userStoryExists);
-
-    // it('move to different location', function (done) {
-    //     // ensure we don't hit NXDOMAIN in the mean time
-    //     browser.get('about:blank').then(function () {
-    //         execSync('cloudron configure --wait --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    //         done();
-    //     });
-    // });
-
-    // it('can get app information', getAppInfo);
-
-    // it('can admin login', adminLogin);
-    // // origin change requires new login
-    // it('can login', login);
-    // it('user story is still present', userStoryExists);
-
-    // it('can delete project', deleteProject);
-
-    // it('uninstall app', function (done) {
-    //     // ensure we don't hit NXDOMAIN in the mean time
-    //     browser.get('about:blank').then(function () {
-    //         execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    //         done();
-    //     });
-    // });
-
-    // no sso
-    // it('install app without SSO', function () {
-    //     execSync('cloudron install --no-sso --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    // });
-    // it('can get app information', getAppInfo);
-    // it('can admin login', adminLogin);
-    // it('can sign up', signUp);
-    // it('can dismiss tutorial', dismissTutorial);
-    // it('can create project', createProject);
-    // 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('uninstall app', function (done) {
-    //     // ensure we don't hit NXDOMAIN in the mean time
-    //     browser.get('about:blank').then(function () {
-    //         execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    //         done();
-    //     });
-    // });
+    it('install app with SSO', function () {
+        execSync('cloudron install --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    });
+
+    it('can get app information', getAppInfo);
+    it('can admin login', adminLogin);
+    it('can login', login);
+    it('can dismiss tutorial', dismissTutorial);
+    it('can create project', createProject);
+    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' });
+    });
+
+    it('restore app', function () {
+        execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    });
+
+    it('user story is still present', userStoryExists);
+
+    it('move to different location', function (done) {
+        // ensure we don't hit NXDOMAIN in the mean time
+        browser.get('about:blank').then(function () {
+            execSync('cloudron configure --wait --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+            done();
+        });
+    });
+
+    it('can get app information', getAppInfo);
+
+    it('can admin login', adminLogin);
+    // origin change requires new login
+    it('can login', login);
+    it('user story is still present', userStoryExists);
+
+    it('can delete project', deleteProject);
+
+    it('uninstall app', function (done) {
+        // ensure we don't hit NXDOMAIN in the mean time
+        browser.get('about:blank').then(function () {
+            execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+            done();
+        });
+    });
+
+    it('install app without SSO', function () {
+        execSync('cloudron install --no-sso --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    });
+    it('can get app information', getAppInfo);
+    it('can admin login', adminLogin);
+    it('can sign up', signUp);
+    it('can dismiss tutorial', dismissTutorial);
+    it('can create project', createProject);
+    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('uninstall app', function (done) {
+        // ensure we don't hit NXDOMAIN in the mean time
+        browser.get('about:blank').then(function () {
+            execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+            done();
+        });
+    });
 
     // test update
     it('can install app', function () {