Commit 33748bcd authored by Ryan Herbert's avatar Ryan Herbert

include demo files for upload functional tests

parent d295c176
Pipeline #33640 failed with stages
in 3 minutes and 40 seconds
......@@ -245,6 +245,7 @@ test_server_functional:
- docker build --no-cache --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=TEST -t "vidjil/server:test" docker/vidjil-server
- docker build --no-cache --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=TEST -t "vidjil/client:test" docker/vidjil-client
- cd docker && docker-compose up -d && cd ..
- docker exec docker_nginx_1 sed -i "s/^\(FILE_SOURCE .*\)/FILE_SOURCE = '\/usr\/share\/vidjil\/demo'/" /usr/share/vidjil/server/web2py/applications/vidjil/modules/defs.py
- docker exec docker_nginx_1 make -C /usr/share/vidjil browser
- docker exec docker_uwsgi_1 python /usr/share/vidjil/server/web2py/web2py.py -S vidjil -M -R /usr/share/vidjil/server/web2py/applications/vidjil/tests/functional/init_test_db.py
- source /etc/profile.d/rvm.sh
......
......@@ -70,7 +70,7 @@ SCHEDULER_HEARTBEAT = 5
# Directory to search for files
FILE_SOURCE = '/mnt/data/src'
FILE_TYPES = ['fasta', 'fastq', 'fastq.gz']
FILE_TYPES = ['fasta', 'fastq', 'fastq.gz', 'fa']
SET_TYPE_PATIENT = 'patient'
SET_TYPE_RUN= 'run'
......
......@@ -54,7 +54,7 @@ class TestSampleSet < BrowserTest
for i in 0..num_additional_files
$b.div(:id => "jstree_field_%d" % i).span(:text => "browse").click
assert(jstree.visible?)
jstree_file = jstree.a(:id => "//Demo-X5.fasta_anchor")
jstree_file = jstree.a(:id => "//Demo-X5.fa_anchor")
unless jstree_file.present? and jstree_file.present?
jstree.a(:id => "/_anchor").double_click
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment