clean up for change to test library and logging
This commit is contained in:
@@ -9,7 +9,7 @@ insert_final_newline = true
|
||||
max_line_length = 120
|
||||
tab_width = 4
|
||||
|
||||
[*.{md,sh,sql,yaml,yml}]
|
||||
[*.{md,sh,sql,xml,xsd,yaml,yml}]
|
||||
max_line_length = 1024
|
||||
indent_size = 2
|
||||
tab_width = 2
|
||||
|
||||
@@ -39,7 +39,6 @@ dependencies {
|
||||
testIntegrationImplementation(hlaeja.projectreactor.reactor.test)
|
||||
testIntegrationImplementation(hlaeja.kotlin.test.junit5)
|
||||
testIntegrationImplementation(hlaeja.kotlinx.coroutines.test)
|
||||
testIntegrationImplementation(hlaeja.springboot.kafka.test)
|
||||
testIntegrationImplementation(hlaeja.springboot.starter.test)
|
||||
|
||||
testIntegrationRuntimeOnly(hlaeja.junit.platform.launcher)
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</root>
|
||||
<springProfile name="develop|docker">
|
||||
<springProfile name="development">
|
||||
<logger level="TRACE" name="ltd.hlaeja"/>
|
||||
</springProfile>
|
||||
<springProfile name="docker">
|
||||
<logger level="DEBUG" name="ltd.hlaeja"/>
|
||||
</springProfile>
|
||||
</configuration>
|
||||
|
||||
@@ -2,7 +2,7 @@ package ltd.hlaeja.controller
|
||||
|
||||
import java.util.UUID
|
||||
import ltd.hlaeja.library.accountRegistry.Account
|
||||
import ltd.hlaeja.test.container.PostgresContainer
|
||||
import ltd.hlaeja.test.container.KafkaPostgresTestContainer
|
||||
import org.assertj.core.api.SoftAssertions
|
||||
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions
|
||||
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension
|
||||
@@ -20,7 +20,7 @@ import org.springframework.http.HttpStatus.CONFLICT
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
import org.springframework.test.web.reactive.server.expectBody
|
||||
|
||||
@PostgresContainer
|
||||
@KafkaPostgresTestContainer
|
||||
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
||||
@ExtendWith(SoftAssertionsExtension::class)
|
||||
class AccountEndpoint {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ltd.hlaeja.controller
|
||||
|
||||
import ltd.hlaeja.library.accountRegistry.Account
|
||||
import ltd.hlaeja.test.container.PostgresContainer
|
||||
import ltd.hlaeja.test.container.PostgresTestContainer
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
@@ -13,7 +13,7 @@ import org.springframework.boot.test.web.server.LocalServerPort
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
import org.springframework.test.web.reactive.server.expectBody
|
||||
|
||||
@PostgresContainer
|
||||
@PostgresTestContainer
|
||||
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
||||
class AccountsEndpoint {
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package ltd.hlaeja.controller
|
||||
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import ltd.hlaeja.library.accountRegistry.Authentication
|
||||
import ltd.hlaeja.test.compareToFile
|
||||
import ltd.hlaeja.test.container.PostgresContainer
|
||||
import ltd.hlaeja.test.container.PostgresTestContainer
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.assertj.core.api.SoftAssertions
|
||||
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions
|
||||
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension
|
||||
@@ -17,7 +17,7 @@ import org.springframework.http.HttpStatus
|
||||
import org.springframework.test.web.reactive.server.WebTestClient
|
||||
import org.springframework.test.web.reactive.server.expectBody
|
||||
|
||||
@PostgresContainer
|
||||
@PostgresTestContainer
|
||||
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
||||
@ExtendWith(SoftAssertionsExtension::class)
|
||||
class AuthenticationEndpoint {
|
||||
|
||||
@@ -6,10 +6,14 @@ spring:
|
||||
url: r2dbc:postgresql://placeholder
|
||||
username: placeholder
|
||||
password: placeholder
|
||||
|
||||
container:
|
||||
postgres:
|
||||
version: postgres:17
|
||||
init: postgres/schema.sql
|
||||
before: postgres/data.sql
|
||||
after: postgres/reset.sql
|
||||
kafka:
|
||||
consumer:
|
||||
group-id: test-group
|
||||
auto-offset-reset: earliest
|
||||
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
||||
value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
|
||||
properties:
|
||||
spring.json.trusted.packages: "*"
|
||||
producer:
|
||||
key-serializer: org.apache.kafka.common.serialization.StringSerializer
|
||||
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
|
||||
|
||||
Reference in New Issue
Block a user