From 8b7eeafcd78adba0ee9916f52de6178aa3935bae Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 5 May 2016 16:15:27 -0700 Subject: [PATCH] check export port in many places --- test/app-flow-test.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/app-flow-test.js b/test/app-flow-test.js index 64d2509..f3a8e3b 100644 --- a/test/app-flow-test.js +++ b/test/app-flow-test.js @@ -67,7 +67,7 @@ describe('Application flow test', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); - it('can access exposed port', function (done) { + function checkExposedPort(done) { var client = new net.Socket(); var data = [ ]; client.connect(5151, cloudron.appFqdn(location), function() { @@ -81,6 +81,10 @@ describe('Application flow test', function () { done(new Error('bad response')); }); client.on('error', done); + } + + it('can access exposed port', function (done) { + checkExposedPort(done); }); it('displays app graphs', function () { @@ -96,6 +100,10 @@ describe('Application flow test', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); + it('can access exposed port', function (done) { + checkExposedPort(done); + }); + it('can reboot the cloudron', function () { cloudron.reboot(); }); @@ -104,6 +112,10 @@ describe('Application flow test', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); + it('can access exposed port', function (done) { + checkExposedPort(done); + }); + it('can uninstall app', function () { cloudron.uninstallApp(appId); });