mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
test deletes
This commit is contained in:
parent
0d095f72e4
commit
70008b093e
|
@ -61,9 +61,8 @@ public class PutObject {
|
||||||
request.setMetadata(metadata);
|
request.setMetadata(metadata);
|
||||||
s3Client.putObject(request);
|
s3Client.putObject(request);
|
||||||
|
|
||||||
|
// test reads
|
||||||
S3Object written = s3Client.getObject(bucketName, stringObjKeyName);
|
S3Object written = s3Client.getObject(bucketName, stringObjKeyName);
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String expected = IOUtils.toString(written.getObjectContent());
|
String expected = IOUtils.toString(written.getObjectContent());
|
||||||
|
|
||||||
|
@ -77,6 +76,9 @@ public class PutObject {
|
||||||
IOUtils.closeQuietly(written, log);
|
IOUtils.closeQuietly(written, log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// test deletes
|
||||||
|
s3Client.deleteObject(bucketName, stringObjKeyName);
|
||||||
|
|
||||||
} catch (AmazonServiceException e) {
|
} catch (AmazonServiceException e) {
|
||||||
// The call was transmitted successfully, but Amazon S3 couldn't process
|
// The call was transmitted successfully, but Amazon S3 couldn't process
|
||||||
// it, so it returned an error response.
|
// it, so it returned an error response.
|
||||||
|
|
Loading…
Reference in a new issue