From: Lucas Di Pentima Date: Tue, 9 Jul 2019 19:09:53 +0000 (-0300) Subject: 15318: Updates test to expect X-Request-Id value on error messages. X-Git-Tag: 2.0.0~264^2~3 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/31d8469fa1adfa0c3a07a23725f26b26f2291df5 15318: Updates test to expect X-Request-Id value on error messages. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/services/api/test/functional/application_controller_test.rb b/services/api/test/functional/application_controller_test.rb index b5f71acb53..4f112dbae5 100644 --- a/services/api/test/functional/application_controller_test.rb +++ b/services/api/test/functional/application_controller_test.rb @@ -24,6 +24,9 @@ class ApplicationControllerTest < ActionController::TestCase token_time = token.split('+', 2).first.to_i assert_operator(token_time, :>=, @start_stamp, "error token too old") assert_operator(token_time, :<=, now_timestamp, "error token too new") + json_response['errors'].each do |err| + assert_match(/req-[a-z0-9]{20}/, err) + end end def check_404(errmsg="Path not found")