From 6f8d8e0c7e3fb017eb382ab473cf3501af1c5494 Mon Sep 17 00:00:00 2001 From: Luigi Dell'Aquila Date: Tue, 3 Mar 2026 11:38:16 +0100 Subject: [PATCH 1/2] SQL: fix CLI tests --- .../org/elasticsearch/xpack/sql/qa/security/CliApiKeyIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/sql/qa/server/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/CliApiKeyIT.java b/x-pack/plugin/sql/qa/server/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/CliApiKeyIT.java index ff9c04e87e76c..881bf8d1a9d3c 100644 --- a/x-pack/plugin/sql/qa/server/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/CliApiKeyIT.java +++ b/x-pack/plugin/sql/qa/server/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/CliApiKeyIT.java @@ -12,6 +12,7 @@ import static org.elasticsearch.xpack.sql.qa.security.RestSqlIT.SSL_ENABLED; import static org.hamcrest.Matchers.containsString; +import static org.junit.Assert.assertEquals; /** * Integration tests for CLI connections using API key authentication. @@ -65,6 +66,7 @@ public void testCliConnectionWithApiKey() throws Exception { cli.readLine(); // separator line String valueLine = cli.readLine(); assertThat(valueLine, containsString("123")); + assertEquals("", cli.readLine()); } } From 3eadf5ebaa001bdc33f5c0ac5971dac92f5d7632 Mon Sep 17 00:00:00 2001 From: Luigi Dell'Aquila Date: Tue, 3 Mar 2026 13:10:45 +0100 Subject: [PATCH 2/2] Unmute --- muted-tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index e7c11a4c9cd1e..05201948e6106 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -372,9 +372,6 @@ tests: - class: org.elasticsearch.reindex.management.ReindexManagementClientYamlTestSuiteIT method: test {yaml=reindex/30_cancel_reindex/Cancel running reindex returns response and GET confirms completed} issue: https://github.com/elastic/elasticsearch/issues/142079 -- class: org.elasticsearch.xpack.sql.qa.security.CliApiKeyIT - method: testCliConnectionWithApiKey - issue: https://github.com/elastic/elasticsearch/issues/143125 - class: org.elasticsearch.packaging.test.DebMetadataTests method: test05CheckLintian issue: https://github.com/elastic/elasticsearch/issues/142819