This is an automated email from the ASF dual-hosted git repository.
dlmarion pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/2.1 by this push:
new 45fab161be Configure WebViewsIT to use a random free port. (#5528)
45fab161be is described below
commit 45fab161be51f87506a0d4cbc6a640bfd99066dc
Author: Dave Marion <[email protected]>
AuthorDate: Thu May 1 15:27:02 2025 -0400
Configure WebViewsIT to use a random free port. (#5528)
If not configured, the WebViewsIT parent class will always use
port 9998. This could conflict with other running tests. Setting
the property to zero enables the port selected to be a random
free port.
---
.../src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
b/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
index f2fd5a4712..c9b6bfe1d0 100644
---
a/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
+++
b/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
@@ -84,6 +84,8 @@ public class WebViewsIT extends JerseyTest {
@BeforeAll
public static void createMocks() throws TableNotFoundException {
+ System.setProperty(TestProperties.CONTAINER_PORT, "0");
+
ServerContext contextMock = createMock(ServerContext.class);
expect(contextMock.getConfiguration()).andReturn(DefaultConfiguration.getInstance()).anyTimes();
expect(contextMock.getInstanceID()).andReturn(InstanceId.of("foo")).atLeastOnce();