QA:Testcase Swift Upload Download Files

From FedoraProject

Jump to: navigation, search



Test Swift file upload and download


Set up your environment to use you openstack credentials

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

Create a sample data file

$> dd if=/dev/urandom bs=1024 count=10k 

How to test

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

$> swift upload c1
$> swift list
$> swift list c1
$> mkdir swift_test_1 ; cd swift_test_1
$> swift download c1

Expected Results

Verify a copy of the uploaded file was placed on 3 of the swift storage devices

$> sudo find /srv/node/ -type f -name "*data"

Verify original and download file are identicle

$> cd -
$> md5sum swift_test_1/