Skip to content

Commit

Permalink
update dependencies (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtanner authored Mar 12, 2024
1 parent 5131c7f commit fab2c83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ application {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.8.0")

implementation("ch.qos.logback:logback-classic:1.2.10")
implementation("net.logstash.logback:logstash-logback-encoder:7.0.1") {
implementation("ch.qos.logback:logback-classic:1.4.14")
implementation("net.logstash.logback:logstash-logback-encoder:7.4") {
exclude(group = "com.fasterxml.jackson.core")
}
implementation("io.github.microutils:kotlin-logging-jvm:2.1.21")
implementation("org.slf4j:slf4j-api:1.7.35")
implementation("io.github.microutils:kotlin-logging-jvm:3.0.5")
implementation("org.slf4j:slf4j-api:2.0.9")

// cli parsing
implementation("com.github.ajalt.clikt:clikt:3.4.0")
implementation("com.github.ajalt.clikt:clikt:4.2.2")

// config
implementation("com.uchuhimo:konf-toml:1.1.2")

// cron scheduling
implementation("com.cronutils:cron-utils:9.1.6")
implementation("com.cronutils:cron-utils:9.2.1")

// api
val http4kVersion = "4.44.0.0"
val http4kVersion = "5.14.0.0"
implementation("org.http4k:http4k-core:$http4kVersion")
implementation("org.http4k:http4k-server-undertow:$http4kVersion")
implementation("org.http4k:http4k-client-okhttp:$http4kVersion")
Expand All @@ -57,5 +57,5 @@ dependencies {
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
testImplementation("io.kotest:kotest-assertions-core:5.6.2")
testImplementation("io.kotest:kotest-assertions-core:5.8.1")
}
5 changes: 3 additions & 2 deletions src/test/kotlin/chaperone/writer/InfluxDbWriterTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import java.time.Instant

class InfluxDbWriterTest {

private val writer = InfluxDbWriter(config = InfluxDbWriterConfig(db = "a", uri = "http://localhost:9000"))
private val httpServerPort = 9000
private val writer = InfluxDbWriter(config = InfluxDbWriterConfig(db = "a", uri = "http://localhost:$httpServerPort"))

@Test
fun `generate line`() {
Expand All @@ -30,7 +31,7 @@ class InfluxDbWriterTest {
@Test
fun `write test`() {
val app = { _: Request -> Response(Status.NO_CONTENT) }
val server = app.asServer(Undertow(9000)).start()
val server = app.asServer(Undertow(httpServerPort)).start()

val checkResult = CheckResult(name = "sample check", status = CheckStatus.OK)
writer.write(checkResult)
Expand Down

0 comments on commit fab2c83

Please sign in to comment.