Skip to content

Commit

Permalink
chore(deps): use version "1.5.0" of klint
Browse files Browse the repository at this point in the history
run `./gradlew :spotlessApply` to fix spotless issues ✨
  • Loading branch information
eliflores committed Jan 2, 2025
1 parent dc06982 commit 82928fe
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ reporting {
reportTask {
executionData.from(
configurations["aggregateCodeCoverageReportResults"]
.incoming.artifactView {
.incoming
.artifactView {
lenient(true)
withVariantReselection()
attributes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class HealthEndpointIntegrationTest(
) {
@Test
fun `should expose health endpoint`() {
webTestClient.get().uri("/actuator/health").exchange().expectStatus().isOk()
webTestClient
.get()
.uri("/actuator/health")
.exchange()
.expectStatus()
.isOk()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class HelloWorldIntegrationTest(
) {
@Test
fun `should expose hello world`() {
webTestClient.get().uri("/").exchange().expectStatus().isOk()
webTestClient
.get()
.uri("/")
.exchange()
.expectStatus()
.isOk()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ class SecurityTxtIntegrationTest(
@Test
fun `should expose security txt at well known location`() {
getSecurityTxt()
.expectStatus().isOk()
.expectHeader().contentType(MediaType.TEXT_PLAIN)
.expectBody().consumeWith { response ->
.expectStatus()
.isOk()
.expectHeader()
.contentType(MediaType.TEXT_PLAIN)
.expectBody()
.consumeWith { response ->
Assertions.assertThat(response.responseBody).isNotEmpty
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import org.springframework.security.web.server.SecurityWebFilterChain
@EnableWebFluxSecurity
class SecurityConfig {
@Bean
fun springSecurityWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
return http.invoke {
fun springSecurityWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain =
http.invoke {
authorizeExchange {
authorize("/.well-known/security.txt", permitAll)
authorize("/actuator/health", permitAll)
Expand All @@ -21,5 +21,4 @@ class SecurityConfig {
authorize(anyExchange, denyAll)
}
}
}
}

0 comments on commit 82928fe

Please sign in to comment.