File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
service/src/test/java/uk/nhs/adaptors/gp2gp/common/storage Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 33import io .findify .s3mock .S3Mock ;
44import org .junit .jupiter .api .BeforeAll ;
55import org .junit .jupiter .api .Test ;
6+ import software .amazon .awssdk .auth .credentials .AwsBasicCredentials ;
7+ import software .amazon .awssdk .auth .credentials .StaticCredentialsProvider ;
68import software .amazon .awssdk .core .ResponseInputStream ;
79import software .amazon .awssdk .core .sync .RequestBody ;
810import software .amazon .awssdk .regions .Region ;
@@ -45,6 +47,8 @@ static void setUp() {
4547
4648 s3Client = S3Client .builder ()
4749 .endpointOverride (URI .create ("http://localhost:" + PORT ))
50+ .credentialsProvider (StaticCredentialsProvider .create (
51+ AwsBasicCredentials .create ("accessKey" , "secretKey" )))
4852 .serviceConfiguration (S3Configuration .builder ().pathStyleAccessEnabled (true ).build ())
4953 .region (Region .EU_WEST_2 )
5054 .build ();
You can’t perform that action at this time.
0 commit comments