You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by zi...@apache.org on 2025/06/17 04:08:41 UTC
(pulsar) branch master updated: [improve][test] Add test for retrieving bookie metrics via HTTP (#24408)
This is an automated email from the ASF dual-hosted git repository.
zixuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new faf982f98f7 [improve][test] Add test for retrieving bookie metrics via HTTP (#24408)
faf982f98f7 is described below
commit faf982f98f7afa61cb24bfaa7ebe7bc52fc1c590
Author: Zixuan Liu <no...@gmail.com>
AuthorDate: Tue Jun 17 12:08:35 2025 +0800
[improve][test] Add test for retrieving bookie metrics via HTTP (#24408)
Signed-off-by: Zixuan Liu <no...@gmail.com>
---
.../bookkeeper/BookkeeperInstallWithHttpServerEnabledTest.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/bookkeeper/BookkeeperInstallWithHttpServerEnabledTest.java b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/bookkeeper/BookkeeperInstallWithHttpServerEnabledTest.java
index 03d7f974ab3..4fce8da583e 100644
--- a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/bookkeeper/BookkeeperInstallWithHttpServerEnabledTest.java
+++ b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/bookkeeper/BookkeeperInstallWithHttpServerEnabledTest.java
@@ -81,4 +81,14 @@ public class BookkeeperInstallWithHttpServerEnabledTest extends PulsarClusterTes
assertEquals(result.getExitCode(), 0);
assertEquals(result.getStdout(), "OK\n");
}
+
+ @Test
+ public void testGetBookieMetrics() throws Exception {
+ ContainerExecResult result = pulsarCluster.getAnyBookie().execCmd(
+ PulsarCluster.CURL,
+ "-X",
+ "GET",
+ "http://localhost:8000/metrics");
+ assertEquals(result.getExitCode(), 0);
+ }
}