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
|
max_line_length = 120
|
||||||
tab_width = 4
|
tab_width = 4
|
||||||
|
|
||||||
[*.{md,sh,sql,yaml,yml}]
|
[*.{md,sh,sql,xml,xsd,yaml,yml}]
|
||||||
max_line_length = 1024
|
max_line_length = 1024
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
tab_width = 2
|
tab_width = 2
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ dependencies {
|
|||||||
testIntegrationImplementation(hlaeja.projectreactor.reactor.test)
|
testIntegrationImplementation(hlaeja.projectreactor.reactor.test)
|
||||||
testIntegrationImplementation(hlaeja.kotlin.test.junit5)
|
testIntegrationImplementation(hlaeja.kotlin.test.junit5)
|
||||||
testIntegrationImplementation(hlaeja.kotlinx.coroutines.test)
|
testIntegrationImplementation(hlaeja.kotlinx.coroutines.test)
|
||||||
testIntegrationImplementation(hlaeja.springboot.kafka.test)
|
|
||||||
testIntegrationImplementation(hlaeja.springboot.starter.test)
|
testIntegrationImplementation(hlaeja.springboot.starter.test)
|
||||||
|
|
||||||
testIntegrationRuntimeOnly(hlaeja.junit.platform.launcher)
|
testIntegrationRuntimeOnly(hlaeja.junit.platform.launcher)
|
||||||
|
|||||||
@@ -7,7 +7,10 @@
|
|||||||
<root level="INFO">
|
<root level="INFO">
|
||||||
<appender-ref ref="STDOUT"/>
|
<appender-ref ref="STDOUT"/>
|
||||||
</root>
|
</root>
|
||||||
<springProfile name="develop|docker">
|
<springProfile name="development">
|
||||||
|
<logger level="TRACE" name="ltd.hlaeja"/>
|
||||||
|
</springProfile>
|
||||||
|
<springProfile name="docker">
|
||||||
<logger level="DEBUG" name="ltd.hlaeja"/>
|
<logger level="DEBUG" name="ltd.hlaeja"/>
|
||||||
</springProfile>
|
</springProfile>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package ltd.hlaeja.controller
|
|||||||
|
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
import ltd.hlaeja.library.accountRegistry.Account
|
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.SoftAssertions
|
||||||
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions
|
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions
|
||||||
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension
|
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.WebTestClient
|
||||||
import org.springframework.test.web.reactive.server.expectBody
|
import org.springframework.test.web.reactive.server.expectBody
|
||||||
|
|
||||||
@PostgresContainer
|
@KafkaPostgresTestContainer
|
||||||
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
||||||
@ExtendWith(SoftAssertionsExtension::class)
|
@ExtendWith(SoftAssertionsExtension::class)
|
||||||
class AccountEndpoint {
|
class AccountEndpoint {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package ltd.hlaeja.controller
|
package ltd.hlaeja.controller
|
||||||
|
|
||||||
import ltd.hlaeja.library.accountRegistry.Account
|
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.assertj.core.api.Assertions.assertThat
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
import org.junit.jupiter.api.Test
|
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.WebTestClient
|
||||||
import org.springframework.test.web.reactive.server.expectBody
|
import org.springframework.test.web.reactive.server.expectBody
|
||||||
|
|
||||||
@PostgresContainer
|
@PostgresTestContainer
|
||||||
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
||||||
class AccountsEndpoint {
|
class AccountsEndpoint {
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package ltd.hlaeja.controller
|
package ltd.hlaeja.controller
|
||||||
|
|
||||||
import org.assertj.core.api.Assertions.assertThat
|
|
||||||
import ltd.hlaeja.library.accountRegistry.Authentication
|
import ltd.hlaeja.library.accountRegistry.Authentication
|
||||||
import ltd.hlaeja.test.compareToFile
|
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.SoftAssertions
|
||||||
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions
|
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions
|
||||||
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension
|
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.WebTestClient
|
||||||
import org.springframework.test.web.reactive.server.expectBody
|
import org.springframework.test.web.reactive.server.expectBody
|
||||||
|
|
||||||
@PostgresContainer
|
@PostgresTestContainer
|
||||||
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
@SpringBootTest(webEnvironment = RANDOM_PORT)
|
||||||
@ExtendWith(SoftAssertionsExtension::class)
|
@ExtendWith(SoftAssertionsExtension::class)
|
||||||
class AuthenticationEndpoint {
|
class AuthenticationEndpoint {
|
||||||
|
|||||||
@@ -6,10 +6,14 @@ spring:
|
|||||||
url: r2dbc:postgresql://placeholder
|
url: r2dbc:postgresql://placeholder
|
||||||
username: placeholder
|
username: placeholder
|
||||||
password: placeholder
|
password: placeholder
|
||||||
|
kafka:
|
||||||
container:
|
consumer:
|
||||||
postgres:
|
group-id: test-group
|
||||||
version: postgres:17
|
auto-offset-reset: earliest
|
||||||
init: postgres/schema.sql
|
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
||||||
before: postgres/data.sql
|
value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
|
||||||
after: postgres/reset.sql
|
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