Skip to content

Commit

Permalink
test: use correct network
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Dec 28, 2024
1 parent 0522ea6 commit ceb2ab8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions core/src/test/java/io/zeebe/containers/ZeebeBrokerNodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,21 @@ private static Stream<Arguments> reuseDataTestCases() {
return Stream.of(
new ReuseDataTestCase(
"broker with embedded gateway should reuse host data",
path -> provideBrokerWithHostData(new ZeebeContainer(), path)),
path -> provideBrokerWithHostData(new ZeebeContainer(), path).withNetwork(NETWORK)),
new ReuseDataTestCase(
"broker without embedded gateway should reuse host data",
path -> provideBrokerWithHostData(new ZeebeBrokerContainer(), path)),
path ->
provideBrokerWithHostData(new ZeebeBrokerContainer(), path).withNetwork(NETWORK)),
new ReuseDataTestCase(
"broker with embedded gateway should reuse volume",
path -> new ZeebeContainer().withZeebeData(ZeebeVolume.newVolume())),
path ->
new ZeebeContainer().withZeebeData(ZeebeVolume.newVolume()).withNetwork(NETWORK)),
new ReuseDataTestCase(
"broker without embedded gateway should reuse volume",
path -> new ZeebeBrokerContainer().withZeebeData(ZeebeVolume.newVolume())));
path ->
new ZeebeBrokerContainer()
.withZeebeData(ZeebeVolume.newVolume())
.withNetwork(NETWORK)));
}

@SuppressWarnings("resource")
Expand Down Expand Up @@ -153,6 +158,7 @@ void shouldReuseHostDataOnRestart(
try (final ZeebeBrokerNode<?> broker = brokerNodeProvider.apply(dataDir);
final ZeebeGatewayContainer gateway =
new ZeebeGatewayContainer()
.withNetwork(NETWORK)
.withEnv(
"ZEEBE_GATEWAY_CLUSTER_CONTACTPOINT", broker.getInternalClusterAddress())) {

Expand Down

0 comments on commit ceb2ab8

Please sign in to comment.