Skip to content

Commit

Permalink
spotless version downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
martind260 committed Feb 27, 2024
1 parent 302e63f commit dab1d6f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 20 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<!-- Code Formatting -->
<checkstyle.version>9.3</checkstyle.version>
<maven-spotless-plugin.version>2.43.0</maven-spotless-plugin.version>
<maven-spotless-plugin.version>2.28.0</maven-spotless-plugin.version>
<maven-checkstyle-plugin.version>3.3.1</maven-checkstyle-plugin.version>
<itm-java-codeformat.version>1.0.9</itm-java-codeformat.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public void configure() throws Exception {
.bindingMode(RestBindingMode.auto)
.clientRequestValidation(false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ private S3BucketCredentialConfig.BucketCredentialConfig verifyCredentials(String
Map<String, S3BucketCredentialConfig.BucketCredentialConfig> map = properties.getBucketCredentialConfig();
S3BucketCredentialConfig.BucketCredentialConfig envVars = map.get(bucketName);
if (envVars == null) {
exchange.getMessage().setBody(ErrorResponseBuilder.build(HttpStatus.INTERNAL_SERVER_ERROR.value(), "Configuration for bucket not found: " + bucketName));
exchange.getMessage()
.setBody(ErrorResponseBuilder.build(HttpStatus.INTERNAL_SERVER_ERROR.value(), "Configuration for bucket not found: " + bucketName));
throw new MobidamException("Configuration for bucket not found: " + bucketName);
}
return envVars;
Expand Down
10 changes: 6 additions & 4 deletions src/test/java/de/muenchen/mobidam/s3/S3BucketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@
"camel.springboot.java-routes-include-pattern=**/S3RouteBuilder,**/ExceptionRouteBuilder,"
}
)
@TestPropertySource(properties = {
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
})
@TestPropertySource(
properties = {
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
}
)
@EnableAutoConfiguration
@DirtiesContext
class S3BucketTest {
Expand Down
12 changes: 7 additions & 5 deletions src/test/java/de/muenchen/mobidam/s3/S3FileLimitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@
classes = { Application.class }, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT,
properties = { "camel.springboot.java-routes-include-pattern=**/S3RouteBuilder,**/ExceptionRouteBuilder," }
)
@TestPropertySource(properties = {
"mobidam.limit.search.items=1",
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
})
@TestPropertySource(
properties = {
"mobidam.limit.search.items=1",
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
}
)
@EnableAutoConfiguration
@DirtiesContext
class S3FileLimitTest {
Expand Down
10 changes: 6 additions & 4 deletions src/test/java/de/muenchen/mobidam/s3/S3ObjectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
classes = { Application.class }, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT,
properties = { "camel.springboot.java-routes-include-pattern=**/S3RouteBuilder,**/ExceptionRouteBuilder," }
)
@TestPropertySource(properties = {
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
})
@TestPropertySource(
properties = {
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
}
)
@EnableAutoConfiguration
@DirtiesContext
class S3ObjectTest {
Expand Down
10 changes: 6 additions & 4 deletions src/test/java/de/muenchen/mobidam/s3/S3PrefixTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
classes = { Application.class }, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT,
properties = { "camel.springboot.java-routes-include-pattern=**/S3RouteBuilder,**/ExceptionRouteBuilder," }
)
@TestPropertySource(properties = {
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
})
@TestPropertySource(
properties = {
"FOO_ACCESS_KEY=foo",
"FOO_SECRET_KEY=bar"
}
)
@EnableAutoConfiguration
@DirtiesContext
class S3PrefixTest {
Expand Down

0 comments on commit dab1d6f

Please sign in to comment.