# HG changeset patch # User Chris Cannam # Date 1504110277 -3600 # Node ID 90bed4e10cc8e809ac15b8ad4600441ffe5ab9bd # Parent 2496b955f638073992adf042558deb38b1afc93d Download file link diff -r 2496b955f638 -r 90bed4e10cc8 deploy/provision.d/115-other-dirs.sh --- a/deploy/provision.d/115-other-dirs.sh Wed Aug 30 15:51:18 2017 +0100 +++ b/deploy/provision.d/115-other-dirs.sh Wed Aug 30 17:24:37 2017 +0100 @@ -13,6 +13,7 @@ for dir in \ /var/files/backups \ /var/doc \ + /var/files/code \ /var/files/git-mirror ; do if [ ! -d "$dir" ]; then mkdir -p "$dir" @@ -29,3 +30,7 @@ chmod g+s "$dir" fi done + +if [ ! -e /var/www/code/files ]; then + ln -s /var/files/code /var/www/code/files +fi diff -r 2496b955f638 -r 90bed4e10cc8 deploy/test/smoketest.sh --- a/deploy/test/smoketest.sh Wed Aug 30 15:51:18 2017 +0100 +++ b/deploy/test/smoketest.sh Wed Aug 30 17:24:37 2017 +0100 @@ -33,6 +33,9 @@ # A project known not to exist nonexistent_project=nonexistent-project +# A file for download known to exist +file_for_download=/attachments/download/2210/vamp-plugin-sdk-2.7.1-binaries-osx.tar.gz + tried=0 succeeded=0 @@ -80,6 +83,7 @@ assert "/hg/$project_with_repo" "Mercurial repo" assert "/projects/$project_with_docs/embedded" "Project documentation page (from docgen cron script)" assert "/git/$project_with_repo/info/refs" "Git repo mirror" +assert "$file_for_download" "File for download" # we expect this to return an http auth requirement, not a 404 - the # value 6 is wget's return code for auth failure