Skip to content

Commit

Permalink
Merge pull request #572 from jglick/testAmpersand
Browse files Browse the repository at this point in the history
Fixing `JCloudsVirtualFileTest.testAmpersand` for SSO
  • Loading branch information
jglick authored Dec 3, 2024
2 parents 29efad1 + 4b77dab commit 8a06a03
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
import org.jvnet.hudson.test.LoggerRule;

import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.amazonaws.services.s3.model.ListObjectsV2Result;
import com.amazonaws.services.s3.model.S3ObjectSummary;
import java.net.ProtocolException;
Expand Down Expand Up @@ -287,7 +286,7 @@ public void testAmpersand() throws Exception {
try {
putBlob(blobStore.blobBuilder(key).payload("test").build());

final AmazonS3 s3 = AmazonS3ClientBuilder.defaultClient();
final AmazonS3 s3 = S3BlobStoreConfig.clientBuilder.get().build();
ListObjectsV2Result result = s3.listObjectsV2(getContainer(), key);
List<S3ObjectSummary> objects = result.getObjectSummaries();
assertThat(objects, not(empty()));
Expand Down

0 comments on commit 8a06a03

Please sign in to comment.