projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
13773: Expand test to prove that non-error runtime_status doesn't avoid reuse.
[arvados.git]
/
services
/
api
/
test
/
unit
/
collection_performance_test.rb
diff --git
a/services/api/test/unit/collection_performance_test.rb
b/services/api/test/unit/collection_performance_test.rb
index d3e755d382a59c91b7135c2dd9ce3dca3365e1b2..475202058e8987d06ad091f888087cfcbfa133d1 100644
(file)
--- a/
services/api/test/unit/collection_performance_test.rb
+++ b/
services/api/test/unit/collection_performance_test.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
require 'helpers/manifest_examples'
require 'helpers/time_block'
require 'test_helper'
require 'helpers/manifest_examples'
require 'helpers/time_block'
@@
-16,12
+20,12
@@
class CollectionModelPerformanceTest < ActiveSupport::TestCase
Thread.current[:api_client_authorization] = nil
end
Thread.current[:api_client_authorization] = nil
end
- # "create read render update delete", not a typo
- test "crrud cycle for a collection with a big manifest)" do
+ # "cr
rud" == "cr
eate read render update delete", not a typo
+
slow_
test "crrud cycle for a collection with a big manifest)" do
bigmanifest = time_block 'make example' do
make_manifest(streams: 100,
files_per_stream: 100,
bigmanifest = time_block 'make example' do
make_manifest(streams: 100,
files_per_stream: 100,
- blocks_per_file:
1
0,
+ blocks_per_file:
2
0,
bytes_per_block: 2**26,
api_token: api_token(:active))
end
bytes_per_block: 2**26,
api_token: api_token(:active))
end
@@
-33,6
+37,7
@@
class CollectionModelPerformanceTest < ActiveSupport::TestCase
c.check_signatures
end
time_block 'check signatures + save' do
c.check_signatures
end
time_block 'check signatures + save' do
+ c.instance_eval do @signatures_checked = false end
c.save!
end
c = time_block 'read' do
c.save!
end
c = time_block 'read' do
@@
-42,7
+47,7
@@
class CollectionModelPerformanceTest < ActiveSupport::TestCase
c.signed_manifest_text
end
time_block 'sign + render' do
c.signed_manifest_text
end
time_block 'sign + render' do
-
resp =
c.as_api_response(nil)
+ c.as_api_response(nil)
end
loc = Blob.sign_locator(Digest::MD5.hexdigest('foo') + '+3',
api_token: api_token(:active))
end
loc = Blob.sign_locator(Digest::MD5.hexdigest('foo') + '+3',
api_token: api_token(:active))