[ARVADOS] updated: 08b59c7e5670b139346b0412c8a8bb9f3d3bf9ee
Git user
git at public.curoverse.com
Wed Jul 26 16:36:01 EDT 2017
Summary of changes:
apps/workbench/test/integration/jobs_test.rb | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
via 08b59c7e5670b139346b0412c8a8bb9f3d3bf9ee (commit)
from 2918ed81152a1fe8607f433e36dceddc1cb78f74 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 08b59c7e5670b139346b0412c8a8bb9f3d3bf9ee
Author: Lucas Di Pentima <lucas at curoverse.com>
Date: Wed Jul 26 17:34:58 2017 -0300
11167: Re-added jobs integration test, adjusted to work with keep-web.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at curoverse.com>
diff --git a/apps/workbench/test/integration/jobs_test.rb b/apps/workbench/test/integration/jobs_test.rb
index f427537..8e49aaf 100644
--- a/apps/workbench/test/integration/jobs_test.rb
+++ b/apps/workbench/test/integration/jobs_test.rb
@@ -39,6 +39,30 @@ class JobsTest < ActionDispatch::IntegrationTest
assert_selector 'a[href="/"]', text: 'Go to dashboard'
end
+ test 'view partial job log' do
+ use_keep_web_config
+
+ # This config will be restored during teardown by ../test_helper.rb:
+ Rails.configuration.log_viewer_max_bytes = 100
+
+ token = api_fixture('api_client_authorizations')['active']['api_token']
+ logdata = fakepipe_with_log_data.read
+ logblock = `echo -n #{logdata.shellescape} | ARVADOS_API_TOKEN=#{token.shellescape} arv-put --no-progress --raw -`.strip
+ assert $?.success?, $?
+
+ job = nil
+ use_token 'active' do
+ job = Job.find api_fixture('jobs')['running']['uuid']
+ mtxt = ". #{logblock} 0:#{logdata.length}:#{job.uuid}.log.txt\n"
+ logcollection = Collection.create(manifest_text: mtxt)
+ job.update_attributes log: logcollection.portable_data_hash
+ end
+ visit page_with_token 'active', '/jobs/'+job.uuid
+ find('a[href="#Log"]').click
+ wait_for_ajax
+ assert_text 'Showing only 100 bytes of this log'
+ end
+
test 'view log via keep-web redirect' do
use_keep_web_config
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list