Skip to content

Commit

Permalink
fix: remove all (not just first) gateway ports
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Dec 29, 2024
1 parent 9ee0fe9 commit e8e850f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,12 @@ void shouldExposeAllPortsButGateway(
// given
final List<Integer> expectedPorts =
Arrays.stream(ZeebePort.values()).map(ZeebePort::getPort).collect(Collectors.toList());
final List<Integer> gatewayPorts =
Arrays.asList(ZeebePort.GATEWAY_GRPC.getPort(), ZeebePort.GATEWAY_REST.getPort());
expectedPorts.removeAll(gatewayPorts);

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

// then
assertThat(exposedPorts)
Expand Down

0 comments on commit e8e850f

Please sign in to comment.