1 require 'minitest/autorun'
5 class TestBigRequest < Minitest::Test
14 def boring_manifest nblocks
16 (0..nblocks).each do |z|
17 x += ' d41d8cd98f00b204e9800998ecf8427e+0'
23 def test_create_manifest nblocks=1
24 manifest_text = boring_manifest nblocks
25 uuid = Digest::MD5.hexdigest(manifest_text) + '+' + manifest_text.size.to_s
26 c = @@arv.collection.create(collection: {
28 manifest_text: manifest_text
30 assert_equal uuid, c[:uuid]
33 def test_create_big_manifest
34 # This ensures that manifest_text is passed in the request body:
35 # it's too large to fit in the query string.
36 test_create_manifest 9999