From a39605f9d7a0832a89fb823e8231a34cdc07e921 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Fri, 8 Sep 2017 23:18:20 +0200 Subject: [PATCH 1/2] Stabilize integration tests by increasing timeouts --- test/features/step_definitions/hooks.ts | 4 ++++ test/features/step_definitions/redirection.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/features/step_definitions/hooks.ts b/test/features/step_definitions/hooks.ts index 708bd3aef..7f844ad37 100644 --- a/test/features/step_definitions/hooks.ts +++ b/test/features/step_definitions/hooks.ts @@ -3,6 +3,10 @@ import fs = require("fs"); import BluebirdPromise = require("bluebird"); import ChildProcess = require("child_process"); +Cucumber.defineSupportCode(function({ setDefaultTimeout }) { + setDefaultTimeout(20 * 1000); +}); + Cucumber.defineSupportCode(function({ After, Before }) { const exec = BluebirdPromise.promisify(ChildProcess.exec); diff --git a/test/features/step_definitions/redirection.ts b/test/features/step_definitions/redirection.ts index 240fa3184..8b29ee726 100644 --- a/test/features/step_definitions/redirection.ts +++ b/test/features/step_definitions/redirection.ts @@ -12,6 +12,6 @@ Cucumber.defineSupportCode(function ({ Given, When, Then }) { }); Then("I'm redirected to {stringInDoubleQuotes}", function (link: string) { - return this.driver.wait(seleniumWebdriver.until.urlContains(link), 5000); + return this.driver.wait(seleniumWebdriver.until.urlContains(link), 15000); }); }); \ No newline at end of file From f4926ac1384cbacba0740e994766b1e6deaf9876 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Fri, 8 Sep 2017 23:06:25 +0200 Subject: [PATCH 2/2] Fix npm package missing dist directory --- .npmignore | 17 +++++++++++++++++ .travis.yml | 1 + package.json | 2 +- scripts/npm-deployment-test.sh | 2 ++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index e69de29bb..f0a6765d2 100644 --- a/.npmignore +++ b/.npmignore @@ -0,0 +1,17 @@ +src/ +test/ +doc/ +scripts/ +images/ +example/ +dist/test/ + +.travis.yml +config.test.yml +Dockerfile +docker-compose.* +Gruntfile.js +tslint.json +tsconfig.json + +*.tgz diff --git a/.travis.yml b/.travis.yml index 2ec3f9f54..d69b39f46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,7 @@ after_success: deploy: provider: npm email: clement.michaud34@gmail.com + skip_cleanup: true api_key: secure: Hj09zw6uHWWRm9WtVSluy1XdISQGQWC3QElT03EuOfn6Mw/4A4Lj5pkvas+cb5y4aGdhQwaldYtKMMQKQ2ASCHcwHF780fkr+bmUjQr3BwrnJn/HsWrg1Q3jcRfY2GmI+hrDlP0/G534132EKxwDGusNSd6atDsQkkCfWDLuRZxkIqYazpanRBUI2jro65f4xX0X1mRgsBEp0gx+m0rFx/yuCkjoDoSlseEJ/NuyaR5N+JervKdrE6K3TrzJ1trnI5L00dwtgiYqlqyXaV8NMR2AOTr/vQlnnjZvkdTZGcKAFMWv3vjTecfp/Z3RW4saRR4CIJKC4JozE70+WMLqmo11br9q58zSrmKjOfkhf6FXaNHIJc/eQr3+PFzhW9DCVcNfcBh5wTVgTlLEp9845FaBdzjH40K0J4OrSnBhWDW14S7fXurTJafR6Ycxhi17vN2oEsT8XcTg2kcrnplMtt5Ylnkb4kYeVIk9cpeTvYtFjlzWPsxZhtURReY+Inbtt8nYThicqjBHHuDpBmyb0aafTYF5qQLx343KBfwFrDHPZXbglZ8Q97OAS9G0LzxkmYf+pIgW7inGsuB4CW6TPNCTZmVo6O2Ov9S4J/aXRfQSbmZa7e3gHP9pbMPhfw4P0ecpbCzRJzXrQXZcet6oIHMCqLB4qOB8KR4/IHplbaE= on: diff --git a/package.json b/package.json index 60d720981..1737738d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "authelia", - "version": "3.2.0", + "version": "3.3.18", "description": "2FA Single Sign-On server for nginx using LDAP, TOTP and U2F", "main": "dist/src/server/index.js", "bin": { diff --git a/scripts/npm-deployment-test.sh b/scripts/npm-deployment-test.sh index c29503032..1776833c8 100755 --- a/scripts/npm-deployment-test.sh +++ b/scripts/npm-deployment-test.sh @@ -10,6 +10,8 @@ npm pack AUTHELIA_PACKAGE=`ls | grep "authelia-\([0-9]\+.\)\{2\}[0-9]\+.tgz"` echo "--- Authelia package is ${AUTHELIA_PACKAGE}" +tar -tzvf ${AUTHELIA_PACKAGE} + echo "--- Copy package into "${NPM_UNPACK_DIR}" to test unpacking" mkdir -p ${NPM_UNPACK_DIR} cp ${AUTHELIA_PACKAGE} ${NPM_UNPACK_DIR}