@Test
public void testFileUploadCompleteFailure() throws Exception
{
MockS3PartUploader.setup();
MockS3PartUploader.completionFailure = true;
S3FileSystem fs = injector.getInstance(S3FileSystem.class);
String snapshotfile = "target/data/Keyspace1/Standard1/backups/201108082320/Keyspace1-Standard1-ia-1-Data.db";
S3BackupPath backupfile = injector.getInstance(S3BackupPath.class);
backupfile.parseLocal(new File(snapshotfile), BackupFileType.SNAP);
try
{
fs.upload(backupfile, backupfile.localReader());
}
catch (BackupRestoreException e)
{
// ignore
}