Skip to content

Commit

Permalink
Fix cat test for Opensearch 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
anti-social committed May 4, 2023
1 parent 35a3e96 commit e0185c0
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ class ElasticsearchTransportTests : TestBase() {

@Test
fun catRequest() = runTest {
val nodes = transport.request(CatRequest("nodes", errorSerde = JsonSerde))
val nodes = transport.request(
CatRequest(
"nodes",
parameters = mapOf(
"h" to listOf("name,node.role,ip,heap.percent,cpu,master"),
),
errorSerde = JsonSerde
)
)
nodes.size shouldBe 1
nodes[0].size shouldBe 10
nodes[0][nodes[0].size - 2] shouldBe "*"
nodes[0].size shouldBe 6
nodes[0][nodes[0].size - 1] shouldBe "*"
}

@Test
Expand Down

0 comments on commit e0185c0

Please sign in to comment.