Skip to content

Commit

Permalink
all tests use namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoir committed Dec 19, 2024
1 parent 0cae5e4 commit 4ca0c9d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ class ElasticBuilderTest

it("errors if there is not enough config to build a client") {
val config = ConfigFactory.parseString(
"""
|es.test.host = test.elastic
|es.test.username = test-username
f"""
|es.$namespace.host = $host
|es.$namespace.username = $username
|""".stripMargin
)

a[Throwable] shouldBe thrownBy(
ElasticBuilder.buildElasticClient(config, "test")
ElasticBuilder.buildElasticClient(config, namespace)
)
}
}

0 comments on commit 4ca0c9d

Please sign in to comment.