File tree 1 file changed +27
-0
lines changed
aws-sdk-v2/src/test/groovy/io/micronaut/aws/sdk/v2/service
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ package io.micronaut.aws.sdk.v2.service
2
+
3
+ import io.micronaut.aws.sdk.v2.service.s3.S3ConfigurationProperties
4
+ import io.micronaut.context.ApplicationContext
5
+ import spock.lang.Issue
6
+ import spock.lang.Specification
7
+
8
+ @Issue (" https://github.com/micronaut-projects/micronaut-aws/issues/1880" )
9
+ class S3ConfigurationSpec extends Specification {
10
+
11
+ void " path-style-access-enabled can be configured to be #enabled" () {
12
+ when :
13
+ ApplicationContext ctx = ApplicationContext . run(
14
+ ' aws.s3.path-style-access-enabled' : enabled
15
+ )
16
+ S3ConfigurationProperties config = ctx. getBean(S3ConfigurationProperties )
17
+
18
+ then :
19
+ config. builder. pathStyleAccessEnabled() == enabled
20
+
21
+ cleanup :
22
+ ctx. close()
23
+
24
+ where :
25
+ enabled << [true , false ]
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments