From Fedora Project Wiki

Revision as of 13:22, 17 September 2012 by Derekh (talk | contribs) (Created page with "{{QA/Test_Case |description= Swift allowes files to be split into multiple parts while being uploaded. Using this clients can upload files that exceed the swift maximim file ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Swift allowes files to be split into multiple parts while being uploaded. Using this clients can upload files that exceed the swift maximim file size limit. Also multiple parts will be uploaded in parralell

Setup

Set up your environment to use you openstack credentials

$> cd
$> . /path/to/keystonerc

Create a sample data file

$> dd if=/dev/urandom of=test.data bs=1024 count=10k 

How to test

Use the swift client to upload, download and list the file

$> swift upload c2 test.data -S 4194304
$> swift list
$> swift list c2
$> mkdir swift_test_2 ; cd swift_test_2
$> swift download c2 test.data

Expected Results

Verify file has been uploaded in segemnts

$> swift list c2_segments

Verify original and download file are identical

$> cd
$> md5sum test.data swift_test_2/test.data