QA:Testcase Swift Upload Large File

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
m (spelling fix)
 
Line 19: Line 19:
  
 
|results=
 
|results=
Verify file has been uploaded in segemnts
+
Verify file has been uploaded in segments
 
  $> swift list c2_segments
 
  $> swift list c2_segments
  

Latest revision as of 19:10, 25 September 2012

Contents

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 segments

$> swift list c2_segments

Verify original and download file are identical

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