projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '12123-arv-ws-keyerror'
[arvados.git]
/
apps
/
workbench
/
test
/
integration_performance
/
collection_unit_test.rb
diff --git
a/apps/workbench/test/integration_performance/collection_unit_test.rb
b/apps/workbench/test/integration_performance/collection_unit_test.rb
index 991757e07104047095263baa517db585113f875b..44b9ad9e3e93d483c27cfb97aff5ad10b8b585b4 100644
(file)
--- a/
apps/workbench/test/integration_performance/collection_unit_test.rb
+++ b/
apps/workbench/test/integration_performance/collection_unit_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'
@@
-31,7
+35,7
@@
class BigCollectionTest < ActiveSupport::TestCase
bigmanifest = time_block 'build example' do
make_manifest(streams: 100,
files_per_stream: 100,
bigmanifest = time_block 'build example' do
make_manifest(streams: 100,
files_per_stream: 100,
- blocks_per_file:
3
0,
+ blocks_per_file:
2
0,
bytes_per_block: 0)
end
c = time_block "new (manifest size = #{bigmanifest.length>>20}MiB)" do
bytes_per_block: 0)
end
c = time_block "new (manifest size = #{bigmanifest.length>>20}MiB)" do
@@
-52,6
+56,11
@@
class BigCollectionTest < ActiveSupport::TestCase
assert_equal c.uuid, list.first.uuid
assert_not_nil list.first.manifest_text
end
assert_equal c.uuid, list.first.uuid
assert_not_nil list.first.manifest_text
end
+ time_block 'update(name-only)' do
+ manifest_text_length = c.manifest_text.length
+ c.update_attributes name: 'renamed during test case'
+ assert_equal c.manifest_text.length, manifest_text_length
+ end
time_block 'update' do
c.manifest_text += ". d41d8cd98f00b204e9800998ecf8427e+0 0:0:empty.txt\n"
c.save!
time_block 'update' do
c.manifest_text += ". d41d8cd98f00b204e9800998ecf8427e+0 0:0:empty.txt\n"
c.save!