From e0185c0fdaba0264df23bf69639f88264bfe76b9 Mon Sep 17 00:00:00 2001 From: Alexander Koval Date: Thu, 4 May 2023 18:07:21 +0300 Subject: [PATCH] Fix cat test for Opensearch 2.4 --- .../elasticmagic/ElasticsearchTransportTests.kt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/integ-tests/src/commonTest/kotlin/dev/evo/elasticmagic/ElasticsearchTransportTests.kt b/integ-tests/src/commonTest/kotlin/dev/evo/elasticmagic/ElasticsearchTransportTests.kt index 5e60d84753..76647c3cbf 100644 --- a/integ-tests/src/commonTest/kotlin/dev/evo/elasticmagic/ElasticsearchTransportTests.kt +++ b/integ-tests/src/commonTest/kotlin/dev/evo/elasticmagic/ElasticsearchTransportTests.kt @@ -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