Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 10, 2023
1 parent 264b852 commit 55e72a7
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public void testBasicUsage() throws Exception {

AmazonS3 s3client = getS3client(container);

assertThat(s3client.doesBucketExistV2("test-bucket")).isTrue();
assertThat(s3client.doesBucketExistV2("demo")).isTrue();

URL file = this.getClass().getResource("/object_to_upload.txt");
assertThat(file).isNotNull();
s3client.putObject("test-bucket", "my-objectname", file.getFile());
s3client.putObject("demo", "my-objectname", file.getFile());

List<S3ObjectSummary> objets = s3client.listObjectsV2("test-bucket").getObjectSummaries();
List<S3ObjectSummary> objets = s3client.listObjectsV2("demo").getObjectSummaries();
assertThat(objets.size()).isEqualTo(1);
assertThat(objets.get(0).getKey()).isEqualTo("my-objectname");
}
Expand Down Expand Up @@ -105,7 +105,6 @@ public void testSpecificDaemonImage() throws URISyntaxException {
}

// configuringClient {

private static AmazonS3 getS3client(CephContainer container) throws URISyntaxException {
AWSCredentials credentials = new BasicAWSCredentials(
container.getCephAccessKey(),
Expand Down

0 comments on commit 55e72a7

Please sign in to comment.