From Fedora Project Wiki
(Created page with " {{QA/Test_Case |description=Test Swift file upload and download |setup= Set up your environment to use you openstack credentials $> cd $> . /path/to/keystonerc Create a sam...") |
No edit summary |
||
Line 23: | Line 23: | ||
Verify original and download file are identicle | Verify original and download file are identicle | ||
$> cd | $> cd - | ||
$> md5sum test.data swift_test_1/test.data | $> md5sum test.data swift_test_1/test.data | ||
Revision as of 15:02, 18 September 2012
Description
Test Swift file upload and download
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 c1 test.data $> swift list $> swift list c1 $> mkdir swift_test_1 ; cd swift_test_1 $> swift download c1 test.data
Expected Results
Verify a copy of the uploaded file was placed on 3 of the swift storage devices
$> find /srv/node/ -type f -name "*data"
Verify original and download file are identicle
$> cd - $> md5sum test.data swift_test_1/test.data