1 # -*- encoding: binary -*-
3 require 'mogilefs/bigfile'
5 class TestMogileFS__Bigfile < TestMogileFS
6 include MogileFS::Bigfile
9 @klass = MogileFS::MogileFS
14 expect = {:type=>"file",
15 :des=>"no description",
19 {:md5=>"d3b4d15c294b24d9f853e26095dfe3d0",
21 ["http://foo1:7500/dev2/0/000/144/0000144411.fid",
22 "http://foo2:7500/dev1/0/000/144/0000144411.fid"],
24 {:md5=>"d3b4d15c294b24d9f853e26095dfe3d0",
26 ["http://foo4:7500/dev2/0/000/144/0000144411.fid",
27 "http://foo3:7500/dev1/0/000/144/0000144411.fid"],
41 part 1 bytes=12 md5=d3b4d15c294b24d9f853e26095dfe3d0 paths: http://foo1:7500/dev2/0/000/144/0000144411.fid, http://foo2:7500/dev1/0/000/144/0000144411.fid
42 part 2 bytes=6 md5=d3b4d15c294b24d9f853e26095dfe3d0 paths: http://foo4:7500/dev2/0/000/144/0000144411.fid, http://foo3:7500/dev1/0/000/144/0000144411.fid
44 i = bigfile_parse_info(s)
45 assert_equal expect, i