Skip to content

Commit

Permalink
fix: expose REST port
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Dec 29, 2024
1 parent 9ca838b commit 9ee0fe9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/io/zeebe/containers/ZeebeContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ private void applyDefaultConfiguration() {
.withEnv("ZEEBE_BROKER_NETWORK_HOST", "0.0.0.0")
.withEnv("ZEEBE_BROKER_NETWORK_ADVERTISEDHOST", getInternalHost())
.addExposedPorts(
ZeebePort.GATEWAY.getPort(),
ZeebePort.GATEWAY_REST.getPort(),
ZeebePort.GATEWAY_GRPC.getPort(),
ZeebePort.COMMAND.getPort(),
ZeebePort.INTERNAL.getPort(),
ZeebePort.MONITORING.getPort());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ private void applyDefaultConfiguration() {
.withEnv("ZEEBE_STANDALONE_GATEWAY", "true")
.withStartupTimeout(DEFAULT_STARTUP_TIMEOUT)
.addExposedPorts(
ZeebePort.GATEWAY.getPort(),
ZeebePort.GATEWAY_REST.getPort(),
ZeebePort.GATEWAY_GRPC.getPort(),
ZeebePort.INTERNAL.getPort(),
ZeebePort.MONITORING.getPort());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public ZeebeTopologyWaitStrategy(final int brokersCount, final int replicationFa
*/
public ZeebeTopologyWaitStrategy(
final int brokersCount, final int replicationFactor, final int partitionsCount) {
this(brokersCount, replicationFactor, partitionsCount, ZeebePort.GATEWAY.getPort());
this(brokersCount, replicationFactor, partitionsCount, ZeebePort.GATEWAY_GRPC.getPort());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ void shouldExposeAllPortsButGateway(

// when
final List<Integer> exposedPorts = node.getExposedPorts();
expectedPorts.remove((Integer) ZeebePort.GATEWAY.getPort());
expectedPorts.remove((Integer) ZeebePort.GATEWAY_GRPC.getPort());
expectedPorts.remove((Integer) ZeebePort.GATEWAY_REST.getPort());

// then
assertThat(exposedPorts)
Expand Down

0 comments on commit 9ee0fe9

Please sign in to comment.