X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bb3ec0fefd17c68d9c0123dcfcc5e4ef616fb25e..61ad64acbca1b8cc990ecf0e9ca2c54ad9eb8fe6:/services/api/test/functional/arvados/v1/logs_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/logs_controller_test.rb b/services/api/test/functional/arvados/v1/logs_controller_test.rb index f3826ca8c7..49fda474d8 100644 --- a/services/api/test/functional/arvados/v1/logs_controller_test.rb +++ b/services/api/test/functional/arvados/v1/logs_controller_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class Arvados::V1::LogsControllerTest < ActionController::TestCase @@ -29,7 +33,7 @@ class Arvados::V1::LogsControllerTest < ActionController::TestCase assert_response :success found = assigns(:objects) assert_not_equal 0, found.count - assert_equal found.count, (found.select { |f| f.object_uuid.match /[a-z0-9]{5}-tpzed-[a-z0-9]{15}/}).count + assert_equal found.count, (found.select { |f| f.object_uuid.match User.uuid_regex }).count l = JSON.parse(@response.body) assert_equal 'arvados#user', l['items'][0]['object_kind'] end @@ -42,7 +46,7 @@ class Arvados::V1::LogsControllerTest < ActionController::TestCase assert_response :success found = assigns(:objects) assert_not_equal 0, found.count - assert_equal found.count, (found.select { |f| f.object_uuid.match /[a-z0-9]{5}-tpzed-[a-z0-9]{15}/}).count + assert_equal found.count, (found.select { |f| f.object_uuid.match User.uuid_regex }).count end end