Skip to content

Commit

Permalink
Add test for reload_search_analyzers call
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippus committed May 20, 2024
1 parent 9217957 commit d517bf5
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.sksamuel.elastic4s.requests.reloadsearchanalyzers

import com.sksamuel.elastic4s.ElasticDsl
import com.sksamuel.elastic4s.testkit.DockerTests
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

class ReloadSearchAnalyzersTest extends AnyFlatSpec with Matchers with ElasticDsl with DockerTests {
"reload search analyzers request" should "return a success" in {
val resp = client.execute {
reloadSearchAnalyzers("test")
}.await.result

resp.reloadDetails.map(_.reloadedNodeIds).nonEmpty shouldBe true
}
}

0 comments on commit d517bf5

Please sign in to comment.