From Fedora Project Wiki

(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 ...")
 
No edit summary
Line 23: Line 23:


Verify original and download file are identical
Verify original and download file are identical
  $> cd
  $> cd -
  $> md5sum test.data swift_test_2/test.data
  $> md5sum test.data swift_test_2/test.data


}}
}}

Revision as of 15:04, 18 September 2012

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