projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '18003-support-exists-contains-in-filter-groups'
[arvados.git]
/
services
/
api
/
test
/
performance
/
permission_test.rb
diff --git
a/services/api/test/performance/permission_test.rb
b/services/api/test/performance/permission_test.rb
index e5c829787439f7b934f66e1ab2f85868b3458359..e5d62cf4cf147eaad10cf6ffe913a037f7c6adac 100644
(file)
--- a/
services/api/test/performance/permission_test.rb
+++ b/
services/api/test/performance/permission_test.rb
@@
-24,7
+24,7
@@
class PermissionPerfTest < ActionDispatch::IntegrationTest
act_as_system_user do
puts("Time spent creating records:", Benchmark.measure do
ActiveRecord::Base.transaction do
act_as_system_user do
puts("Time spent creating records:", Benchmark.measure do
ActiveRecord::Base.transaction do
- root = Group.create!(owner_uuid: users(:permission_perftest).uuid)
+ root = Group.create!(owner_uuid: users(:permission_perftest).uuid
, group_class: "project"
)
n += 1
a = create_eight root.uuid
n += 8
n += 1
a = create_eight root.uuid
n += 8
@@
-40,15
+40,15
@@
class PermissionPerfTest < ActionDispatch::IntegrationTest
end
end
end
end
end
end
+ refresh_permissions
end
end)
end
puts "created #{n}"
puts "Time spent getting group index:"
end
end)
end
puts "created #{n}"
puts "Time spent getting group index:"
- (0..
4
).each do
+ (0..
1
).each do
puts(Benchmark.measure do
puts(Benchmark.measure do
- get '/arvados/v1/groups', params: {format: :json, limit: 1000}, headers: auth(:permission_perftest)
- byebug
+ get '/arvados/v1/groups', params: {format: :json}, headers: auth(:permission_perftest)
assert json_response['items_available'] >= n
end)
end
assert json_response['items_available'] >= n
end)
end