"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/functional/test_dlo.py" between
swift-2.19.1.tar.gz and swift-2.21.0.tar.gz

About: OpenStack swift is software for creating redundant, scalable object storage using clusters of commodity servers to store terabytes or even petabytes of accessible data (now supporting storage policies).
The "Stein" series (latest release).

test_dlo.py  (swift-2.19.1):test_dlo.py  (swift-2.21.0)
skipping to change at line 49 skipping to change at line 49
# avoid getting a prefix that stops halfway through an encoded # avoid getting a prefix that stops halfway through an encoded
# character # character
prefix = Utils.create_name().decode("utf-8")[:10].encode("utf-8") prefix = Utils.create_name().decode("utf-8")[:10].encode("utf-8")
cls.segment_prefix = prefix cls.segment_prefix = prefix
for letter in ('a', 'b', 'c', 'd', 'e'): for letter in ('a', 'b', 'c', 'd', 'e'):
file_item = cls.container.file("%s/seg_lower%s" % (prefix, letter)) file_item = cls.container.file("%s/seg_lower%s" % (prefix, letter))
file_item.write(letter * 10) file_item.write(letter * 10)
file_item = cls.container.file("%s/seg_upper%s" % (prefix, letter)) file_item = cls.container.file(
"%s/seg_upper_%%ff%s" % (prefix, letter))
file_item.write(letter.upper() * 10) file_item.write(letter.upper() * 10)
for letter in ('f', 'g', 'h', 'i', 'j'): for letter in ('f', 'g', 'h', 'i', 'j'):
file_item = cls.container2.file("%s/seg_lower%s" % file_item = cls.container2.file("%s/seg_lower%s" %
(prefix, letter)) (prefix, letter))
file_item.write(letter * 10) file_item.write(letter * 10)
man1 = cls.container.file("man1") man1 = cls.container.file("man1")
man1.write('man1-contents', man1.write('man1-contents',
hdrs={"X-Object-Manifest": "%s/%s/seg_lower" % hdrs={"X-Object-Manifest": "%s/%s/seg_lower" %
(cls.container.name, prefix)}) (cls.container.name, prefix)})
man2 = cls.container.file("man2") man2 = cls.container.file("man2")
man2.write('man2-contents', man2.write('man2-contents',
hdrs={"X-Object-Manifest": "%s/%s/seg_upper" % hdrs={"X-Object-Manifest": "%s/%s/seg_upper_%%25ff" %
(cls.container.name, prefix)}) (cls.container.name, prefix)})
manall = cls.container.file("manall") manall = cls.container.file("manall")
manall.write('manall-contents', manall.write('manall-contents',
hdrs={"X-Object-Manifest": "%s/%s/seg" % hdrs={"X-Object-Manifest": "%s/%s/seg" %
(cls.container.name, prefix)}) (cls.container.name, prefix)})
mancont2 = cls.container.file("mancont2") mancont2 = cls.container.file("mancont2")
mancont2.write( mancont2.write(
'mancont2-contents', 'mancont2-contents',
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)